CN114780009A - Three-dimensional object rotation method, device, equipment, storage medium and program product - Google Patents
Three-dimensional object rotation method, device, equipment, storage medium and program product Download PDFInfo
- Publication number
- CN114780009A CN114780009A CN202210575895.6A CN202210575895A CN114780009A CN 114780009 A CN114780009 A CN 114780009A CN 202210575895 A CN202210575895 A CN 202210575895A CN 114780009 A CN114780009 A CN 114780009A
- Authority
- CN
- China
- Prior art keywords
- dimensional object
- target
- touch points
- touch
- rotation
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04845—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04847—Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
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)
- User Interface Of Digital Computer (AREA)
Abstract
Description
技术领域technical field
本申请实施例涉及界面交互技术领域,特别涉及一种三维对象旋转方法、装置、设备、存储介质及程序产品。The embodiments of the present application relate to the technical field of interface interaction, and in particular, to a method, apparatus, device, storage medium, and program product for rotating a three-dimensional object.
背景技术Background technique
三维对象在显示屏中以二维图像的形式进行显示,用户想要看到三维对象的其它角度的图像时,需要对三维对象进行旋转。The three-dimensional object is displayed in the form of a two-dimensional image on the display screen. When the user wants to see images of the three-dimensional object from other angles, the three-dimensional object needs to be rotated.
当三维对象在触摸屏终端进行显示时,用户可以通过触摸滑动的方式控制三维对象的旋转。在相关技术中,用户旋转触摸屏中的三维对象时,可以先选择要旋转轴,然后通过滑动触摸屏的方式控制三维对象沿着旋转轴进行旋转。When the three-dimensional object is displayed on the touch screen terminal, the user can control the rotation of the three-dimensional object by touching and sliding. In the related art, when a user rotates a three-dimensional object on a touch screen, he may first select an axis to be rotated, and then control the three-dimensional object to rotate along the rotation axis by sliding the touch screen.
然而,上述方案中需要用户先执行旋转轴的操作,导致用户操作步骤繁琐,浪费用户的操作时间,影响对三维对象进行旋转时的人机交互效率。However, in the above solution, the user is required to perform the operation of the rotation axis first, which leads to cumbersome operation steps for the user, wastes the user's operation time, and affects the human-computer interaction efficiency when rotating the three-dimensional object.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种三维对象旋转方法、装置、设备、存储介质及程序产品。所述技术方案包括:Embodiments of the present application provide a three-dimensional object rotation method, apparatus, device, storage medium, and program product. The technical solution includes:
一方面,本申请实施例提供了一种三维对象旋转方法,所述方法包括:On the one hand, an embodiment of the present application provides a method for rotating a three-dimensional object, the method comprising:
显示交互界面,所述交互界面中显示有至少一个三维对象;displaying an interactive interface in which at least one three-dimensional object is displayed;
检测所述交互界面中的触控点,所述触控点的初始数量为2,且所述触控点的当前数量为1或2;Detecting touch points in the interactive interface, the initial number of the touch points is 2, and the current number of the touch points is 1 or 2;
当所述交互界面中的所述触控点发生移动时,对所述至少一个所述三维对象中的目标三维对象进行旋转;所述目标三维对象的旋转角度与所述触控点的移动情况相关,且所述目标三维对象的旋转轴与所述触控点的当前数量相关。When the touch point in the interactive interface moves, the target 3D object in the at least one 3D object is rotated; the rotation angle of the target 3D object is related to the movement of the touch point and the rotation axis of the target three-dimensional object is related to the current number of the touch points.
一方面,本申请实施例提供了一种三维对象旋转装置,所述装置包括:On the one hand, an embodiment of the present application provides a three-dimensional object rotation device, and the device includes:
界面显示模块,用于显示交互界面,所述交互界面中显示有至少一个三维对象;an interface display module, used for displaying an interactive interface, wherein at least one three-dimensional object is displayed in the interactive interface;
触控点检测模块,用于检测所述交互界面中的触控点,所述触控点的初始数量为2,且所述触控点的当前数量为1或2;a touch point detection module for detecting touch points in the interactive interface, the initial number of the touch points is 2, and the current number of the touch points is 1 or 2;
旋转模块,用于当所述交互界面中的所述触控点发生移动时,对所述至少一个所述三维对象中的目标三维对象进行旋转;所述目标三维对象的旋转角度与所述触控点的移动情况相关,且所述目标三维对象的旋转轴与所述触控点的当前数量相关。A rotation module, configured to rotate a target three-dimensional object in the at least one of the three-dimensional objects when the touch point in the interactive interface moves; the rotation angle of the target three-dimensional object is related to the touch point. The movement of the touch points is related, and the rotation axis of the target three-dimensional object is related to the current number of the touch points.
另一方面,本申请实施例提供了一种计算机设备,所述计算机设备包括处理器和存储器,所述处理器和所述存储器之间通过总线相连;所述处理器执行所述存储器中存储的计算机指令,以使得所述计算机设备实现如上所述的三维对象旋转方法。On the other hand, an embodiment of the present application provides a computer device, where the computer device includes a processor and a memory, and the processor and the memory are connected through a bus; the processor executes data stored in the memory Computer instructions to cause the computer device to implement the three-dimensional object rotation method as described above.
又一方面,本申请实施例还提供了一种计算机可读存储介质,所述存储介质中存储有计算机指令,所述计算机指令用于被处理器执行,以实现上述三维对象旋转方法。In another aspect, an embodiment of the present application further provides a computer-readable storage medium, where computer instructions are stored in the storage medium, and the computer instructions are configured to be executed by a processor to implement the above three-dimensional object rotation method.
又一方面,本申请提供了一种计算机程序产品,该计算机程序产品包括计算机指令,该计算机指令存储在计算机可读存储介质中。该计算机程序产品用于实现上述三维对象旋转方法。In yet another aspect, the present application provides a computer program product comprising computer instructions stored in a computer-readable storage medium. The computer program product is used to implement the above three-dimensional object rotation method.
又一方面,本申请提供了一种计算机程序,该计算机程序由计算机设备的处理器执行,以实现上述三维对象旋转方法。In yet another aspect, the present application provides a computer program, the computer program being executed by a processor of a computer device to implement the above three-dimensional object rotation method.
本申请实施例提供的技术方案至少包括如下有益效果:The technical solutions provided by the embodiments of the present application include at least the following beneficial effects:
用户在触摸屏中通过滑动触摸的方式对目标三维对象进行旋转时,可以通过单点/两点触控的方式选择旋转轴,并通过触摸滑动情况控制旋转角度,从而实现了通过两个手指的触控同时选择旋转轴和控制旋转角度的方式,简化了用户通过触控屏旋转三维对象时的操作步骤,缩短了用户的操作时间,提高了对触摸屏中的三维对象进行旋转时的人机交互效率。When the user rotates the target 3D object by sliding touch on the touch screen, he can select the rotation axis by single-point/two-point touch, and control the rotation angle by touching the sliding situation, thus realizing the touch of two fingers. The method of selecting the rotation axis and controlling the rotation angle at the same time simplifies the operation steps when the user rotates the three-dimensional object through the touch screen, shortens the operation time of the user, and improves the human-computer interaction efficiency when rotating the three-dimensional object in the touch screen. .
附图说明Description of drawings
图1是本申请一个示例性实施例提供的计算机设备的架构图;FIG. 1 is an architectural diagram of a computer device provided by an exemplary embodiment of the present application;
图2是本申请一个示例性实施例提供的一种三维对象旋转方法的流程图;FIG. 2 is a flowchart of a three-dimensional object rotation method provided by an exemplary embodiment of the present application;
图3是本申请一个示例性实施例提供的一种三维对象旋转方法的流程图;3 is a flowchart of a method for rotating a three-dimensional object provided by an exemplary embodiment of the present application;
图4是图3所示实施例涉及的一种交互界面示意图;Fig. 4 is a schematic diagram of an interactive interface involved in the embodiment shown in Fig. 3;
图5是图3所示实施例涉及的一种旋转角度确定示意图;FIG. 5 is a schematic diagram of determining a rotation angle involved in the embodiment shown in FIG. 3;
图6是图3所示实施例涉及的一种两指操作流程图;FIG. 6 is a flow chart of a two-finger operation involved in the embodiment shown in FIG. 3;
图7是图3所示实施例涉及的一种两指操作屏幕显示示意图;FIG. 7 is a schematic diagram showing a two-finger operation screen according to the embodiment shown in FIG. 3;
图8是图3所示实施例涉及的一种旋转角度确定示意图;Fig. 8 is a schematic diagram of determining a rotation angle involved in the embodiment shown in Fig. 3;
图9是图3所示实施例涉及的一种单指操作流程图;FIG. 9 is a flow chart of a single-finger operation involved in the embodiment shown in FIG. 3;
图10是图3所示实施例涉及的一种单指操作屏幕显示示意图;FIG. 10 is a schematic diagram of a single-finger operation screen display involved in the embodiment shown in FIG. 3;
图11是图3所示实施例涉及的一种目标三维对象旋转控制流程图;FIG. 11 is a flow chart of the rotation control of a target three-dimensional object involved in the embodiment shown in FIG. 3;
图12是本申请一示例性实施例提供的三维对象旋转装置的结构示意图;FIG. 12 is a schematic structural diagram of a three-dimensional object rotation device provided by an exemplary embodiment of the present application;
图13是本申请一个示例性实施例提供的计算机设备的结构示意图。FIG. 13 is a schematic structural diagram of a computer device provided by an exemplary embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
在本文中提及的“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。As used herein, "plurality" refers to two or more. "And/or", which describes the association relationship of the associated objects, means that there can be three kinds of relationships, for example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone. The character "/" generally indicates that the associated objects are an "or" relationship.
应理解,在本申请的实施例中提到的“指示”可以是直接指示,也可以是间接指示,还可以是表示具有关联关系。举例说明,A指示B,可以表示A直接指示B,例如B可以通过A获取;也可以表示A间接指示B,例如A指示C,B可以通过C获取;还可以表示A和B之间具有关联关系。It should be understood that the "instruction" mentioned in the embodiments of the present application may be a direct instruction, an indirect instruction, or an associated relationship. For example, if A indicates B, it can indicate that A directly indicates B, for example, B can be obtained through A; it can also indicate that A indicates B indirectly, such as A indicates C, and B can be obtained through C; it can also indicate that there is an association between A and B relation.
在本申请实施例的描述中,术语“对应”可表示两者之间具有直接对应或间接对应的关系,也可以表示两者之间具有关联关系,也可以是指示与被指示、配置与被配置等关系。In the description of the embodiments of the present application, the term "corresponding" may indicate that there is a direct or indirect corresponding relationship between the two, or may indicate that there is an associated relationship between the two, or indicate and be instructed, configure and be instructed configuration, etc.
本申请实施例中,“预定义”可以通过在设备(例如,包括终端设备和网络设备)中预先保存相应的代码、表格或其他可用于指示相关信息的方式来实现,本申请对于其具体的实现方式不做限定。比如预定义可以是指协议中定义的。In this embodiment of the present application, "predefinition" may be implemented by pre-saving corresponding codes, forms, or other means that can be used to indicate relevant information in devices (for example, including terminal devices and network devices). The implementation method is not limited. For example, predefined may refer to the definition in the protocol.
与二维图像不同的是,存在于数字世界中的三维对象的细节通常需要进行缩放、旋转等操作才能够完全看清。Unlike two-dimensional images, the details of three-dimensional objects that exist in the digital world usually require scaling, rotation, etc. to be fully seen.
三维姿态旋转是指对显示屏中的三维对象进行旋转,以便查看三维对象的各个角度的图像的操作。The three-dimensional pose rotation refers to the operation of rotating the three-dimensional object in the display screen so as to view images of the three-dimensional object from various angles.
本申请实施例主要涉及三维姿态旋转是使用手势旋转三维物体,而不是使用软件UI或其他硬件输入工具进行旋转的方案。The embodiments of the present application mainly relate to a solution in which the three-dimensional attitude rotation is to use a gesture to rotate a three-dimensional object, instead of using a software UI or other hardware input tools for rotation.
请参考图1,其示出了本申请一个示例性实施例提供的计算机设备的架构图。如图1所示,该计算机设备10包括触控屏110,以及安装并运行在计算机设备中的应用程序120。Please refer to FIG. 1 , which shows an architecture diagram of a computer device provided by an exemplary embodiment of the present application. As shown in FIG. 1 , the
其中,触控屏110是支持触摸操作功能的显示屏。The
通常来说,触控屏110可以通过显示面板,以及显示面板下的触控面板来实现。借助于显示110,用户可以通过直接触摸触控屏与计算机设备进行交互。Generally speaking, the
应用程序120是指通过触控屏110上的二维视图摄像机显示三维虚拟世界的计算机程序。The application program 120 refers to a computer program that displays a three-dimensional virtual world through a two-dimensional view camera on the
其中,上述计算机设备10可以是任意带有触摸屏,以及具有应用程序运行功能的设备,比如,计算机设备10可以是智能手机、平板电脑、车载电脑、电子书阅读器、带有触摸屏的台式电脑、以及带有触摸屏的笔记本电脑等等。Wherein, the above-mentioned
请参考图2,其示出了本申请一个示例性实施例提供的三维对象旋转方法的流程图。该方法可以由计算机设备执行;其中,该计算机设备可以是上述图1所示的计算机设备10。该方法可以包括如下步骤。Please refer to FIG. 2 , which shows a flowchart of a three-dimensional object rotation method provided by an exemplary embodiment of the present application. The method may be performed by a computer device; wherein, the computer device may be the
步骤201,显示交互界面,交互界面中显示有至少一个三维对象。
在本申请实施例中,计算机设备可以通过安装并运行的应用程序,在触摸屏中显示交互界面。In this embodiment of the present application, the computer device may display an interactive interface on the touch screen by using an installed and running application program.
其中,上述三维对象是指在三维虚拟环境中存在的三维虚拟对象,比如,三维对象可以是一个三维物体或者三维人物等等。The above three-dimensional object refers to a three-dimensional virtual object existing in a three-dimensional virtual environment. For example, the three-dimensional object may be a three-dimensional object or a three-dimensional character.
步骤202,检测交互界面中的触控点,触控点的初始数量为2,且触控点的当前数量为1或2。
在本申请实施例中,计算机设备可以实时检测用户在交互界面中的触控操作,其中,该触控操作对应的触控点的初始数量为2个,也就是说,在对三维对象进行旋转时,用户首先通过两点触控的方式在触控屏中进行触控操作。In the embodiment of the present application, the computer device can detect the touch operation of the user in the interactive interface in real time, wherein the initial number of touch points corresponding to the touch operation is 2, that is, when the three-dimensional object is rotated , the user first performs a touch operation on the touch screen by means of two-point touch.
步骤203,当交互界面中的触控点发生移动时,对至少一个三维对象中的目标三维对象进行旋转;目标三维对象的旋转角度与触控点的移动情况相关,且目标三维对象的旋转轴与触控点的当前数量相关。
在本申请实施例中,在后续旋转过程中,用户可以保持两点触控的操作,也可以从两点触控变化为单点触控,其中,两点触控/单点触控用来确定目标三维对象的旋转轴,触控操作可以为触摸滑动操作,触摸滑动操作的滑动情况(比如滑动方向、滑动距离、滑动速度等)用来确定目标三维对象的旋转角度。In the embodiment of the present application, in the subsequent rotation process, the user can maintain the two-point touch operation, or can change from the two-point touch to the single-point touch, wherein the two-point touch/single-point touch is used for Determine the rotation axis of the target 3D object, the touch operation can be a touch sliding operation, and the sliding conditions of the touch sliding operation (such as sliding direction, sliding distance, sliding speed, etc.) are used to determine the rotation angle of the target 3D object.
在本申请实施例中,根据触控点的当前数量的不同,目标三维对象的旋转轴可以是平行于触控屏的旋转轴或者垂直于触控屏的旋转轴。In this embodiment of the present application, depending on the current number of touch points, the rotation axis of the target three-dimensional object may be parallel to the rotation axis of the touch screen or perpendicular to the rotation axis of the touch screen.
综上所述,本申请实施例所示的方案,用户在触摸屏中通过滑动触摸的方式对目标三维对象进行旋转时,可以通过单点/两点触控的方式选择旋转轴,并通过触摸滑动情况控制旋转角度,从而实现了通过两个手指的触控同时选择旋转轴和控制旋转角度的方式,简化了用户通过触控屏旋转三维对象时的操作步骤,缩短了用户的操作时间,提高了对触摸屏中的三维对象进行旋转时的人机交互效率。To sum up, in the solution shown in the embodiments of the present application, when the user rotates the target three-dimensional object by sliding touch on the touch screen, the user can select the rotation axis by single-point/two-point touch, and touch and slide The rotation angle is controlled by the situation, so that the method of simultaneously selecting the rotation axis and controlling the rotation angle through the touch of two fingers is realized, which simplifies the operation steps when the user rotates the three-dimensional object through the touch screen, shortens the user's operation time, and improves the Human-computer interaction efficiency when rotating 3D objects in a touchscreen.
请参考图3,其示出了本申请一个示例性实施例提供的三维对象旋转方法的流程图。该方法可以由计算机设备执行;其中,该第计算机设备可以是上述图1所示的计算机设备10。该方法可以包括如下步骤。Please refer to FIG. 3 , which shows a flowchart of a three-dimensional object rotation method provided by an exemplary embodiment of the present application. The method may be performed by a computer device; wherein, the first computer device may be the
步骤301,显示交互界面,交互界面中显示有至少一个三维对象。In
在本申请实施例中,计算机设备可以显示交互界面,并且可以在交互界面中显示至少一个三维对象。In this embodiment of the present application, the computer device may display an interactive interface, and may display at least one three-dimensional object in the interactive interface.
其中,交互界面可以是二维视图界面,该二维视图界面可以是通过二维视图屏幕显示的交互界面。计算机设备可以在二维视图屏幕上显示交互界面,并且在该二维视图界面上显示至少一个三维对象。The interactive interface may be a two-dimensional view interface, and the two-dimensional view interface may be an interactive interface displayed on a two-dimensional view screen. The computer device may display an interactive interface on a two-dimensional view screen and display at least one three-dimensional object on the two-dimensional view interface.
在一种可能的实现方式中,计算机设备可以是终端设备,该终端设备可以是智能手机。In a possible implementation manner, the computer device may be a terminal device, and the terminal device may be a smart phone.
比如,请参考图4,其示出了本申请实施例涉及的交互界面示意图。如图4所示,计算机设备(智能手机)显示UI界面,该UI界面可以是上述的交互界面,在交互界面上显示有虚拟世界40(virtual world)以及至少一个三维对象41(3D object),该UI界面可以显示在显示屏幕上,该显示屏幕可以是多点触摸屏42(multi-touch screen),该多点触摸屏42可以支持计算机设备在多点触碰时接收多点激发的信号指令。用户可以通过UI界面查看其中的虚拟世界40以及三维对象41。For example, please refer to FIG. 4 , which shows a schematic diagram of an interactive interface involved in an embodiment of the present application. As shown in FIG. 4 , the computer device (smart phone) displays a UI interface, and the UI interface can be the above-mentioned interactive interface, and a virtual world 40 (virtual world) and at least one three-dimensional object 41 (3D object) are displayed on the interactive interface, The UI interface can be displayed on a display screen, and the display screen can be a
步骤302,检测交互界面中的触控点,触控点的初始数量为2,且触控点的当前数量为1或2。
在本申请实施例中,计算机设备可以检测交互界面中的触控点,由于交互界面中的触控点的初始数量为2,可以确定当前检测到的交互界面中的触控点的当前数量,检测到的触控点的当前数量可以分为两种情况,一种是维持初始数量,即检测到的触控点的当前数量仍为2,另一种是减少触控点,即检测到的触控点的当前数量为1。In the embodiment of the present application, the computer device can detect the touch points in the interactive interface. Since the initial number of touch points in the interactive interface is 2, the current number of touch points in the currently detected interactive interface can be determined, The current number of detected touch points can be divided into two cases, one is to maintain the initial number, that is, the current number of detected touch points is still 2, and the other is to reduce the number of touch points, that is, the detected The current number of touch points is 1.
在一种可能的实现方式中,计算机设备周期性的检测交互界面中的触控点,或者,计算机设备实时检测交互界面中的触控点。In a possible implementation manner, the computer device periodically detects the touch points in the interactive interface, or the computer device detects the touch points in the interactive interface in real time.
也就是说,当计算机设备显示交互界面,且交互界面中包括至少一个支持进行旋转的三维对象时,计算机设备可以周期性的或者实时的检测交互界面中是否存在触控点以及确定触控点的当前数量。That is to say, when the computer device displays the interactive interface, and the interactive interface includes at least one three-dimensional object that supports rotation, the computer device can periodically or in real time detect whether there is a touch point in the interactive interface and determine whether the touch point exists. Current quantity.
由于计算机设备是通过多点触摸屏显示交互界面的,所以计算机设备可以检测到作用于多点触摸屏的多个触控点。Since the computer device displays the interactive interface through the multi-touch screen, the computer device can detect multiple touch points acting on the multi-touch screen.
步骤303,根据触控点的当前数量确定目标三维对象的旋转轴。Step 303: Determine the rotation axis of the target three-dimensional object according to the current number of touch points.
在本申请实施例中,计算机设备可以根据检测到的触控点的当前数量确定当前针对于目标三维对象的旋转轴。In this embodiment of the present application, the computer device may determine the current rotation axis for the target three-dimensional object according to the current number of detected touch points.
其中,目标三维对象可以是交互界面上显示的至少一个三维对象中的一个,并且目标三维对象可以是当前支持进行旋转的三维对象。The target three-dimensional object may be one of at least one three-dimensional object displayed on the interactive interface, and the target three-dimensional object may be a three-dimensional object that currently supports rotation.
在一种可能的实现方式中,当交互界面上显示有一个三维对象时,计算机设备可以直接将该三维对象确定为目标三维对象,计算机设备可以自动锁定三维对象中的目标三维对象。当交互界面上显示有至少两个三维对象时,计算机设备可以从至少两个三维对象中随机选择其中的一个作为目标三维对象,或者可以根据当前检测到的触控点所在位置从至少两个三维对象中选择其中一个作为目标三维对象。In a possible implementation manner, when a three-dimensional object is displayed on the interactive interface, the computer device can directly determine the three-dimensional object as the target three-dimensional object, and the computer device can automatically lock the target three-dimensional object in the three-dimensional objects. When at least two three-dimensional objects are displayed on the interactive interface, the computer device may randomly select one of the at least two three-dimensional objects as the target three-dimensional object, or may select one of the at least two three-dimensional objects according to the currently detected position of the touch point. Select one of the objects as the target 3D object.
其中,在至少一个三维对象的数量为n,且n为大于或者等于2的整数的情况下,当触控点的当前数量为2,且2个触控点中的一个触控点处发生连续点击操作,在n个三维对象中切换目标三维对象。Wherein, in the case where the number of at least one three-dimensional object is n, and n is an integer greater than or equal to 2, when the current number of touch points is 2, and a continuous touch occurs at one of the two touch points Click to switch the target 3D object among the n 3D objects.
也就是说,若交互界面中当前存在至少两个三维对象,并且计算机设备检测到当前存在至少两个触控点,根据检测到的两个触控点的位置可以确定至少两个三维对象中的目标三维对象,当计算机设备接收到至少两个触控点中的任意一个的位置处发生的连续点击操作时,切换当前的目标三维对象,即可以将其余的三维对象中的其中一个替换为目标三维对象。That is to say, if there are at least two three-dimensional objects currently in the interactive interface, and the computer device detects that there are at least two touch points, it can be determined according to the positions of the detected two touch points. The target 3D object, when the computer device receives a continuous click operation at any one of the at least two touch points, it switches the current target 3D object, that is, one of the remaining 3D objects can be replaced with the target three-dimensional objects.
示例性的,在交互界面的中心区域可以显示当前的目标三维对象,在交互界面的边缘区域可以显示当前其余的三维对象,并且处于中心区域的目标三维对象所显示的尺寸可以大于处于边缘区域的当前其余的三维对象。当计算机设备检测到触控点的当前数量为2,并且接收到2个触控点中的任意一个触控点的位置处发生连续点击操作,可以将处于边缘区域的三维对象中的其中之一显示在中心区域,并且将之前处于中心区域的三维对象显示在边缘区域,使得当前的目标三维对象进行切换,若当前切换后的目标三维对象仍然需要进行更换,则继续接收在2个触控点中的任意一个触控点的位置处发生连续点击操作,直到中心区域显示的三维对象为最终确定的目标三维对象为止。Exemplarily, the current target 3D object may be displayed in the central area of the interactive interface, the current remaining 3D objects may be displayed in the edge area of the interactive interface, and the displayed size of the target 3D object in the central area may be larger than that in the edge area. The current remaining 3D object. When the computer device detects that the current number of touch points is 2, and receives a continuous click operation at the position of any one of the two touch points, one of the three-dimensional objects in the edge area can be Display in the center area, and display the 3D object previously in the center area in the edge area, so that the current target 3D object can be switched. If the currently switched target 3D object still needs to be replaced, it will continue to receive 2 touch points. A continuous click operation occurs at the position of any one of the touch points, until the three-dimensional object displayed in the central area is the final target three-dimensional object.
另外,当计算机设备检测到触控点的当前数量为2,并且接收到2个触控点中的任意一个触控点的位置处发生连续点击操作,可以优先确定该发生连续点击操作的触控点的方向上是否存在三维对象,若该方向上存在三维对象,则优先将该方向的边缘区域中的三维对象与中心区域中的三维对象进行切换。通过上述便捷操作可以实现交互界面中存在多个三维对象中,快速切换目标三维对象的步骤,大大提高了目标三维对象确定的效率,同时无需额外的触控操作,提高了操作的便捷性。In addition, when the computer device detects that the current number of touch points is 2, and a continuous click operation occurs at the position where any one of the two touch points is received, it can be prioritized to determine the touch for which the continuous click operation occurs. Whether there is a 3D object in the direction of the point, if there is a 3D object in this direction, the 3D object in the edge area of the direction and the 3D object in the center area are preferentially switched. Through the above convenient operations, the steps of quickly switching the target three-dimensional object in the interactive interface can be realized, which greatly improves the efficiency of determining the target three-dimensional object, and at the same time, no additional touch operation is required, and the operation convenience is improved.
在一种可能的实现方式中,当计算机设备检测到触控点的当前数量为初始数量,即两个触控点时,则可以确定当前针对于目标三维对象的旋转轴可以是垂直于屏幕的旋转轴。当计算机设备检测到触控点的当前数量变为一个触控点时,则可以确定当前针对于目标三维对象的旋转轴可以是平行于屏幕的旋转轴。In a possible implementation manner, when the computer device detects that the current number of touch points is the initial number, that is, two touch points, it can be determined that the current rotation axis for the target three-dimensional object may be perpendicular to the screen axis of rotation. When the computer device detects that the current number of touch points becomes one touch point, it may be determined that the current rotation axis for the target three-dimensional object may be a rotation axis parallel to the screen.
其中,当检测到的触控点的当前数量为2时,计算机设备可以确定目标三维对象的旋转轴可以是垂直于屏幕,并且该旋转轴可以经过目标三维对象的质心或者该旋转轴可以经过当前检测到的两个触控点之间连线的中点。当检测到的触控点的当前数量变化为1时,计算机设备可以重新确定当前针对目标三维对象的旋转轴,该重新确定的旋转轴可以是平行于屏幕的旋转轴,并且该旋转轴可以是目标连线的中垂线,也可以是垂直于目标连线并且通过目标三维对象的质心的轴线。其中,目标连线可以是在2个触控点中的一个触控点消失的前一时刻,2个触控点之间的连线。Wherein, when the current number of detected touch points is 2, the computer device may determine that the rotation axis of the target three-dimensional object may be perpendicular to the screen, and the rotation axis may pass through the center of mass of the target three-dimensional object or the rotation axis may pass through the current The midpoint of the line between the two detected touch points. When the current number of detected touch points changes to 1, the computer device may re-determine the current rotation axis for the target three-dimensional object, the re-determined rotation axis may be a rotation axis parallel to the screen, and the rotation axis may be The mid-perpendicular line of the target connection line may also be an axis perpendicular to the target connection line and passing through the centroid of the target 3D object. The target connection line may be a connection line between the two touch points at the moment before one of the two touch points disappears.
步骤304,当触控点发生移动时,控制目标三维对象按照旋转轴进行旋转。
在本申请实施例中,当触控点发生移动时,计算机设备可以控制目标三维对象按照上述确定的旋转轴进行旋转。In this embodiment of the present application, when the touch point moves, the computer device may control the target three-dimensional object to rotate according to the rotation axis determined above.
其中,按照计算机设备检测到的触控点的当前数量,确定当前针对于目标三维对象的旋转轴,当触控点发生移动的时候,可以控制目标三维对象按照确定的旋转轴进行旋转。The current rotation axis for the target 3D object is determined according to the current number of touch points detected by the computer device, and when the touch point moves, the target 3D object can be controlled to rotate according to the determined rotation axis.
在一种可能的实现方式中,当触控点发生移动,且触控点的当前数量为2时,控制目标三维对象按照垂直于屏幕的旋转轴进行旋转。In a possible implementation manner, when the touch point moves and the current number of touch points is 2, the control target three-dimensional object is rotated according to a rotation axis perpendicular to the screen.
也就是说,当触发点的当前数量为2时,可以确定旋转轴为垂直于屏幕的轴线,当两个触控点中的一个或者两个发生移动时,计算机设备可以控制目标三维对象按照确定的旋转轴进行旋转。That is to say, when the current number of trigger points is 2, it can be determined that the rotation axis is perpendicular to the axis of the screen, and when one or both of the two touch points move, the computer device can control the target 3D object according to the determined rotates the axis of rotation.
其中,目标三维对象的旋转角度与2个触控点的连线的旋转角度可以成正相关。Wherein, the rotation angle of the target three-dimensional object may be positively correlated with the rotation angle of the line connecting the two touch points.
也就是说,目标三维对象的旋转角度可以是2个触控点的连线的旋转角度,或者,目标三维对象的旋转角度可以是2个触控点的连线的旋转角度与固定的比例之间的乘积,即计算机设备可以按照固定的比例对2个触控点的连线的旋转角度进行处理,得到目标三维对象的旋转角度。That is to say, the rotation angle of the target 3D object may be the rotation angle of the line connecting the two touch points, or the rotation angle of the target 3D object may be the rotation angle of the line connecting the two touch points and a fixed ratio. That is, the computer device can process the rotation angle of the line connecting the two touch points according to a fixed ratio to obtain the rotation angle of the target three-dimensional object.
或者,上述的比例可以是动态变化的比例,该比例的数值大小可以与2个触控点的连线进行旋转的旋转速度相关,即2个触控点的连线进行旋转的旋转速度较大时,此时对应的比例的数值较大,当2个触控点的连线进行旋转的旋转速度较小时,此时对应的比例的数值较小,由于确定目标三维对象的旋转角度结合了触控点的连线的旋转速度的因素进行考虑,可以方便用户通过降低旋转速度的方式实现较为精细的目标三维对象的旋转操作。Alternatively, the above-mentioned ratio may be a dynamically changing ratio, and the numerical value of the ratio may be related to the rotation speed of the connecting line of the two touch points for rotation, that is, the rotation speed of the line connecting the two touch points is higher. , the value of the corresponding ratio is relatively large at this time, and when the rotation speed of the connecting line between the two touch points is relatively small, the value of the corresponding ratio is relatively small at this time, because determining the rotation angle of the target 3D object combines the touch Considering the factor of the rotation speed of the connection line of the control points, it is convenient for the user to realize the rotation operation of the target three-dimensional object in a relatively fine manner by reducing the rotation speed.
比如,图5是本申请实施例涉及的一种旋转角度确定示意图。如图5所示,A、B分别是当前的两个触控点,A’是A移动后的触控点,B’是B移动后的触控点,在第一种情况51a下,旋转角度可以是锐角AOA’的角度;在第二种情况51b下,旋转角度可以是钝角AOA’的角度;在第三种情况51c下,旋转角度可以是360度与锐角AOA’的角度之差;在第四种情况51d下,旋转角度可以是360度与钝角AOA’的角度之差。For example, FIG. 5 is a schematic diagram of determining a rotation angle involved in an embodiment of the present application. As shown in Figure 5, A and B are the current two touch points respectively, A' is the touch point after A's movement, and B' is the touch point after B's movement. In the
示例性的,图6是本申请实施例涉及的一种两指操作流程图。如图6所示,若需要将目标三维对象绕垂直于屏幕的z轴旋转90度,则建议用户进行操控的手势可以是围绕垂直于屏幕的轴进行旋转,用户将两根手指放于屏幕上,形成屏幕上的触控点(S61),此时可以确定旋转轴穿过两根手指的触控点之间连线的中心,并且该旋转轴也垂直于两根手指之间的连线(S62),通过将两根手指顺时针或逆时针进行旋转移动(S63),可以改变目标三维对象围绕z轴的旋转角度,当旋转角度达到预想的90度时,即旋转角度足够后,可以停止两根手指的旋转移动,并且松开两根手指与屏幕之间的接触(S64),完成本次目标三维对象的旋转。图7是本申请实施例涉及的一种两指操作屏幕显示示意图。如图7所示,在第一个交互界面71中,确定针对于目标三维对象的两根手指的触控点,在第二个交互界面72中,通过控制两根手指围绕z轴进行顺时针旋转移动,可以控制目标三维对象围绕z轴进行顺时针旋转,在第三个交互界面73中,当目标三维对象旋转到90度时,可以松开两根手指,结束两指控制目标三维对象进行旋转的操作。Exemplarily, FIG. 6 is a flowchart of a two-finger operation involved in an embodiment of the present application. As shown in Figure 6, if the target 3D object needs to be rotated 90 degrees around the z-axis perpendicular to the screen, it is recommended that the user perform the manipulation gesture to rotate around the axis perpendicular to the screen, and the user places two fingers on the screen. , forming a touch point on the screen (S61), at this time it can be determined that the rotation axis passes through the center of the line between the touch points of the two fingers, and the rotation axis is also perpendicular to the line between the two fingers ( S62), by rotating the two fingers clockwise or counterclockwise (S63), the rotation angle of the target three-dimensional object around the z-axis can be changed, and when the rotation angle reaches the expected 90 degrees, that is, after the rotation angle is sufficient, it can stop The rotation of the two fingers is performed, and the contact between the two fingers and the screen is released (S64), and the rotation of the target three-dimensional object is completed this time. FIG. 7 is a schematic diagram of displaying a two-finger operation screen according to an embodiment of the present application. As shown in FIG. 7 , in the first interactive interface 71, the touch points of the two fingers for the target three-dimensional object are determined, and in the second interactive interface 72, the two fingers are controlled to move clockwise around the z-axis. Rotate and move, you can control the target 3D object to rotate clockwise around the z-axis. In the third
在另一种可能的实现方式中,当触控点发生移动,且触控点的当前数量为1时,控制目标三维对象按照平行于屏幕,且垂直于目标连线的旋转轴进行旋转。其中,目标连线可以是在2个触控点中的一个触控点消失的前一时刻,2个触控点之间的连线。目标三维对象的旋转角度可以与当前屏幕中的触控点的移动距离成正相关。In another possible implementation manner, when the touch point moves and the current number of touch points is 1, the control target three-dimensional object rotates according to the rotation axis parallel to the screen and perpendicular to the target connection line. The target connection line may be a connection line between the two touch points at the moment before one of the two touch points disappears. The rotation angle of the target three-dimensional object may be positively correlated with the moving distance of the touch point in the current screen.
其中,目标三维对象的旋转角度可以是当前的触控点在向消失的触控点方向移动的距离与目标连线的距离之间的比值和180度的乘积。或者,目标三维对象的旋转角度也可以是当前的触控点在向消失的触控点方向移动的距离与目标连线的距离之间的比值和360度或者270度的乘积。The rotation angle of the target three-dimensional object may be the product of the ratio between the distance of the current touch point moving in the direction of the disappearing touch point and the distance of the target connection line and 180 degrees. Alternatively, the rotation angle of the target three-dimensional object may also be the product of 360 degrees or 270 degrees multiplied by the ratio between the distance of the current touch point moving in the direction of the disappearing touch point and the distance of the target connection line.
在一种可能的情况下,若当前的触控点向消失的触控点方向移动,并且超出目标连线的范围时,可以确定旋转角度为0度;或者,若当前的触控点向消失的触控点的反方向移动,并且超出原本的当前触控点的位置,可以确定旋转角度为0度。In a possible situation, if the current touch point moves in the direction of the disappearing touch point and exceeds the range of the target connection, the rotation angle can be determined to be 0 degrees; or, if the current touch point moves in the direction of the disappearing touch point If the touch point moves in the opposite direction and exceeds the original position of the current touch point, it can be determined that the rotation angle is 0 degrees.
比如,图8是本申请实施例中涉及的一种旋转角度确定示意图。如图8所示,其中,在第一种情况81a时,若A点为消失的触控点,B点为当前的触控点,B’为移动后的当前的触控点,目标三维对象的旋转角度的计算公式可以如下所示,For example, FIG. 8 is a schematic diagram of determining a rotation angle involved in an embodiment of the present application. As shown in FIG. 8, in the
在第二种情况81b时,由于B’向A的方向移动后,超出BA的范围,所以此时的旋转角度为0度。在第三种情况81c时,由于B’向B移动并且超出范围AB,则此时的旋转角度为0度。In the
示例性的,图9是本申请实施例中涉及的一种单指操作流程图。如图9所示,若需要将目标三维对象绕平行于屏幕的旋转轴旋转一定的角度,则建议用户进行操控的手势可以是围绕平行于屏幕的轴进行旋转,用户将两根手指放于屏幕上,形成屏幕上的触控点(S91),此时可以确定旋转轴穿过两根手指的触控点之间连线的中心,并且该旋转轴也垂直于两根手指之间的连线(S92),然后将其中一根手指松开,即离开屏幕,并且将仍然接触屏幕的手指朝着另一根手指的方向进行移动(S93),可以改变目标三维对象围绕平行于屏幕的旋转轴进行旋转的旋转角度,当旋转角度达到预想角度时,即旋转角度足够后,可以停止手指的移动,并且松开手指与屏幕之间的接触(S94),完成本次目标三维对象的旋转。图10是本申请实施例涉及的一种单指操作屏幕显示示意图。如图10所示,在第一个交互界面1001中,确定针对于目标三维对象的两根手指的触控点,在第二个交互界面1002中,松开其中一根手指,使其离开屏幕,将另一根手指向上方手指方向进行移动,确定此时的旋转轴为经过松开手指前,两根手指连线的中垂线,并且通过控制单个手指向上移动的距离控制目标三维对象的旋转角度,在第三个交互界面1003中,当目标三维对象旋转到90度时,可以松开该手指,结束单指控制目标三维对象进行旋转的操作。Exemplarily, FIG. 9 is a flowchart of a single-finger operation involved in the embodiment of the present application. As shown in Figure 9, if the target 3D object needs to be rotated by a certain angle around the axis of rotation parallel to the screen, it is recommended that the user perform the manipulation gesture to rotate around the axis parallel to the screen, and the user places two fingers on the screen. , forming touch points on the screen (S91), at this time, it can be determined that the rotation axis passes through the center of the line between the touch points of the two fingers, and the rotation axis is also perpendicular to the line between the two fingers (S92), then release one of the fingers, that is, leave the screen, and move the finger still in contact with the screen toward the direction of the other finger (S93), the target three-dimensional object can be changed around the rotation axis parallel to the screen The rotation angle of the rotation, when the rotation angle reaches the expected angle, that is, after the rotation angle is sufficient, the movement of the finger can be stopped, and the contact between the finger and the screen can be released (S94) to complete the rotation of the target three-dimensional object. FIG. 10 is a schematic diagram of displaying a single-finger operation screen according to an embodiment of the present application. As shown in FIG. 10 , in the first
在一种可能的实现方式中,由于触控点的初始数量为2个,则首先计算机设备进行双指操作,通过双指操作控制目标三维对象按照垂直于屏幕的旋转轴进行旋转,然后当该方向上的旋转角度达到需求时,通过单指操作控制目标三维对象按照平行于屏幕的旋转轴进行旋转,直到该方向上的旋转角度达到需求,若此时仍然需要继续调整按照垂直于屏幕的旋转轴进行旋转的旋转角度,则可以再次变为双指操作对目标三维对象的旋转角度进行控制。In a possible implementation manner, since the initial number of touch points is 2, first the computer device performs a two-finger operation, and controls the target three-dimensional object to rotate according to the rotation axis perpendicular to the screen through the two-finger operation, and then when the When the rotation angle in the direction meets the requirements, control the target 3D object to rotate according to the rotation axis parallel to the screen through a single-finger operation until the rotation angle in the direction meets the requirements. If you still need to continue to adjust the rotation perpendicular to the screen If the rotation angle of the axis is rotated, it can be turned into a two-finger operation again to control the rotation angle of the target 3D object.
示例性的,图11是本申请实施例涉及的一种目标三维对象旋转控制流程图。如图11所示,首先计算机设备可以在屏幕上显示虚拟世界,并且在虚拟世界中显示三维对象,用户可以查看该三维对象(S1101),当选中三维对象中一个作为目标三维对象时,可以实现对该三维对象的聚焦操作(S1102),判断用户是否需要以另外的方向查看该目标三维对象(S1103),若用户需要以另外的方向查看该目标三维对象,则通过建议用户使用围绕平行于屏幕的轴进行旋转的手势,先进行双指操作(S1104),然后通过建议用户使用围绕垂直于屏幕的轴进行旋转的手势,进行单指操作(S1105),当调整目标三维对象的观察方向符合需求时,可以结束该操作。通过上述的双指操作与单指操作进行结合操作,可以实现将目标三维对象旋转到任意方向。Exemplarily, FIG. 11 is a flow chart of rotation control of a target three-dimensional object involved in an embodiment of the present application. As shown in FIG. 11 , first, the computer device can display the virtual world on the screen, and display the three-dimensional object in the virtual world, and the user can view the three-dimensional object (S1101). When one of the three-dimensional objects is selected as the target three-dimensional object, it can realize The focusing operation on the three-dimensional object (S1102) determines whether the user needs to view the target three-dimensional object in another direction (S1103). The gesture of rotating the axis of the screen, first perform the two-finger operation (S1104), and then recommend the user to use the gesture of rotating around the axis perpendicular to the screen, and then perform the single-finger operation (S1105). When adjusting the viewing direction of the target three-dimensional object meets the requirements , you can end the operation. By combining the above two-finger operation and single-finger operation, the target three-dimensional object can be rotated to any direction.
综上所述,本申请实施例所示的方案,用户在触摸屏中通过滑动触摸的方式对目标三维对象进行旋转时,可以通过单点/两点触控的方式选择旋转轴,并通过触摸滑动情况控制旋转角度,从而实现了通过两个手指的触控同时选择旋转轴和控制旋转角度的方式,简化了用户通过触控屏旋转三维对象时的操作步骤,缩短了用户的操作时间,提高了对触摸屏中的三维对象进行旋转时的人机交互效率。To sum up, in the solution shown in the embodiments of the present application, when the user rotates the target three-dimensional object by sliding touch on the touch screen, the user can select the rotation axis by single-point/two-point touch, and touch and slide The rotation angle is controlled by the situation, so that the method of simultaneously selecting the rotation axis and controlling the rotation angle through the touch of two fingers is realized, which simplifies the operation steps when the user rotates the three-dimensional object through the touch screen, shortens the user's operation time, and improves the Human-computer interaction efficiency when rotating 3D objects in a touchscreen.
请参考图12,其示出了本申请一个示例性实施例提供的三维对象旋转装置的结构示意图。该三维对象旋转装置可以用于执行如上述图2或图3所示的实施例中,由计算机设备执行的步骤;该装置包括:Please refer to FIG. 12 , which shows a schematic structural diagram of a three-dimensional object rotation apparatus provided by an exemplary embodiment of the present application. The three-dimensional object rotation apparatus can be used to perform the steps performed by the computer equipment in the embodiment shown in the above-mentioned FIG. 2 or FIG. 3; the apparatus includes:
界面显示模块1210,用于显示交互界面,所述交互界面中显示有至少一个三维对象;an
触控点检测模块1220,用于检测所述交互界面中的触控点,所述触控点的初始数量为2,且所述触控点的当前数量为1或2;a touch
旋转模块1230,用于当所述交互界面中的所述触控点发生移动时,对所述至少一个所述三维对象中的目标三维对象进行旋转;所述目标三维对象的旋转角度与所述触控点的移动情况相关,且所述目标三维对象的旋转轴与所述触控点的当前数量相关。The
在一种可能的实现方式中,所述旋转模块1230,包括:In a possible implementation manner, the
第一旋转子模块,用于当所述触控点发生移动,且所述触控点的当前数量为2时,控制所述目标三维对象按照垂直于屏幕的旋转轴进行旋转。The first rotation sub-module is configured to control the target three-dimensional object to rotate according to a rotation axis perpendicular to the screen when the touch point moves and the current number of the touch points is 2.
在一种可能的实现方式中,所述目标三维对象的旋转角度与2个所述触控点的连线的旋转角度成正相关。In a possible implementation manner, the rotation angle of the target three-dimensional object is positively correlated with the rotation angle of the line connecting the two touch points.
在一种可能的实现方式中,所述旋转模块1230,包括:In a possible implementation manner, the
第二旋转子模块,用于当所述触控点发生移动,且所述触控点的当前数量为1时,控制所述目标三维对象按照平行于屏幕,且垂直于目标连线的旋转轴进行旋转;The second rotation sub-module is used to control the target three-dimensional object to follow the rotation axis parallel to the screen and perpendicular to the target connection line when the touch point moves and the current number of the touch point is 1 to rotate;
其中,所述目标连线是在2个所述触控点中的一个所述触控点消失的前一时刻,2个所述触控点之间的连线。The target connection line is a connection line between the two touch points at the moment before one of the two touch points disappears.
在一种可能的实现方式中,所述目标三维对象的旋转角度与当前屏幕中的所述触控点的移动距离成正相关。In a possible implementation manner, the rotation angle of the target three-dimensional object is positively correlated with the moving distance of the touch point on the current screen.
在一种可能的实现方式中,至少一个所述三维对象的数量为n,且n为大于或者等于2的整数;In a possible implementation manner, the number of at least one of the three-dimensional objects is n, and n is an integer greater than or equal to 2;
所述装置还包括:The device also includes:
目标确定模块,用于当所述交互界面中的所述触控点发生移动时,对所述至少一个所述三维对象中的目标三维对象进行旋转之前,当所述触控点的当前数量为2,且2个所述触控点中的一个触控点处发生连续点击操作,在n个所述三位对象中切换所述目标三维对象。A target determination module, configured to, when the touch point in the interactive interface moves, before rotating the target three-dimensional object in the at least one of the three-dimensional objects, when the current number of the touch points is 2, and a continuous click operation occurs at one of the two touch points, and the target three-dimensional object is switched among the n three-dimensional objects.
综上所述,本申请实施例所示的方案,用户在触摸屏中通过滑动触摸的方式对目标三维对象进行旋转时,可以通过单点/两点触控的方式选择旋转轴,并通过触摸滑动情况控制旋转角度,从而实现了通过两个手指的触控同时选择旋转轴和控制旋转角度的方式,简化了用户通过触控屏旋转三维对象时的操作步骤,缩短了用户的操作时间,提高了对触摸屏中的三维对象进行旋转时的人机交互效率。To sum up, in the solution shown in the embodiments of the present application, when the user rotates the target three-dimensional object by sliding touch on the touch screen, the user can select the rotation axis by single-point/two-point touch, and touch and slide The rotation angle is controlled by the situation, so that the method of simultaneously selecting the rotation axis and controlling the rotation angle through the touch of two fingers is realized, which simplifies the operation steps when the user rotates the three-dimensional object through the touch screen, shortens the user's operation time, and improves the Human-computer interaction efficiency when rotating 3D objects in a touchscreen.
需要说明的一点是,上述实施例提供的装置在实现其功能时,仅以上述各个功能模块的划分进行举例说明,实际应用中,可以根据实际需要而将上述功能分配由不同的功能模块完成,即将设备的内容结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。It should be noted that, when the device provided in the above embodiment realizes its functions, only the division of the above functional modules is used as an example for illustration. In practical applications, the above functions can be allocated to different functional modules according to actual needs. That is, the content structure of the device is divided into different functional modules to complete all or part of the functions described above.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above-mentioned embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be described in detail here.
图13示出了本申请一个示例性实施例提供的计算机设备的结构方框图。该计算机设备可以是智能手机、平板电脑、电子书、便携式个人计算机、智能穿戴设备等电子设备。本申请中的终端可以包括一个或多个如下部件:处理器1310、存储器1320和屏幕1330。FIG. 13 shows a structural block diagram of a computer device provided by an exemplary embodiment of the present application. The computer device may be an electronic device such as a smart phone, a tablet computer, an electronic book, a portable personal computer, and a smart wearable device. The terminal in this application may include one or more of the following components: a
处理器1310可以包括一个或者多个处理核心。处理器1310利用各种接口和线路连接整个终端内的各个部分,通过运行或执行存储在存储器1320内的指令、程序、代码集或指令集,以及调用存储在存储器1320内的数据,执行终端的各种功能和处理数据。可选地,处理器1310可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable LogicArray,PLA)中的至少一种硬件形式来实现。处理器1310可集成中央处理器(CentralProcessing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责屏幕1330所需要显示的内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器1310中,单独通过一块通信芯片进行实现。
存储器1320可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory,ROM)。可选地,该存储器1320包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。存储器1320可用于存储指令、程序、代码、代码集或指令集。存储器1320可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现上述各个方法实施例的指令等,该操作系统可以是安卓(Android)系统(包括基于Android系统深度开发的系统)、苹果公司开发的IOS系统(包括基于IOS系统深度开发的系统)或其它系统。存储数据区还可以存储终端在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The
屏幕1330可以为电容式触摸显示屏,该电容式触摸显示屏用于接收用户使用手指、触摸笔等任何适合的物体在其上或附近的触摸操作,以及显示各个应用程序的用户界面。触摸显示屏通常设置在终端的前面板。触摸显示屏可被设计成为全面屏、曲面屏或异型屏。触摸显示屏还可被设计成为全面屏与曲面屏的结合,异型屏与曲面屏的结合,本申请实施例对此不加以限定。The
除此之外,本领域技术人员可以理解,上述附图所示出的终端的结构并不构成对终端的限定,终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。比如,终端中还包括射频电路、拍摄组件、传感器、音频电路、无线保真(WirelessFidelity,WiFi)组件、电源、蓝牙组件等部件,在此不再赘述。In addition, those skilled in the art can understand that the structure of the terminal shown in the above drawings does not constitute a limitation on the terminal, and the terminal may include more or less components than those shown in the drawings, or combine certain components, Or a different component arrangement. For example, the terminal further includes components such as a radio frequency circuit, a photographing component, a sensor, an audio circuit, a wireless fidelity (Wireless Fidelity, WiFi) component, a power supply, and a Bluetooth component, which will not be repeated here.
本申请实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有至少一条计算机指令,该至少一条计算机指令由处理器加载并执行以实现如上各个实施例所述的三维对象旋转方法。Embodiments of the present application further provide a computer-readable storage medium, where at least one computer instruction is stored in the computer-readable storage medium, and the at least one computer instruction is loaded and executed by a processor to implement the three-dimensional system described in the above embodiments. Object rotation method.
根据本申请的一个方面,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。终端的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该终端执行上述方面的各种可选实现方式中提供的三维对象旋转方法。According to one aspect of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the terminal reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the terminal executes the three-dimensional object rotation method provided in various optional implementation manners of the above aspects.
本申请实施例还提供了一种计算机设备,该计算机设备包括处理器、存储器和收发器,存储器中存储有计算机程序,处理器执行该计算机程序,以使得计算机设备实现如上述各个实施例所述的三维对象旋转方法。An embodiment of the present application further provides a computer device, the computer device includes a processor, a memory, and a transceiver, a computer program is stored in the memory, and the processor executes the computer program, so that the computer device can achieve the above-mentioned various embodiments. 3D object rotation method.
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请实施例所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读存储介质中或者作为计算机可读存储介质上的一个或多个指令或代码进行传输。计算机可读存储介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。Those skilled in the art should realize that, in one or more of the above examples, the functions described in the embodiments of the present application may be implemented by hardware, software, firmware, or any combination thereof. When implemented in software, the functions may be stored in or transmitted over as one or more instructions or code on a computer-readable storage medium. Computer-readable storage media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage medium can be any available medium that can be accessed by a general purpose or special purpose computer.
以上所述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are only optional embodiments of the present application, and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the protection of the present application. within the range.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210575895.6A CN114780009A (en) | 2022-05-24 | 2022-05-24 | Three-dimensional object rotation method, device, equipment, storage medium and program product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210575895.6A CN114780009A (en) | 2022-05-24 | 2022-05-24 | Three-dimensional object rotation method, device, equipment, storage medium and program product |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114780009A true CN114780009A (en) | 2022-07-22 |
Family
ID=82408243
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210575895.6A Pending CN114780009A (en) | 2022-05-24 | 2022-05-24 | Three-dimensional object rotation method, device, equipment, storage medium and program product |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114780009A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115904158A (en) * | 2022-11-04 | 2023-04-04 | 中科星图数字地球合肥有限公司 | Gesture control method and device of three-dimensional model and related equipment |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102736771A (en) * | 2011-03-31 | 2012-10-17 | 比亚迪股份有限公司 | Method and device for identifying multi-point rotation motion |
CN103257811A (en) * | 2012-02-20 | 2013-08-21 | 腾讯科技(深圳)有限公司 | Picture display system and method based on touch screen |
US20140282073A1 (en) * | 2013-03-15 | 2014-09-18 | Micro Industries Corporation | Interactive display device |
US20160261768A1 (en) * | 2015-03-06 | 2016-09-08 | Kyocera Document Solutions Inc. | Display input device and image forming apparatus including same, and method for controlling display input device |
KR20190036061A (en) * | 2017-09-27 | 2019-04-04 | 삼성중공업 주식회사 | Touch type rotation control device and method of 3D object |
US20200319776A1 (en) * | 2019-04-02 | 2020-10-08 | Adobe Inc. | Visual Manipulation of a Digital Object |
CN113138670A (en) * | 2021-05-07 | 2021-07-20 | 郑州捷安高科股份有限公司 | Touch screen interaction gesture control method and device, touch screen and storage medium |
-
2022
- 2022-05-24 CN CN202210575895.6A patent/CN114780009A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102736771A (en) * | 2011-03-31 | 2012-10-17 | 比亚迪股份有限公司 | Method and device for identifying multi-point rotation motion |
CN103257811A (en) * | 2012-02-20 | 2013-08-21 | 腾讯科技(深圳)有限公司 | Picture display system and method based on touch screen |
US20140282073A1 (en) * | 2013-03-15 | 2014-09-18 | Micro Industries Corporation | Interactive display device |
US20160261768A1 (en) * | 2015-03-06 | 2016-09-08 | Kyocera Document Solutions Inc. | Display input device and image forming apparatus including same, and method for controlling display input device |
KR20190036061A (en) * | 2017-09-27 | 2019-04-04 | 삼성중공업 주식회사 | Touch type rotation control device and method of 3D object |
US20200319776A1 (en) * | 2019-04-02 | 2020-10-08 | Adobe Inc. | Visual Manipulation of a Digital Object |
CN113138670A (en) * | 2021-05-07 | 2021-07-20 | 郑州捷安高科股份有限公司 | Touch screen interaction gesture control method and device, touch screen and storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115904158A (en) * | 2022-11-04 | 2023-04-04 | 中科星图数字地球合肥有限公司 | Gesture control method and device of three-dimensional model and related equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11307745B2 (en) | Operating method for multiple windows and electronic device supporting the same | |
US11853523B2 (en) | Display device and method of indicating an active region in a multi-window display | |
KR101384857B1 (en) | User interface methods providing continuous zoom functionality | |
US8884907B2 (en) | Multi-touch manipulation of application objects | |
US9804761B2 (en) | Gesture-based touch screen magnification | |
KR102213212B1 (en) | Controlling Method For Multi-Window And Electronic Device supporting the same | |
EP2993566B9 (en) | Application interface presentation method and apparatus, and electronic device | |
US9678574B2 (en) | Computing system utilizing three-dimensional manipulation command gestures | |
JP6139397B2 (en) | Mouse function providing method and terminal embodying the same | |
US20120266079A1 (en) | Usability of cross-device user interfaces | |
KR102304178B1 (en) | User terminal device and method for displaying thereof | |
JP2011081440A (en) | Information processing apparatus, information processing method, and information processing program | |
KR20150040246A (en) | Gestures for multiple window operation | |
EP2778880B1 (en) | Method for controlling display function and an electronic device thereof | |
CN107704157B (en) | A multi-screen interface operation method, device and storage medium | |
WO2021203815A1 (en) | Page operation method and apparatus, and terminal and storage medium | |
EP2998838B1 (en) | Display apparatus and method for controlling the same | |
JP2023552659A (en) | Interface display state adjustment method, apparatus, device, storage medium | |
CN109117241B (en) | A display direction control method, system and mobile terminal | |
KR20140082434A (en) | Method and apparatus for displaying screen in electronic device | |
CN114780009A (en) | Three-dimensional object rotation method, device, equipment, storage medium and program product | |
CN110888581A (en) | Element transfer method, device, equipment and storage medium | |
CN114020199B (en) | Single-hand control method and device and mobile terminal | |
US20140085340A1 (en) | Method and electronic device for manipulating scale or rotation of graphic on display | |
WO2023044544A1 (en) | Display panel |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20220722 |
|
RJ01 | Rejection of invention patent application after publication |