WO2014146470A1 - Operating method and system for logical window - Google Patents

Operating method and system for logical window Download PDF

Info

Publication number
WO2014146470A1
WO2014146470A1 PCT/CN2013/090909 CN2013090909W WO2014146470A1 WO 2014146470 A1 WO2014146470 A1 WO 2014146470A1 CN 2013090909 W CN2013090909 W CN 2013090909W WO 2014146470 A1 WO2014146470 A1 WO 2014146470A1
Authority
WO
WIPO (PCT)
Prior art keywords
dimensional
logical window
dimensional model
projection plane
dimensionally
Prior art date
Application number
PCT/CN2013/090909
Other languages
French (fr)
Chinese (zh)
Inventor
陈孟青
黄明
涂强
张春华
Original Assignee
腾讯科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2014146470A1 publication Critical patent/WO2014146470A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04815Interaction with a metaphor-based environment or interaction object displayed as three-dimensional, e.g. changing the user viewpoint with respect to the environment or object
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/048023D-info-object: information is displayed on the internal or external surface of a three dimensional manipulable object, e.g. on the faces of a cube that can be rotated by the user

Definitions

  • the logical window after 3D rendering is a trapezoid with three-dimensional effect.
  • Embodiments of the present invention provide a method and system for operating a logic window.
  • the embodiment of the invention provides a method for operating a logic window, including:
  • An embodiment of the present invention provides an operating system of a logic window, including:
  • a creating module configured to establish a three-dimensional model of the three-dimensionally rendered logical window; wherein the three-dimensional model identifies a click hit position of the three-dimensionally rendered logical window;
  • a transform module configured to perform a preset three-dimensional transformation on the three-dimensional model of the three-dimensionally rendered logical window in three-dimensional space
  • a projection module configured to project a perspective projection of the three-dimensional transformed three-dimensional model to a projection plane
  • a determining module configured to determine coordinates of the click hit position on the projection plane
  • the embodiment of the present disclosure further provides a non-transitory computer readable storage medium having stored thereon computer executable instructions, and when the computer executes the executable instructions, performing the following steps:
  • the coordinates of the click hit position are determined on the projection plane.
  • FIG. 1 is a schematic diagram showing a logical window on a two-dimensional plane after being introduced into three-dimensional rendering
  • FIG. 2 is a flowchart of a method for operating a logic window according to a first embodiment of the present invention
  • FIG. 3 is a schematic flowchart of a method for operating a logic window according to a second embodiment of the present invention
  • FIG. 5 is a flowchart of acquiring a position coordinate correction value and a size ratio correction value of a three-dimensional model according to an embodiment of the present invention
  • FIG. 6 is a schematic diagram of a perspective projection of a three-dimensionally transformed three-dimensional model onto a projection plane according to an embodiment of the present invention
  • FIG. 7 is a schematic diagram of a three-dimensional model for obtaining a logical window after three-dimensional rendering according to a second embodiment of the present invention.
  • FIG. 8 is a structural diagram of an operating system of a logic window according to a fourth embodiment of the present invention
  • FIG. 9 is a structural diagram of an operating system of a logic window according to a fifth embodiment of the present invention
  • FIG. 2 is a flowchart of a method for operating a logic window according to a first embodiment of the present invention, wherein the click hit method of the logic window can be applied to a computer system such as a computer, a smart phone, or a server.
  • the operation method of the logic window may include steps S201 to S203.
  • S202 Perform three-dimensional transformation of the three-dimensional model of the three-dimensionally rendered logical window in three-dimensional space.
  • S203. Project a three-dimensionally transformed three-dimensional model perspective onto the projection plane.
  • the three-dimensional model of the three-dimensionally rendered logical window may be subjected to preset three-dimensional transformation in three-dimensional space, and the three-dimensional transformed three-dimensional model is perspectived. Projected to the projection plane, and then the coordinates of the click hit position of the 3D rendered logical window can be determined on the projection plane. In this way, the click hit rate of the logical window after 3D rendering can be effectively improved.
  • FIG. 3 is a flowchart of a method for operating a logic window according to a second embodiment of the present invention, wherein the operation method of the logic window can be applied to a computer system such as a computer, a smart phone, a server, or the like.
  • the operation method of the logic window may include steps S301 to S305. S301. Keep the length and width ratio of the logical window after the three-dimensional rendering unchanged, and map the three-dimensionally rendered logical window into the three-dimensional space to obtain a three-dimensional model of the three-dimensional rendered logical window; wherein, the three-dimensional model is marked with three-dimensional rendering The hit point of the logical window's click.
  • the logical window refers to a logical window (Frame) created by using the full self-painting technology.
  • the organization structure of Frame is generally as follows: The top-level (or lowest-level) Frame is internally nested with N logical sub-frames, and sub-Frames can be similarly embedded in sub-frames, and so on. A frame with multiple nested relationships.
  • the window drawing is triggered, the drawing will start from the top-level window. After the top-level window is drawn, draw the next-level sub-window, and then draw the nesting level one level until all the frames are drawn, so that you can get A complete logical window.
  • S302 Perform a preset three-dimensional transformation on the three-dimensional model of the three-dimensionally rendered logical window in three-dimensional space.
  • the three-dimensional model of the three-dimensionally rendered Frame obtained by the mapping may be rotated in a preset manner in a three-dimensional space, so that the frame after the three-dimensional rendering is parallel to the projection plane.
  • the three-dimensional model of the three-dimensionally rendered Frame obtained by the mapping may be preset.
  • the rotation can eventually make the 3D rendered frame parallel to the projection plane.
  • the above-mentioned projection plane may be a parent logical window or a display screen of the frame after the three-dimensional rendering, which is not limited in the embodiment of the present invention.
  • the three-dimensionally rendered logical window is mapped into the three-dimensional space, and the position and the size are inevitably changed.
  • the position coordinates of the three-dimensional model need to be acquired in advance. Correction value and size ratio correction value.
  • the flow of obtaining the position coordinate correction value and the size ratio correction value of the three-dimensional model in the embodiment of the present invention may be as shown in FIG. 5, and includes steps S501 to S503.
  • the coordinates and the image size of the image obtained by projecting the three-dimensional model of the three-dimensionally rendered frame without the three-dimensional transformation onto the projection plane are compared with the coordinates and the image size of the frame after the three-dimensional rendering, respectively, to obtain a three-dimensional model.
  • the position coordinate correction value and the size ratio correction value are compared with the coordinates and the image size of the frame after the three-dimensional rendering, respectively, to obtain a three-dimensional model.
  • the position coordinate correction value and the size ratio correction value can make the three-dimensional model of the three-dimensionally transformed frame project to a reasonable position on the projection plane in a reasonable size perspective.
  • the above step S302 performs a preset rotation on the three-dimensional model of the three-dimensionally rendered frame obtained by the mapping in the three-dimensional space, so that the frame after the three-dimensional rendering is parallel to the projection plane.
  • the three-dimensionally transformed three-dimensional model can be perspectively projected onto the projection plane according to the position coordinate correction value and the size ratio correction value obtained in step S303.
  • the coordinates of the hit hit position can be determined on the projection plane.
  • the three-dimensional model of the three-dimensionally rendered logical window may be subjected to a preset three-dimensional transformation in three-dimensional space, and according to The obtained position coordinate correction value and the size ratio correction value of the three-dimensional model are obtained by projecting the three-dimensionally transformed three-dimensional model perspective onto the projection plane, and then the coordinates of the click hit position of the three-dimensionally rendered logical window can be determined on the projection plane. In this way, the click hit rate of the logical window after 3D rendering can be effectively improved.
  • a third embodiment of the present invention provides another method of operating a logical window.
  • the operation method of the logic window may further include: determining a three-dimensional parameter of the three-dimensional space and generating a three-dimensional space according to the three-dimensional parameter, wherein the three-dimensional parameter comprises Parameters for the position of the view, the plane of the projection, the near face, and the far face.
  • the three-dimensional parameter comprises Parameters for the position of the view, the plane of the projection, the near face, and the far face.
  • the frame after 3D rendering is at the position of (100, 100, 200, 200) of its parent frame (the upper level window or screen), map it to the 3D coordinate space, and maintain the aspect ratio.
  • the 3D rendered frame is mapped to the position of the 3D space: the upper left corner ( -10.0, 10.0, 0.0 ), the lower right corner ( 10.0, -10.0, 0.0 ), thus obtaining 3D rendering After the 3D model of the Frame.
  • FIG. 8 is a structural diagram of an operating system of a logic window according to a fourth embodiment of the present invention, wherein an operating system of the logic window can be applied to a computer system such as a computer, a smart phone, or a server.
  • the operating system of the logic window may include:
  • a creating module 801 configured to establish a three-dimensional model of the three-dimensionally rendered logical window; wherein, the three-dimensional model identifies a click hit position of the three-dimensionally rendered logical window;
  • a transform module 802 configured to perform three-dimensional transformation of the three-dimensional model of the three-dimensionally rendered logical window in three-dimensional space;
  • the projection module 803 is configured to project a three-dimensionally transformed three-dimensional model perspective onto the projection plane; and the determining module 804 is configured to determine coordinates of the click hit position on the projection plane.
  • FIG. 9 is a structural diagram of an operation system of another logic window according to a fifth embodiment of the present invention.
  • the system provided in this embodiment further includes:
  • the generating module 805 is configured to determine a three-dimensional parameter of the three-dimensional space and generate a three-dimensional space according to the three-dimensional parameter, wherein the three-dimensional parameter includes a viewing angle position, a projection plane, a near-cut surface, and a parameter of the far-cut surface.
  • the creation module 801 can map the three-dimensionally rendered logical window into the three-dimensional space generated by the generation module 706.
  • FIG. 10 is a structural diagram of an operating system of another logic window according to a sixth embodiment of the present invention.
  • the operating system of the logical window shown in FIG. 10 is optimized by the operating system of the logical window shown in FIG.
  • the creation module 801 may include:
  • the first creating unit 8011 is configured to maintain the aspect ratio of the logical window after the three-dimensional rendering is unchanged.
  • the second creating unit 8012 is configured to map the three-dimensionally rendered logical window into the three-dimensional space to obtain a logical window after the three-dimensional rendering. 3D model.
  • Projection module 803 can include:
  • a first projection unit 8031 configured to acquire a position coordinate correction value of the three-dimensional model and a size ratio correction value
  • the second projection unit 8032 is configured to project the three-dimensionally transformed three-dimensional model into the projection plane according to the position coordinate correction value and the size ratio correction value.
  • the first projection unit 8031 may further include:
  • a first subunit configured to obtain a second subunit of the coordinate window and the image of the three-dimensionally rendered logical window at the projection plane, and is configured to project a three-dimensional model of the three-dimensionally rendered logical window without the three-dimensional transformation onto the projection plane;
  • the third sub-unit is used for projecting the three-dimensional model of the three-dimensionally rendered logical window without three-dimensional transformation onto the projection plane to obtain the coordinates and image size of the image and the coordinate and image of the logical window after the three-dimensional rendering in the projection plane.
  • the size is compared to obtain the position coordinate correction value and the size ratio correction value of the three-dimensional model.
  • the transform module 802 is configured to perform a preset rotation of the three-dimensional model of the three-dimensionally rendered logical window in three-dimensional space, so that the three-dimensional rendering The subsequent logical window is parallel to the projection plane.
  • the projection plane may be a parent logic window or a display screen of the three-dimensionally rendered logical window, which is not limited in the embodiment of the present invention.
  • the three-dimensional model of the three-dimensionally rendered logical window may be subjected to a preset three-dimensional transformation in a three-dimensional space, and according to The obtained position coordinate correction value and the size ratio correction value of the three-dimensional model are obtained by projecting the three-dimensionally transformed three-dimensional model perspective onto the projection plane, and then the coordinates of the click hit position of the three-dimensionally rendered logical window can be determined on the projection plane. In this way, the click hit rate of the logical window after 3D rendering can be effectively improved.
  • the program may be stored in a computer readable storage medium, and the storage medium may include: Flash disk, read-only memory (ROM), random access memory (RAM), disk or optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Image Generation (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The present invention relates to the technical field of computers, and disclosed are an operating method and system for a logical window. The method comprises: establishing a three-dimensional model of a logical window after three-dimensional rendering, wherein a click hit location of the logical window after three-dimensional rendering is marked on the three-dimensional model; performing three-dimensional transform on the three-dimensional model of the logical window after three-dimensional rendering in a three-dimensional space; perspectively projecting the three-dimensional model after three-dimensional transform on a projection plane; and determining a coordinate of the click hit location on a projection plane. By implementing the present invention, the click hit rate of the logical window after three-dimensional rendering can be improved.

Description

逻辑窗口的操作方法及系统 本申请要求于 2013 年 3 月 20 日提交中国专利局、 申请号为 201310090122.X,发明名称为"一种逻辑窗口的点击命中方法及系统"的中国专 利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域 本发明涉及计算机技术领域, 具体涉及一种逻辑窗口的操作方法及系统。 背景技术 在全自绘技术中, 当二维平面上的逻辑窗口 (Frame )被引入三维渲染后, 开发人员就能在二维平面上看到具备三维效果的逻辑窗口。如图 1所示, 当虚 线所示的二维平面上的逻辑窗口被引入三维渲染后,可以得到实线所示的三维 渲染后的逻辑窗口。其中,三维渲染后的逻辑窗口是一个梯形,具备三维效果。  Operation method and system of logic window This application claims to be submitted to the Chinese Patent Office on March 20, 2013, the application number is 201310090122.X, and the Chinese patent application whose invention name is "a hit method and system for a logical window" is preferred. The entire contents of which are incorporated herein by reference. The present invention relates to the field of computer technologies, and in particular, to a method and system for operating a logic window. BACKGROUND In the full self-painting technology, when a logical frame on a two-dimensional plane is introduced into a three-dimensional rendering, a developer can see a logical window having a three-dimensional effect on a two-dimensional plane. As shown in Fig. 1, when the logical window on the two-dimensional plane shown by the dashed line is introduced into the three-dimensional rendering, the three-dimensional rendered logical window shown by the solid line can be obtained. Among them, the logical window after 3D rendering is a trapezoid with three-dimensional effect.
在全自绘技术中,开发人员通常需要对三维渲染后的逻辑窗口进行点击命 中测试。 如图 1所示, 当三维渲染后的逻辑窗口被鼠标点击时, 应该返回的是 在三维空间中该三维渲染后的逻辑窗口的点击位置, 然而, 由于该三维渲染后 的逻辑窗口是绘制在二维平面上的, 因此,通常会返回在二维空间中该三维渲 染后的逻辑窗口的点击位置,从而导致三维渲染后的逻辑窗口的点击命中结果 不准确。 发明内容 本发明实施例提供一种逻辑窗口的操作方法及系统。  In full self-painting technology, developers often need to perform hit-and-click tests on 3D rendered logical windows. As shown in Figure 1, when the 3D rendered logical window is clicked by the mouse, it should return the click position of the 3D rendered logical window in 3D space. However, since the 3D rendered logical window is drawn in On a two-dimensional plane, therefore, the click position of the three-dimensionally rendered logical window in the two-dimensional space is usually returned, resulting in inaccurate click hit results of the logical window after the three-dimensional rendering. SUMMARY OF THE INVENTION Embodiments of the present invention provide a method and system for operating a logic window.
本发明实施例提供一种逻辑窗口的操作方法, 包括:  The embodiment of the invention provides a method for operating a logic window, including:
建立三维渲染后的逻辑窗口的三维模型; 其中, 所述三维模型上标识有所 述三维渲染后的逻辑窗口的点击命中位置;  Establishing a three-dimensional model of the three-dimensionally rendered logical window; wherein the three-dimensional model identifies a click hit position of the three-dimensionally rendered logical window;
在三维空间中将所述三维渲染后的逻辑窗口的三维模型进行三维变换; 将所述三维变换后的三维模型透视投影到投影平面; 在所述投影平面上确定所述点击命中位置的坐标。 And three-dimensionally transforming the three-dimensional model of the three-dimensionally rendered logical window in a three-dimensional space; projecting the three-dimensionally transformed three-dimensional model into a projection plane; The coordinates of the click hit position are determined on the projection plane.
本发明实施例提供一种逻辑窗口的操作系统, 包括:  An embodiment of the present invention provides an operating system of a logic window, including:
创建模块, 用于建立三维渲染后的逻辑窗口的三维模型; 其中, 所述三维 模型上标识有所述三维渲染后的逻辑窗口的点击命中位置;  a creating module, configured to establish a three-dimensional model of the three-dimensionally rendered logical window; wherein the three-dimensional model identifies a click hit position of the three-dimensionally rendered logical window;
变换模块,用于在三维空间中将所述三维渲染后的逻辑窗口的三维模型进 行预设的三维变换;  a transform module, configured to perform a preset three-dimensional transformation on the three-dimensional model of the three-dimensionally rendered logical window in three-dimensional space;
投影模块, 用于将所述三维变换后的三维模型透视投影到投影平面; 确定模块, 用于在所述投影平面上确定所述点击命中位置的坐标。  a projection module, configured to project a perspective projection of the three-dimensional transformed three-dimensional model to a projection plane; and a determining module, configured to determine coordinates of the click hit position on the projection plane.
本公开实施例还提供一种非瞬时性的计算机可读存储介质,其上存储有计 算机可执行指令, 当计算机运行所述可执行指令时, 执行如下步骤:  The embodiment of the present disclosure further provides a non-transitory computer readable storage medium having stored thereon computer executable instructions, and when the computer executes the executable instructions, performing the following steps:
建立三维渲染后的逻辑窗口的三维模型; 其中, 所述三维模型上标识有所 述三维渲染后的逻辑窗口的点击命中位置;  Establishing a three-dimensional model of the three-dimensionally rendered logical window; wherein the three-dimensional model identifies a click hit position of the three-dimensionally rendered logical window;
在三维空间中将所述三维渲染后的逻辑窗口的三维模型进行三维变换; 将所述三维变换后的三维模型透视投影到投影平面;  And three-dimensionally transforming the three-dimensional model of the three-dimensionally rendered logical window in a three-dimensional space; projecting the three-dimensionally transformed three-dimensional model into a projection plane;
在所述投影平面上确定所述点击命中位置的坐标。  The coordinates of the click hit position are determined on the projection plane.
本发明实施例中,在获得三维渲染后的逻辑窗口的三维模型之后, 可以在 三维空间中将三维渲染后的逻辑窗口的三维模型进行预设的三维变换,并将三 维变换后的三维模型透视投影到投影平面,进而可以在投影平面上确定三维渲 染后的逻辑窗口的点击命中位置的坐标。通过这种方式, 可以有效地提高三维 渲染后的逻辑窗口的点击命中率。 附图说明 图 1是图是二维平面上的逻辑窗口被引入三维渲染后的示意图;  In the embodiment of the present invention, after obtaining the three-dimensional model of the logical window after the three-dimensional rendering, the three-dimensional model of the three-dimensionally rendered logical window may be subjected to preset three-dimensional transformation in three-dimensional space, and the three-dimensional transformed three-dimensional model is perspectived. Projected to the projection plane, and then the coordinates of the click hit position of the 3D rendered logical window can be determined on the projection plane. In this way, the click hit rate of the logical window after 3D rendering can be effectively improved. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a schematic diagram showing a logical window on a two-dimensional plane after being introduced into three-dimensional rendering;
图 2是本发明第一实施例提供的一种逻辑窗口的操作方法的流程图; 图 3是本发明第二实施例提供的一种逻辑窗口的操作方法的流程示意图; 图 4是本发明实施例提供的一种在三维空间中对三维渲染后的逻辑窗口的 三维模型做旋转的示意图;  2 is a flowchart of a method for operating a logic window according to a first embodiment of the present invention; FIG. 3 is a schematic flowchart of a method for operating a logic window according to a second embodiment of the present invention; An example of rotating a three-dimensional model of a three-dimensionally rendered logical window in a three-dimensional space;
图 5是本发明实施例提供的一种获取三维模型的位置坐标修正值以及大小 比例修正值的流程图; 图 6是本发明实施例提供的一种将三维变换后的三维模型透视投影到投影 平面的示意图; FIG. 5 is a flowchart of acquiring a position coordinate correction value and a size ratio correction value of a three-dimensional model according to an embodiment of the present invention; FIG. FIG. 6 is a schematic diagram of a perspective projection of a three-dimensionally transformed three-dimensional model onto a projection plane according to an embodiment of the present invention; FIG.
图 7是本发明第二实施例提供的一种获得三维渲染后的逻辑窗口的三维模 型的示意图;  7 is a schematic diagram of a three-dimensional model for obtaining a logical window after three-dimensional rendering according to a second embodiment of the present invention;
图 8是本发明第四实施例提供的一种逻辑窗口的操作系统的结构图; 图 9是本发明第五实施例提供的一种逻辑窗口的操作系统的结构图; 以及 图 10是本发明第六实施例提供的另一种逻辑窗口的操作系统的结构图。 具体实施方式 下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。基于本发明中的实施例, 本领域普通技术人员在没有做出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。  8 is a structural diagram of an operating system of a logic window according to a fourth embodiment of the present invention; FIG. 9 is a structural diagram of an operating system of a logic window according to a fifth embodiment of the present invention; and FIG. A structural diagram of an operating system of another logical window provided by the sixth embodiment. The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. example. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without the creative work are all within the scope of the present invention.
图 2是本发明第一实施例提供的一种逻辑窗口的操作方法的流程图,其中, 该逻辑窗口的点击命中方法可以应用于如电脑、智能手机、服务器等计算机系 统中。 如图 2所示, 该逻辑窗口的操作方法可以包括步骤 S201至步骤 S203。  2 is a flowchart of a method for operating a logic window according to a first embodiment of the present invention, wherein the click hit method of the logic window can be applied to a computer system such as a computer, a smart phone, or a server. As shown in FIG. 2, the operation method of the logic window may include steps S201 to S203.
S201、 建立三维渲染后的逻辑窗口的三维模型; 其中, 该三维模型上标识 有三维渲染后的逻辑窗口的点击命中位置。  S201. Establish a three-dimensional model of the three-dimensionally rendered logical window. The three-dimensional model identifies a click hit position of the three-dimensionally rendered logical window.
S202、 在三维空间中将三维渲染后的逻辑窗口的三维模型进行三维变换。 S203、 将三维变换后的三维模型透视投影到投影平面。  S202. Perform three-dimensional transformation of the three-dimensional model of the three-dimensionally rendered logical window in three-dimensional space. S203. Project a three-dimensionally transformed three-dimensional model perspective onto the projection plane.
S204、 在投影平面上确定点击命中位置的坐标。  S204. Determine a coordinate of the hit hit position on the projection plane.
本发明实施例中,在获得三维渲染后的逻辑窗口的三维模型之后, 可以在 三维空间中将三维渲染后的逻辑窗口的三维模型进行预设的三维变换,并将三 维变换后的三维模型透视投影到投影平面,进而可以在投影平面上确定三维渲 染后的逻辑窗口的点击命中位置的坐标。通过这种方式, 可以有效地提高三维 渲染后的逻辑窗口的点击命中率。  In the embodiment of the present invention, after obtaining the three-dimensional model of the logical window after the three-dimensional rendering, the three-dimensional model of the three-dimensionally rendered logical window may be subjected to preset three-dimensional transformation in three-dimensional space, and the three-dimensional transformed three-dimensional model is perspectived. Projected to the projection plane, and then the coordinates of the click hit position of the 3D rendered logical window can be determined on the projection plane. In this way, the click hit rate of the logical window after 3D rendering can be effectively improved.
图 3是本发明第二实施例提供的一种逻辑窗口的操作方法的流程图,其中, 该逻辑窗口的操作方法可以应用于如电脑、智能手机、服务器等计算机系统中。 如图 3所示, 该逻辑窗口的操作方法可以包括步骤 S301至步骤 S305。 S301、保持三维渲染后的逻辑窗口的长宽比例不变,将三维渲染后的逻辑 窗口映射到三维空间中, 获得三维渲染后的逻辑窗口的三维模型; 其中, 三维 模型上标识有三维渲染后的逻辑窗口的点击命中位置。 FIG. 3 is a flowchart of a method for operating a logic window according to a second embodiment of the present invention, wherein the operation method of the logic window can be applied to a computer system such as a computer, a smart phone, a server, or the like. As shown in FIG. 3, the operation method of the logic window may include steps S301 to S305. S301. Keep the length and width ratio of the logical window after the three-dimensional rendering unchanged, and map the three-dimensionally rendered logical window into the three-dimensional space to obtain a three-dimensional model of the three-dimensional rendered logical window; wherein, the three-dimensional model is marked with three-dimensional rendering The hit point of the logical window's click.
本发明实施例中,逻辑窗口是指利用全自绘技术创建的逻辑窗口( Frame )。 而在全自绘技术中 Frame的组织结构一般如下: 最顶级(或最底层 )的 Frame 内部嵌套有 N个逻辑子 Frame , 子 Frame之中又可以类似的嵌入子 Frame , 以 此类推可以存在多个嵌套关系的 Frame。 窗口绘制被触发时, 绘制将从顶级窗 口开始, 顶级窗口绘制完成之后, 接着绘制其下的一级子窗口, 接着一级一级 的嵌套绘制下去, 直至所有 Frame都绘制完毕,这样可以得到一个完整的逻辑 窗口。 在绘制某个逻辑窗口时, 可以首先判断逻辑窗口是否具备三维属性, 若 不具备三维属性则可以按照二维逻辑窗口的绘制方法对其进行绘制,若其具备 三维属性则执行三维渲染流程, 以绘制三维渲染后的逻辑窗口。  In the embodiment of the present invention, the logical window refers to a logical window (Frame) created by using the full self-painting technology. In the full self-painting technology, the organization structure of Frame is generally as follows: The top-level (or lowest-level) Frame is internally nested with N logical sub-frames, and sub-Frames can be similarly embedded in sub-frames, and so on. A frame with multiple nested relationships. When the window drawing is triggered, the drawing will start from the top-level window. After the top-level window is drawn, draw the next-level sub-window, and then draw the nesting level one level until all the frames are drawn, so that you can get A complete logical window. When drawing a logic window, you can first determine whether the logic window has 3D attributes. If you do not have 3D attributes, you can draw them according to the 2D logic window drawing method. If you have 3D attributes, execute the 3D rendering process. Draw a logical window after 3D rendering.
S302、在三维空间中将三维渲染后的逻辑窗口的三维模型进行预设的三维 变换。  S302: Perform a preset three-dimensional transformation on the three-dimensional model of the three-dimensionally rendered logical window in three-dimensional space.
本发明实施例中, 可以在三维空间中对映射获得的三维渲染后的 Frame 的三维模型做预设的旋转, 以使得三维渲染后的 Frame与投影平面相平行。  In the embodiment of the present invention, the three-dimensional model of the three-dimensionally rendered Frame obtained by the mapping may be rotated in a preset manner in a three-dimensional space, so that the frame after the three-dimensional rendering is parallel to the projection plane.
举例来说, 如图 4所示, 在由视角位置、 投影平面、 近裁面以及远裁面这 些三维参数生成的三维空间中,可以对映射获得的三维渲染后的 Frame的三维 模型做预设的旋转, 最终可以使得三维渲染后的 Frame与投影平面相平行。  For example, as shown in FIG. 4, in the three-dimensional space generated by the three-dimensional parameters of the viewing angle position, the projection plane, the near-cut surface, and the far-cut surface, the three-dimensional model of the three-dimensionally rendered Frame obtained by the mapping may be preset. The rotation can eventually make the 3D rendered frame parallel to the projection plane.
其中, 上述的投影平面可以是三维渲染后的 Frame的父逻辑窗口或显示屏 幕, 本发明实施例不作限定。  The above-mentioned projection plane may be a parent logical window or a display screen of the frame after the three-dimensional rendering, which is not limited in the embodiment of the present invention.
S303、 获取三维模型的位置坐标修正值以及大小比例修正值。  S303. Acquire a position coordinate correction value of the three-dimensional model and a size ratio correction value.
本发明实施例中,将三维渲染后的逻辑窗口映射到三维空间中去, 必然会 存在位置、 大小的变化, 为了实现点击命中三维渲染后的 Frame的目的, 这里 需要预先获取三维模型的位置坐标修正值以及大小比例修正值。  In the embodiment of the present invention, the three-dimensionally rendered logical window is mapped into the three-dimensional space, and the position and the size are inevitably changed. In order to achieve the purpose of hitting the frame after the three-dimensional rendering, the position coordinates of the three-dimensional model need to be acquired in advance. Correction value and size ratio correction value.
本发明实施例中获取三维模型的位置坐标修正值以及大小比例修正值的 流程可以如图 5所示, 包括步骤 S501至步骤 S503。  The flow of obtaining the position coordinate correction value and the size ratio correction value of the three-dimensional model in the embodiment of the present invention may be as shown in FIG. 5, and includes steps S501 to S503.
5501、 获取三维渲染后的 Frame在投影平面的坐标和图像大小。  5501. Obtain coordinates and image size of the frame in the projection plane after the three-dimensional rendering.
5502、将未经三维变换的三维渲染后的 Frame的三维模型透视投影到投影 平面。 5502. Projecting a three-dimensional model of the three-dimensionally rendered Frame without three-dimensional transformation onto the projection Plane.
S503、将未经三维变换的三维渲染后的 Frame的三维模型透视投影到投影 平面得到的图像的坐标和图像大小分别与三维渲染后的 Frame 在投影平面的 坐标和图像大小进行比较,得到三维模型的位置坐标修正值以及大小比例修正 值。  S503. The coordinates and the image size of the image obtained by projecting the three-dimensional model of the three-dimensionally rendered frame without the three-dimensional transformation onto the projection plane are compared with the coordinates and the image size of the frame after the three-dimensional rendering, respectively, to obtain a three-dimensional model. The position coordinate correction value and the size ratio correction value.
其中,通过该位置坐标修正值和大小比例修正值可以使经过三维变换后的 Frame的三维模型以合理的大小透视投影到投影平面上的合理位置。  The position coordinate correction value and the size ratio correction value can make the three-dimensional model of the three-dimensionally transformed frame project to a reasonable position on the projection plane in a reasonable size perspective.
5304、根据位置坐标修正值和大小比例修正值,将三维变换后的三维模型 透视投影到投影平面。  5304. Project the three-dimensionally transformed three-dimensional model to the projection plane according to the position coordinate correction value and the size ratio correction value.
举例来说, 如图 6 a所示, 上述步骤 S302在三维空间中对映射获得的三 维渲染后的 Frame的三维模型做预设的旋转,使得三维渲染后的 Frame与投影 平面相平行。 相应地, 如图 6 b所示, 可以根据步骤 S303获得的位置坐标修 正值和大小比例修正值, 将三维变换后的三维模型透视投影到投影平面。  For example, as shown in FIG. 6a, the above step S302 performs a preset rotation on the three-dimensional model of the three-dimensionally rendered frame obtained by the mapping in the three-dimensional space, so that the frame after the three-dimensional rendering is parallel to the projection plane. Correspondingly, as shown in FIG. 6b, the three-dimensionally transformed three-dimensional model can be perspectively projected onto the projection plane according to the position coordinate correction value and the size ratio correction value obtained in step S303.
5305、 在投影平面上确定点击命中位置的坐标。  5305. Determine the coordinates of the hit hit position on the projection plane.
如图 6 b所示, 可以在投影平面上确定点击命中位置的坐标。  As shown in Figure 6b, the coordinates of the hit hit position can be determined on the projection plane.
本发明实施例提供的逻辑窗口的操作方法中,在获得三维渲染后的逻辑窗 口的三维模型之后,可以在三维空间中将三维渲染后的逻辑窗口的三维模型进 行预设的三维变换,并根据获得的三维模型的位置坐标修正值以及大小比例修 正值,将三维变换后的三维模型透视投影到投影平面, 进而可以在投影平面上 确定三维渲染后的逻辑窗口的点击命中位置的坐标。通过这种方式, 可以有效 地提高三维渲染后的逻辑窗口的点击命中率。  In the operation method of the logic window provided by the embodiment of the present invention, after obtaining the three-dimensional model of the three-dimensionally rendered logical window, the three-dimensional model of the three-dimensionally rendered logical window may be subjected to a preset three-dimensional transformation in three-dimensional space, and according to The obtained position coordinate correction value and the size ratio correction value of the three-dimensional model are obtained by projecting the three-dimensionally transformed three-dimensional model perspective onto the projection plane, and then the coordinates of the click hit position of the three-dimensionally rendered logical window can be determined on the projection plane. In this way, the click hit rate of the logical window after 3D rendering can be effectively improved.
本发明第三实施例提供了另一种逻辑窗口的操作方法。与第二实施例相比 较, 在本实施例中, 在步骤 S301之前, 该逻辑窗口的操作方法还可以包括: 确定三维空间的三维参数并根据三维参数生成三维空间, 其中, 所述三维 参数包括视角位置、 投影平面、 近裁面以及远裁面的参数。 其中, 确定三维空 间的三维参数并根据三维参数生成三维空间可参考现有技术,本发明实施例不 作详细论述。  A third embodiment of the present invention provides another method of operating a logical window. Compared with the second embodiment, in the embodiment, before the step S301, the operation method of the logic window may further include: determining a three-dimensional parameter of the three-dimensional space and generating a three-dimensional space according to the three-dimensional parameter, wherein the three-dimensional parameter comprises Parameters for the position of the view, the plane of the projection, the near face, and the far face. For the determination of the three-dimensional parameters of the three-dimensional space and the generation of the three-dimensional space according to the three-dimensional parameters, reference may be made to the prior art, which is not discussed in detail in the embodiments of the present invention.
如图 7中所示,假设三维渲染后的 Frame在其父 Frame (上一级窗口或屏幕 ) 的位置为 ( 100,100,200,200 )处, 将其映射到三维坐标空间, 且保持长宽比例 不变, 如图 6所示, 三维渲染后的 Frame被映射到三维空间的位置为: 左上角 ( -10.0, 10.0, 0.0 ), 右下角 ( 10.0, -10.0, 0.0 ), 从而获得了三维渲染后的 Frame 的三维模型。 As shown in Figure 7, it is assumed that the frame after 3D rendering is at the position of (100, 100, 200, 200) of its parent frame (the upper level window or screen), map it to the 3D coordinate space, and maintain the aspect ratio. No change, as shown in Figure 6, the 3D rendered frame is mapped to the position of the 3D space: the upper left corner ( -10.0, 10.0, 0.0 ), the lower right corner ( 10.0, -10.0, 0.0 ), thus obtaining 3D rendering After the 3D model of the Frame.
请参阅图 8,图 8是本发明第四实施例提供的一种逻辑窗口的操作系统的结 构图, 其中, 该逻辑窗口的操作系统可以应用于如电脑、 智能手机、 服务器等 计算机系统中。 如图 8所示, 该逻辑窗口的操作系统可以包括:  Referring to FIG. 8, FIG. 8 is a structural diagram of an operating system of a logic window according to a fourth embodiment of the present invention, wherein an operating system of the logic window can be applied to a computer system such as a computer, a smart phone, or a server. As shown in FIG. 8, the operating system of the logic window may include:
创建模块 801 , 用于建立三维渲染后的逻辑窗口的三维模型; 其中, 三维 模型上标识有三维渲染后的逻辑窗口的点击命中位置;  a creating module 801, configured to establish a three-dimensional model of the three-dimensionally rendered logical window; wherein, the three-dimensional model identifies a click hit position of the three-dimensionally rendered logical window;
变换模块 802, 用于在三维空间中将三维渲染后的逻辑窗口的三维模型进 行三维变换;  a transform module 802, configured to perform three-dimensional transformation of the three-dimensional model of the three-dimensionally rendered logical window in three-dimensional space;
投影模块 803 , 用于将三维变换后的三维模型透视投影到投影平面; 确定模块 804 , 用于在投影平面上确定点击命中位置的坐标。  The projection module 803 is configured to project a three-dimensionally transformed three-dimensional model perspective onto the projection plane; and the determining module 804 is configured to determine coordinates of the click hit position on the projection plane.
请参阅图 9, 图 9是本发明第五实施例所提供的另一种逻辑窗口的操作系 统的结构图。 与第四实施例相比较, 本实施例所提供的系统还包括:  Referring to FIG. 9, FIG. 9 is a structural diagram of an operation system of another logic window according to a fifth embodiment of the present invention. Compared with the fourth embodiment, the system provided in this embodiment further includes:
生成模块 805 , 用于确定三维空间的三维参数并根据三维参数生成三维空 间, 其中, 三维参数包括视角位置、 投影平面、 近裁面以及远裁面的参数。  The generating module 805 is configured to determine a three-dimensional parameter of the three-dimensional space and generate a three-dimensional space according to the three-dimensional parameter, wherein the three-dimensional parameter includes a viewing angle position, a projection plane, a near-cut surface, and a parameter of the far-cut surface.
创建模块 801可将三维渲染后的逻辑窗口映射到生成模块 706所生成的三 维空间中。  The creation module 801 can map the three-dimensionally rendered logical window into the three-dimensional space generated by the generation module 706.
本实施例其他模块特征可参见第四实施例, 此处不做赘述。  For other module features of this embodiment, refer to the fourth embodiment, and details are not described herein.
参阅图 10, 图 10是本发明第六实施例提供的另一种逻辑窗口的操作系统 的结构图。 其中, 图 10所示的逻辑窗口的操作系统是由图 9所示的逻辑窗口 的操作系统进行优化得到的。 在图 10所示的逻辑窗口的操作系统中, 创建模 块 801可以包括:  Referring to FIG. 10, FIG. 10 is a structural diagram of an operating system of another logic window according to a sixth embodiment of the present invention. The operating system of the logical window shown in FIG. 10 is optimized by the operating system of the logical window shown in FIG. In the operating system of the logic window shown in FIG. 10, the creation module 801 may include:
第一创建单元 8011 , 用于保持三维渲染后的逻辑窗口的长宽比例不变; 第二创建单元 8012, 用于将三维渲染后的逻辑窗口映射到三维空间中, 获得三维渲染后的逻辑窗口的三维模型。  The first creating unit 8011 is configured to maintain the aspect ratio of the logical window after the three-dimensional rendering is unchanged. The second creating unit 8012 is configured to map the three-dimensionally rendered logical window into the three-dimensional space to obtain a logical window after the three-dimensional rendering. 3D model.
投影模块 803可以包括:  Projection module 803 can include:
第一投影单元 8031 , 用于获取三维模型的位置坐标修正值以及大小比例 修正值; 第二投影单元 8032, 用于根据位置坐标修正值和大小比例修正值, 将三 维变换后的三维模型透视投影到投影平面。 a first projection unit 8031, configured to acquire a position coordinate correction value of the three-dimensional model and a size ratio correction value; The second projection unit 8032 is configured to project the three-dimensionally transformed three-dimensional model into the projection plane according to the position coordinate correction value and the size ratio correction value.
其中, 第一投影单元 8031还可以包括:  The first projection unit 8031 may further include:
第一子单元,用于获取三维渲染后的逻辑窗口在投影平面的坐标和图像大 第二子单元,用于将未经三维变换的三维渲染后的逻辑窗口的三维模型透 视投影到投影平面;  a first subunit, configured to obtain a second subunit of the coordinate window and the image of the three-dimensionally rendered logical window at the projection plane, and is configured to project a three-dimensional model of the three-dimensionally rendered logical window without the three-dimensional transformation onto the projection plane;
第三子单元,用于将未经三维变换的三维渲染后的逻辑窗口的三维模型透 视投影到投影平面得到的图像的坐标和图像大小分别与三维渲染后的逻辑窗 口在投影平面的坐标和图像大小进行比较,得到三维模型的位置坐标修正值以 及大小比例修正值。  The third sub-unit is used for projecting the three-dimensional model of the three-dimensionally rendered logical window without three-dimensional transformation onto the projection plane to obtain the coordinates and image size of the image and the coordinate and image of the logical window after the three-dimensional rendering in the projection plane. The size is compared to obtain the position coordinate correction value and the size ratio correction value of the three-dimensional model.
另外, 图 8、 图 9和图 10所示的逻辑窗口的点击命中系统中, 变换模块 802用于在三维空间中将三维渲染后的逻辑窗口的三维模型进行预设的旋转, 以使得三维渲染后的逻辑窗口与投影平面相平行。  In addition, in the click hitting system of the logic window shown in FIG. 8, FIG. 9 and FIG. 10, the transform module 802 is configured to perform a preset rotation of the three-dimensional model of the three-dimensionally rendered logical window in three-dimensional space, so that the three-dimensional rendering The subsequent logical window is parallel to the projection plane.
本发明实施例中,上述的投影平面可以为三维渲染后的逻辑窗口的父逻辑 窗口或显示屏幕, 本发明实施例不作限定。  In the embodiment of the present invention, the projection plane may be a parent logic window or a display screen of the three-dimensionally rendered logical window, which is not limited in the embodiment of the present invention.
本发明实施例提供的逻辑窗口的操作系统中,在获得三维渲染后的逻辑窗 口的三维模型之后,可以在三维空间中将三维渲染后的逻辑窗口的三维模型进 行预设的三维变换,并根据获得的三维模型的位置坐标修正值以及大小比例修 正值,将三维变换后的三维模型透视投影到投影平面, 进而可以在投影平面上 确定三维渲染后的逻辑窗口的点击命中位置的坐标。通过这种方式, 可以有效 地提高三维渲染后的逻辑窗口的点击命中率。  In the operating system of the logic window provided by the embodiment of the present invention, after obtaining the three-dimensional model of the logical window after the three-dimensional rendering, the three-dimensional model of the three-dimensionally rendered logical window may be subjected to a preset three-dimensional transformation in a three-dimensional space, and according to The obtained position coordinate correction value and the size ratio correction value of the three-dimensional model are obtained by projecting the three-dimensionally transformed three-dimensional model perspective onto the projection plane, and then the coordinates of the click hit position of the three-dimensionally rendered logical window can be determined on the projection plane. In this way, the click hit rate of the logical window after 3D rendering can be effectively improved.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步 骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读 存储介质中, 存储介质可以包括: 闪存盘、 只读存储器(Read-Only Memory , ROM ), 随机存取器(Random Access Memory, RAM ), 磁盘或光盘等。  A person skilled in the art may understand that all or part of the various steps of the foregoing embodiments may be completed by a program instructing related hardware. The program may be stored in a computer readable storage medium, and the storage medium may include: Flash disk, read-only memory (ROM), random access memory (RAM), disk or optical disk.
以上对本发明实施例提供的逻辑窗口的操作方法、 系统进行了详细介绍, 说明只是用于帮助理解本发明的方法及其核心思想; 同时,对于本领域的一般 技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处, 综上所述, 本说明书内容不应理解为对本发明的限制。 The operation method and system of the logic window provided by the embodiment of the present invention are described in detail above, and the description is only used to help understand the method and core idea of the present invention. Meanwhile, it is generally used in the art. The present invention is not limited by the scope of the present invention, and the scope of the present invention is not limited by the scope of the present invention.

Claims

权 利 要 求 Rights request
1、 一种逻辑窗口的操作方法, 其特征在于, 包括: 1. A method of operating a logical window, which is characterized by including:
建立三维渲染后的逻辑窗口的三维模型;所述三维模型上标识有所述三维 渲染后的逻辑窗口的点击命中位置; Establish a three-dimensional model of the three-dimensionally rendered logical window; the three-dimensional model is marked with the click hit position of the three-dimensionally rendered logical window;
在三维空间中将所述三维渲染后的逻辑窗口的三维模型进行三维变换; 将所述三维变换后的三维模型透视投影到投影平面; Three-dimensionally transform the three-dimensional model of the three-dimensionally rendered logical window in a three-dimensional space; perspective-project the three-dimensional transformed three-dimensional model onto a projection plane;
在所述投影平面上确定所述点击命中位置的坐标。 The coordinates of the click hit position are determined on the projection plane.
2、根据权利要求 1所述的方法, 其特征在于, 所述建立三维渲染后的逻辑 窗口的三维模型, 包括: 2. The method according to claim 1, characterized in that establishing the three-dimensional model of the three-dimensional rendered logical window includes:
保持三维渲染后的逻辑窗口的长宽比例不变,将所述三维渲染后的逻辑窗 口映射到三维空间中, 获得所述三维渲染后的逻辑窗口的三维模型。 Keep the aspect ratio of the three-dimensionally rendered logical window unchanged, map the three-dimensionally rendered logical window into the three-dimensional space, and obtain a three-dimensional model of the three-dimensionally rendered logical window.
3、 根据权利要求 1或 2所述的方法, 其特征在于, 所述将所述三维变化后 的三维模型透视到投影平面, 包括: 3. The method according to claim 1 or 2, characterized in that the perspective of the three-dimensional changed three-dimensional model to the projection plane includes:
获取所述三维模型的位置坐标修正值以及大小比例修正值; Obtain the position coordinate correction value and size ratio correction value of the three-dimensional model;
根据所述位置坐标修正值和大小比例修正值,将所述三维变换后的三维模 型透视投影到所述投影平面。 According to the position coordinate correction value and the size ratio correction value, the three-dimensional transformed three-dimensional model is perspectively projected onto the projection plane.
4、 根据权利要求 3所述的方法, 其特征在于, 所述获取所述三维模型的 位置坐标修正值以及大小比例修正值包括: 4. The method according to claim 3, characterized in that said obtaining the position coordinate correction value and the size ratio correction value of the three-dimensional model includes:
获取所述三维渲染后的逻辑窗口在投影平面的坐标和图像大小; 将未经三维变换的所述三维渲染后的逻辑窗口的三维模型透视投影到所 述投影平面; Obtain the coordinates and image size of the three-dimensionally rendered logical window on the projection plane; perspectively project the three-dimensional model of the three-dimensionally rendered logical window without three-dimensional transformation to the projection plane;
将所述未经三维变换的所述三维渲染后的逻辑窗口的三维模型透视投影 到所述投影平面得到的图像的坐标和图像大小分别与所述三维渲染后的逻辑 窗口在投影平面的坐标和图像大小进行比较,得到所述三维模型的位置坐标修 正值以及大小比例修正值。 The coordinates and image size of the image obtained by perspective-projecting the three-dimensional model of the three-dimensionally rendered logical window without three-dimensional transformation onto the projection plane are respectively the same as the coordinates and image size of the three-dimensionally rendered logical window on the projection plane. The image sizes are compared to obtain the position coordinate correction value and the size ratio correction value of the three-dimensional model.
5、 根据权利要求 1所述的方法, 其特征在于, 所述在所述三维空间中将 所述三维渲染后的逻辑窗口的三维模型进行三维变换包括: 5. The method according to claim 1, wherein the three-dimensional transformation of the three-dimensional model of the three-dimensionally rendered logical window in the three-dimensional space includes:
所述三维空间中将所述三维渲染后的逻辑窗口的三维模型进行预设的旋 转, 以使得所述三维渲染后的逻辑窗口与投影平面相平行。 The three-dimensional model of the three-dimensionally rendered logical window is rotated in a preset manner in the three-dimensional space, so that the three-dimensionally rendered logical window is parallel to the projection plane.
6、 根据权利要求 2所述的方法, 其特征在于, 所述保持三维渲染后的逻 辑窗口的长宽比例不变,将所述三维渲染后的逻辑窗口映射到三维空间中, 获 得所述三维渲染后的逻辑窗口的三维模型之前, 所述方法还包括: 6. The method according to claim 2, characterized in that: keeping the aspect ratio of the three-dimensionally rendered logical window unchanged, mapping the three-dimensionally rendered logical window into a three-dimensional space, and obtaining the three-dimensional Before rendering the three-dimensional model of the logical window, the method further includes:
确定所述三维空间的三维参数并根据所述三维参数生成所述三维空间,其 中, 所述三维参数包括视角位置、 投影平面、 近裁面以及远裁面的参数。 Determine the three-dimensional parameters of the three-dimensional space and generate the three-dimensional space according to the three-dimensional parameters, where the three-dimensional parameters include parameters of the viewing angle position, projection plane, near section and far section.
7、 根据权利要求 1或 2所述的方法, 其特征在于, 所述投影平面为所述三 维渲染后的逻辑窗口的父逻辑窗口或显示屏幕。 7. The method according to claim 1 or 2, characterized in that the projection plane is the parent logical window or the display screen of the three-dimensionally rendered logical window.
8、 一种逻辑窗口的操作系统, 其特征在于, 包括: 8. A logical window operating system, characterized by including:
创建模块, 用于建立三维渲染后的逻辑窗口的三维模型; 其中, 所述三维 模型上标识有所述三维渲染后的逻辑窗口的点击命中位置; A creation module for establishing a three-dimensional model of the three-dimensionally rendered logical window; wherein the click hit position of the three-dimensionally rendered logical window is marked on the three-dimensional model;
变换模块,用于在三维空间中将所述三维渲染后的逻辑窗口的三维模型进 行三维变换; A transformation module, used to three-dimensionally transform the three-dimensional model of the three-dimensionally rendered logical window in three-dimensional space;
投影模块, 用于 projection module for
所述三维变换后的三维模型透视投影到投影平面; The three-dimensional transformed three-dimensional model is perspectively projected onto the projection plane;
确定模块, 用于在所述投影平面上确定所述点击命中位置的坐标。 Determining module, configured to determine the coordinates of the click hit position on the projection plane.
9、 根据权利要求 8所述的系统, 其特征在于, 所述创建模块包括: 第一创建单元, 用于保持三维渲染后的逻辑窗口的长宽比例不变; 第二创建单元, 用于将所述三维渲染后的逻辑窗口映射到三维空间中, 获 得所述三维渲染后的逻辑窗口的三维模型。 9. The system according to claim 8, characterized in that the creation module includes: a first creation unit, used to keep the aspect ratio of the three-dimensionally rendered logical window unchanged; a second creation unit, used to keep the aspect ratio of the three-dimensionally rendered logical window unchanged; The three-dimensionally rendered logical window is mapped into a three-dimensional space, and a three-dimensional model of the three-dimensionally rendered logical window is obtained.
10、 根据权利要求 8或 9所述的系统, 其特征在于, 所述投影模块包括: 第一投影单元,用于获取所述三维模型的位置坐标修正值以及大小比例修 正值; 10. The system according to claim 8 or 9, characterized in that the projection module includes: The first projection unit is used to obtain the position coordinate correction value and the size ratio correction value of the three-dimensional model;
第二投影单元, 用于根据所述位置坐标修正值和大小比例修正值,将所述 三维变换后的三维模型透视投影到投影平面。 The second projection unit is used to perspectively project the three-dimensional transformed three-dimensional model to a projection plane according to the position coordinate correction value and the size ratio correction value.
11、 根据权利要求 10所述的系统, 其特征在于, 所述第一投影单元包括: 第一子单元,用于获取所述三维渲染后的逻辑窗口在投影平面的坐标和图 像大小; 11. The system according to claim 10, characterized in that the first projection unit includes: a first sub-unit, used to obtain the coordinates and image size of the three-dimensionally rendered logical window on the projection plane;
第二子单元,用于将未经三维变换的所述三维渲染后的逻辑窗口的三维模 型透视投影到所述投影平面; The second subunit is used to perspectively project the three-dimensional model of the three-dimensional rendered logical window without three-dimensional transformation to the projection plane;
第三子单元,用于将所述未经三维变换的所述三维渲染后的逻辑窗口的三 维模型透视投影到所述投影平面得到的图像的坐标和图像大小分别与所述三 维渲染后的逻辑窗口在投影平面的坐标和图像大小进行比较,得到所述三维模 型的位置坐标修正值以及大小比例修正值。 The third subunit is used to perspectively project the three-dimensional model of the three-dimensionally rendered logical window without three-dimensional transformation to the projection plane. The coordinates and image size of the image obtained are respectively the same as those of the three-dimensionally rendered logical window. The coordinates of the window on the projection plane are compared with the image size to obtain the position coordinate correction value and the size ratio correction value of the three-dimensional model.
12、 根据权利要求 8所述的系统, 其特征在于, 所述变换模块用于在所述 三维空间中将所述三维渲染后的逻辑窗口的三维模型进行预设的旋转,以使得 所述三维渲染后的逻辑窗口与投影平面相平行。 12. The system according to claim 8, wherein the transformation module is configured to perform a preset rotation of the three-dimensional model of the three-dimensionally rendered logical window in the three-dimensional space, so that the three-dimensional The rendered logical window is parallel to the projection plane.
13、 根据权利要求 9所述的系统, 其特征在于, 所述系统还包括: 生成模块,用于确定所述三维空间的三维参数并根据所述三维参数生成所 述三维空间, 其中, 所述三维参数包括视角位置、 投影平面、 近裁面以及远裁 面的参数。 13. The system according to claim 9, characterized in that, the system further includes: a generation module, used to determine the three-dimensional parameters of the three-dimensional space and generate the three-dimensional space according to the three-dimensional parameters, wherein, the The three-dimensional parameters include the viewing angle position, projection plane, near section plane and far section plane parameters.
14、 根据权利要求 8或 9所述的系统, 其特征在于, 所述投影平面为所述 三维渲染后的逻辑窗口的父逻辑窗口或显示屏幕。 14. The system according to claim 8 or 9, characterized in that the projection plane is the parent logical window or the display screen of the three-dimensionally rendered logical window.
15、一种非瞬时性的计算机可读存储介质,其上存储有计算机可执行指令, 当计算机运行所述可执行指令时, 执行如下步骤: 建立三维渲染后的逻辑窗口的三维模型; 其中, 所述三维模型上标识有所 述三维渲染后的逻辑窗口的点击命中位置; 15. A non-transitory computer-readable storage medium on which computer-executable instructions are stored. When the computer runs the executable instructions, the following steps are performed: Establishing a three-dimensional model of the three-dimensionally rendered logical window; wherein the click hit position of the three-dimensionally rendered logical window is marked on the three-dimensional model;
在三维空间中将所述三维渲染后的逻辑窗口的三维模型进行三维变换; 将所述三维变换后的三维模型透视投影到投影平面; Three-dimensionally transform the three-dimensional model of the three-dimensionally rendered logical window in a three-dimensional space; perspective-project the three-dimensional transformed three-dimensional model onto a projection plane;
在所述投影平面上确定所述点击命中位置的坐标。 The coordinates of the click hit position are determined on the projection plane.
PCT/CN2013/090909 2013-03-20 2013-12-30 Operating method and system for logical window WO2014146470A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310090122.X 2013-03-20
CN201310090122.XA CN104063207B (en) 2013-03-20 2013-03-20 A kind of click hit method and system of window logic

Publications (1)

Publication Number Publication Date
WO2014146470A1 true WO2014146470A1 (en) 2014-09-25

Family

ID=51550935

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/090909 WO2014146470A1 (en) 2013-03-20 2013-12-30 Operating method and system for logical window

Country Status (2)

Country Link
CN (1) CN104063207B (en)
WO (1) WO2014146470A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108255367B (en) * 2017-12-26 2020-06-23 平安科技(深圳)有限公司 Mechanism window display method, mechanism window display device, mechanism window equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102232294A (en) * 2008-12-01 2011-11-02 图象公司 Methods and systems for presenting three-dimensional motion pictures with content adaptive information
CN102549622A (en) * 2009-09-29 2012-07-04 北京大学 Method for processing volumetric image data
CN102576469A (en) * 2009-09-25 2012-07-11 兰得马克制图公司 Drawing graphical objects in a 3D subsurface environment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7561725B2 (en) * 2003-03-12 2009-07-14 Siemens Medical Solutions Usa, Inc. Image segmentation in a three-dimensional environment
US7739623B2 (en) * 2004-04-15 2010-06-15 Edda Technology, Inc. Interactive 3D data editing via 2D graphical drawing tools
CN101789132A (en) * 2010-01-22 2010-07-28 苏州领航自动化科技有限公司 Display method of single-view multiple OpenGL viewports
CN102467756B (en) * 2010-10-29 2015-11-25 国际商业机器公司 For perspective method and the device of three-dimensional scenic

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102232294A (en) * 2008-12-01 2011-11-02 图象公司 Methods and systems for presenting three-dimensional motion pictures with content adaptive information
CN102576469A (en) * 2009-09-25 2012-07-11 兰得马克制图公司 Drawing graphical objects in a 3D subsurface environment
CN102549622A (en) * 2009-09-29 2012-07-04 北京大学 Method for processing volumetric image data

Also Published As

Publication number Publication date
CN104063207B (en) 2018-11-09
CN104063207A (en) 2014-09-24

Similar Documents

Publication Publication Date Title
US10235764B2 (en) Method, terminal, and storage medium for detecting collision between colliders in real-time virtual scene
JP2020502614A (en) 3D Graphical User Interface for Information Input in Virtual Reality Environment
US9990760B2 (en) Generating a 3D interactive immersive experience from a 2D static image
WO2014117559A1 (en) 3d-rendering method and device for logical window
JP2020515923A (en) Performing virtual reality input
WO2017152803A1 (en) Image processing method and device
JP2016539398A5 (en)
US10318101B2 (en) Gesture-based user interface and method for navigating in three-dimensional space
US20120280991A1 (en) Employing mesh files to animate transitions in client applications
US9824494B2 (en) Hybrid surfaces for mesh repair
US8793108B2 (en) Three-dimensional model determination from two-dimensional sketch with two-dimensional refinement
JP2015508197A5 (en)
US20140184596A1 (en) Image based rendering
WO2022033009A1 (en) Rendering processing method and apparatus, electronic device and storage medium
US20170287230A1 (en) Touch gestures for navigation and interacting with content in a three-dimensional space
US9087401B1 (en) Method of annotation across different locations
US10147240B2 (en) Product image processing method, and apparatus and system thereof
WO2017092430A1 (en) Method and device for realizing user interface control based on virtual reality application
WO2017133567A1 (en) Batch rendering method, device, and apparatus
KR20210030384A (en) 3D transition
JP2023516656A (en) Efficient localization based on multiple feature types
CN109146775B (en) Two-dimensional picture conversion method, device, equipment and storage medium
WO2014146470A1 (en) Operating method and system for logical window
JP2013080466A (en) Method and device for processing document image
RU2638014C2 (en) Method and computer device for creating simplified borders of graphic objects

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13879178

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 01.02.2016)

122 Ep: pct application non-entry in european phase

Ref document number: 13879178

Country of ref document: EP

Kind code of ref document: A1