WO2016141594A1 - Virtual object operation method and device - Google Patents

Virtual object operation method and device Download PDF

Info

Publication number
WO2016141594A1
WO2016141594A1 PCT/CN2015/074121 CN2015074121W WO2016141594A1 WO 2016141594 A1 WO2016141594 A1 WO 2016141594A1 CN 2015074121 W CN2015074121 W CN 2015074121W WO 2016141594 A1 WO2016141594 A1 WO 2016141594A1
Authority
WO
WIPO (PCT)
Prior art keywords
mapping
virtual object
touch surface
touch
screen
Prior art date
Application number
PCT/CN2015/074121
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 华为技术有限公司
Priority to PCT/CN2015/074121 priority Critical patent/WO2016141594A1/en
Priority to CN201580023366.3A priority patent/CN106462264B/en
Publication of WO2016141594A1 publication Critical patent/WO2016141594A1/en

Links

Images

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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor

Definitions

  • the present invention relates to the field of computer technologies, and in particular, to a virtual object operating method and apparatus.
  • a virtual object is a three-dimensional object displayed in an electronic device, and may be a three-dimensional cube, a car, a character, or the like.
  • the user can control the virtual object by performing related operations on the screen.
  • the virtual object is a three-dimensional character and the front side of the character is displayed on the screen.
  • the character needs to be rotated first to display the back of the character on the screen and then hit the back. That is, the user needs to perform two operations of rotating and striking according to the preset rule to achieve a hitting operation on a surface of the virtual object that is not displayed on the screen.
  • the preset rule of the rotating operation is from left to right.
  • the sliding operation, the preset rule of the hitting operation is a click operation, and the user needs to perform two operations of sliding and clicking to implement the hitting on the back of the character.
  • the virtual object is a three-dimensional object
  • the screen can only display one surface in the three-dimensional object, it is usually required to perform multiple operations to control the surface of the three-dimensional object that is not displayed on the screen through the screen, and the operation efficiency is low.
  • the embodiment of the present invention provides a virtual object operation method and apparatus.
  • the technical solution is as follows:
  • a virtual object operating method for use in an electronic device including a screen and a touch surface, the touch surface being disposed on an outer surface of the electronic device other than the screen, Methods include:
  • mapping the touch surface onto the virtual object to obtain a mapping surface, the virtual object being a three-dimensional object displayed in the screen, the mapping surface corresponding to the virtual object not being displayed in the screen At least one surface;
  • the display state of the virtual object is changed according to the operation.
  • mapping the touch surface to a virtual object to obtain a mapping surface includes:
  • the stereo model being a model corresponding to an outer surface geometric model of the electronic device
  • At least one surface of the three-dimensional model corresponding to the touch surface is determined as the mapping surface.
  • the changing the display state of the virtual object according to the operation includes:
  • mapping the contact to the mapping surface according to a proportional relationship between the area of the touch surface and the area of the mapping surface to obtain a mapping point
  • mapping the motion trajectory to the mapping surface according to a proportional relationship between the area of the touch surface and the area of the mapping surface to obtain a mapping trajectory
  • the proportional relationship between the area of the touch surface and the area of the mapping surface, The contact is shot onto the mapping surface to obtain a mapping point including:
  • mapping the contact coordinates onto the mapping surface according to a proportional relationship between the area of the touch surface and the area of the mapping surface to obtain mapping point coordinates
  • a point corresponding to the coordinates of the map point is determined as the map point.
  • the controlling the virtual according to the mapping point changes with the mapping trajectory, including:
  • mapping trajectory When the mapping trajectory is used to indicate a panning operation, determining a moving direction and a distance indicated by the mapping trajectory, controlling the virtual object to follow the mapping point, and moving the distance according to the moving direction;
  • the operation has two contacts on the touch surface, and the two of the contacts rotate in opposite directions at any time.
  • the changing the display state of the virtual object according to the operation includes:
  • the display state of the virtual object is changed according to the display instruction acting on the mapping surface.
  • a virtual object operating device for use in an electronic device including a screen and a touch surface, the touch surface being disposed on an outer surface of the electronic device other than the screen,
  • the device includes:
  • An operation obtaining module configured to acquire an operation triggered on one of the touch surfaces
  • a surface mapping module configured to map the touch surface to the virtual object, to obtain a mapping surface, where the virtual object is a three-dimensional object displayed in the screen, and the mapping surface corresponds to the virtual object not in the virtual object At least one surface displayed in the screen;
  • An operation mapping module configured to map the operation acquired by the operation obtaining module to an operation triggered on the mapping surface obtained by the surface mapping module;
  • a state changing module configured to change a display state of the virtual object according to the operation of the operation mapping module mapping.
  • the operation mapping module is specifically configured to:
  • the stereo model being a model corresponding to an outer surface geometric model of the electronic device
  • At least one surface of the three-dimensional model corresponding to the touch surface is determined as the mapping surface.
  • the state changing module is specifically configured to:
  • mapping the contact to the mapping surface according to a proportional relationship between the area of the touch surface and the area of the mapping surface to obtain a mapping point
  • mapping the motion trajectory to the mapping surface according to a proportional relationship between the area of the touch surface and the area of the mapping surface to obtain a mapping trajectory
  • the state changing module is specifically configured to:
  • mapping the contact coordinates onto the mapping surface according to a proportional relationship between the area of the touch surface and the area of the mapping surface to obtain mapping point coordinates
  • a point corresponding to the coordinates of the map point is determined as the map point.
  • the state changing module is specifically configured to:
  • mapping trajectory When the mapping trajectory is used to indicate a panning operation, determining a moving direction and a distance indicated by the mapping trajectory, controlling the virtual object to follow the mapping point, and moving the distance according to the moving direction;
  • mapping trajectory When the mapping trajectory is used to indicate a rotation operation, determining a rotation direction and an angle of the mapping trajectory, controlling the virtual object to follow the mapping point, and rotating the angle according to the rotation direction.
  • the operation has two contacts on the touch surface, and the two of the contacts rotate in opposite directions at any time.
  • the state changing module is further configured to:
  • the display state of the virtual object is changed according to the display instruction acting on the mapping surface.
  • a virtual object operating device for use in an electronic device including a screen and a touch surface, the touch surface being disposed on an outer surface of the electronic device other than the screen,
  • the device includes: a bus, and a processor, a memory, a transmitter, and a receiver connected to the bus Device.
  • the memory is for storing a plurality of instructions, the instructions being configured to be executed by the processor;
  • the receiver is configured to acquire an operation triggered on one of the touch surfaces
  • the processor is configured to map the touch surface to a virtual object to obtain a mapping surface, where the virtual object is a three-dimensional object displayed in the screen, and the mapping surface corresponds to the virtual object At least one surface displayed in the screen;
  • the processor configured to map the operation received by the receiver to an operation triggered on the mapping surface
  • the processor is configured to change a display state of the virtual object according to the operation.
  • the processor is specifically configured to:
  • the stereo model being a model corresponding to an outer surface geometric model of the electronic device
  • At least one surface of the three-dimensional model corresponding to the touch surface is determined as the mapping surface.
  • the processor is specifically configured to:
  • mapping the contact to the mapping surface according to a proportional relationship between the area of the touch surface and the area of the mapping surface to obtain a mapping point
  • mapping the motion trajectory to the mapping surface according to a proportional relationship between the area of the touch surface and the area of the mapping surface to obtain a mapping trajectory
  • the processor is specifically configured to:
  • mapping the contact coordinates onto the mapping surface according to a proportional relationship between the area of the touch surface and the area of the mapping surface to obtain mapping point coordinates
  • a point corresponding to the coordinates of the map point is determined as the map point.
  • the processor is specifically configured to:
  • mapping trajectory When the mapping trajectory is used to indicate a panning operation, determining a moving direction and a distance indicated by the mapping trajectory, controlling the virtual object to follow the mapping point, and moving the distance according to the moving direction;
  • mapping trajectory When the mapping trajectory is used to indicate a rotation operation, determining a rotation direction and an angle of the mapping trajectory, controlling the virtual object to follow the mapping point, and rotating the angle according to the rotation direction.
  • the operation has two contacts on the touch surface, and the two of the contacts rotate in opposite directions at any time.
  • the processor is specifically configured to:
  • the display state of the virtual object is changed according to the display instruction acting on the mapping surface.
  • the touch surface is disposed on an outer surface of the electronic device other than the screen; mapping the touch surface to the virtual object to obtain a mapping surface, and the virtual object is displayed on the screen a three-dimensional object, the mapping surface corresponding to at least one surface of the virtual object not displayed on the screen; mapping the operation to an operation triggered on the mapping surface; changing the display state of the virtual object according to the operation, according to characteristics of the electronic device being a three-dimensional object Performing operations on the off-screen touch surface to directly map the operation to the corresponding surface of the virtual object, and solving the control of the surface not displayed on the screen in the three-dimensional object through the screen, usually requires multiple operations to complete, operation The problem of low efficiency has achieved the effect of improving operational efficiency.
  • FIG. 1 is a flowchart of a method for operating a virtual object according to an embodiment of the present invention
  • FIG. 2A is a flowchart of still another method for operating a virtual object according to an embodiment of the present invention.
  • 2B is a schematic diagram of an electronic device and a stereo model according to an embodiment of the present invention.
  • 2C is a schematic diagram of a first variation of a virtual object according to an embodiment of the present invention.
  • 2D is a schematic diagram of a second variation of a virtual object according to an embodiment of the present invention.
  • 2E is a schematic diagram of a usage scenario of operating a virtual object according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a virtual object operating device according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a virtual object operating device according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for operating a virtual object according to an embodiment of the present invention.
  • the virtual object operation method is applied to an electronic device including a screen and a touch surface.
  • the touch surface is disposed on an outer surface of the electronic device other than the screen, and may include:
  • Step 101 Acquire an operation triggered on a touch surface.
  • Step 102 Map the touch surface to the virtual object to obtain a mapping surface.
  • the virtual object is a three-dimensional object displayed on the screen, and the mapping surface corresponds to at least one surface of the virtual object that is not displayed on the screen.
  • step 103 the operation is mapped to an operation triggered on the mapping surface.
  • Step 104 changing the display state of the virtual object according to the operation.
  • the virtual object operation method by acquiring an operation triggered on a touch surface, the touch surface is disposed on an outer surface of the electronic device other than the screen; mapping the touch surface to On the virtual object, a mapping surface is obtained, the virtual object is a three-dimensional object displayed on the screen, and the mapping surface corresponds to at least one surface of the virtual object that is not displayed on the screen; the operation is mapped to an operation triggered on the mapping surface; Changing the display state of the virtual object can perform operations on the off-screen touch surface according to the characteristics of the electronic device being a three-dimensional object, thereby directly mapping the operation to the corresponding surface of the virtual object, thereby solving the problem of controlling the three-dimensional object through the screen.
  • the surface displayed on the screen usually requires multiple operations to complete, and the problem of low operational efficiency achieves an effect of improving operational efficiency.
  • the virtual object is a three-dimensional character and the front side of the character is displayed on the screen. If the user needs to hit the back of the character, only the electronic device corresponds to the outer surface of the back of the character (for example, electronic A tapping operation (such as a click operation) is performed on the opposite side of the device screen, that is, only one click operation is performed to achieve a hit on the back of the character.
  • FIG. 2A a flowchart of still another method for operating a virtual object according to an embodiment of the present invention is shown.
  • the virtual object operation method is applied to an electronic device including a screen and a touch surface.
  • the touch surface is disposed on an outer surface of the electronic device other than the screen, and may include:
  • Step 201 Acquire an operation triggered on a touch surface.
  • the touch surface is disposed on an outer surface of the electronic device other than the screen.
  • the touch surface may be disposed on the back surface of the electronic device, or may be disposed on the side of the electronic device, or may be disposed on the front surface of the electronic device except the screen.
  • the touch surface is also disposed on the outer surface of the outer casing, and the touch surface of the outer casing overlaps with the touch surface of the electronic device, so that the electronic device can acquire the touch at the outer casing. Control the action triggered on the surface.
  • the touch surface of the electronic device and the touch surface of the outer casing may be implemented in the same manner or differently, which is not limited in this embodiment.
  • the first implementation may include: providing a printed circuit board in a lower layer of the outer surface of the electronic device other than the screen, the distribution area of the printed circuit board being the area of the touch surface.
  • the printed circuit board detects whether the user touches the touch surface by detecting whether the capacitance value of the touch surface changes.
  • the second implementation manner may include: disposing a sensor on an outer surface of the electronic device other than the screen, and the distribution area of the sensor is an area of the touch surface.
  • the sensor can be a distance sensor or the like.
  • the electronic device can acquire an operation performed by the user on a touch surface, and the operation can be a click operation, a double-click operation, a pan operation, a rotation operation, a zoom operation, and the like.
  • Step 202 The virtual object is placed in a stereo model, and the stereo model is a model corresponding to the geometric model of the outer surface of the electronic device, and the surface corresponding to the touch surface in the stereo model is determined as a mapping surface, and the virtual object is displayed on the screen.
  • the three-dimensional object, the mapping surface corresponds to at least one surface of the virtual object that is not displayed on the screen.
  • the electronic device Since the user triggers the operation on the touch surface in order to change the display state of the virtual object, the electronic device also needs to map the operation to the operation triggered on the virtual object. In a possible reality In the current mode, the electronic device may first map the touch surface to the virtual object, obtain a mapping surface, and then map the operation to the mapping surface.
  • the mapping surface corresponds to at least one surface of the virtual object that is not displayed on the screen.
  • the mapping surface may correspond to the back side, the side surface, and the like of the three-dimensional character.
  • each touch surface of the electronic device uniquely corresponds to one surface of the virtual object, and the virtual object may directly correspond to the touch surface.
  • the surface is determined to be the mapped surface.
  • the electronic device and the virtual object are both rectangular parallelepipes.
  • the touch surface is the right side surface of the electronic device, the right side surface of the virtual object can be directly determined as the mapping surface.
  • each touch surface may also correspond to at least two surfaces of the virtual object, and the at least two surfaces may be determined as the mapping surface.
  • the electronic device and the virtual object are both rectangular parallelepipes. If the touch surface is the right side surface and the lower side surface of the electronic device, the right side surface and the lower side surface of the virtual object may be directly determined as the mapping surface.
  • the virtual object is an irregular three-dimensional object, that is, the touch surface of the electronic device does not correspond to the surface of the virtual object, the virtual object needs to be placed in the stereo model, and the surface corresponding to the touch surface in the stereo model is determined as Map the surface.
  • the three-dimensional model is a model corresponding to the geometric model of the outer surface of the electronic device.
  • the three-dimensional model is also a rectangular parallelepiped; when the electronic device is a cylinder, the three-dimensional model is also a cylinder.
  • the stereo model is used to fix virtual objects.
  • the stereo model can accommodate the virtual object.
  • the length, width, and height of the stereo model need to be greater than or equal to the length, width, and height of the virtual object, respectively.
  • the size of the solid model may also be smaller than the size of the virtual object.
  • each touch surface of the electronic device uniquely corresponds to one surface of the stereo model, and the surface corresponding to the touch surface in the stereo model can be directly determined as The mapping surface, without the need to map to a virtual object, achieves the effect of simplifying the mapping process for operations.
  • both the electronic device and the stereo model are cuboids. Assuming that the touch surface is the right side surface of the electronic device, the right side surface of the stereo model can be directly determined as the mapping surface.
  • the virtual object is a three-dimensional table
  • the electronic device and the stereo model are both rectangular parallelepipeds
  • the virtual object is located in the stereo model.
  • the touch surface is the right side surface A of the electronic device
  • the mapping surface is the right side surface A' of the three-dimensional model.
  • each touch surface may also correspond to at least two surfaces of the stereo model, and the at least two surfaces may be determined as the mapping surface.
  • both the electronic device and the stereo model are cuboids. Assuming that the touch surface is the right side surface and the lower side surface of the electronic device, the right side surface and the lower side surface of the three-dimensional model can be directly determined as the mapping surface.
  • step 203 the operation is mapped to an operation triggered on the mapping surface.
  • the operation when the operation is a panning operation triggered on the touch surface, the operation may be mapped to a panning operation triggered on the mapping surface; when the operation is a rotation operation triggered on the touch surface, the operation may be mapped The rotation operation that is triggered on the mapped surface.
  • the operation can be directly applied to at least one surface of the virtual object that is not displayed on the screen, without first operating the virtual object to At least one surface displayed on the screen is displayed on the screen, and then an operation is applied to the surface of the display, which saves operation.
  • the virtual object is a three-dimensional character and the front side of the character is displayed on the screen. If the user needs to hit the back of the character, only the outer surface of the electronic device corresponding to the back of the character (for example, the opposite side of the screen of the electronic device) is needed. Perform a hit operation (such as a click operation), that is, you only need to perform a single click to achieve a hit on the back of the character without first rotating the back of the character to the screen for display, and then hitting the screen. (eg click action).
  • a hit operation such as a click operation
  • Step 204 changing the display state of the virtual object according to the operation.
  • This embodiment provides two implementation manners for changing the display state of a virtual object according to an operation. The following two implementation manners are respectively described:
  • changing the display state of the virtual object according to the operation includes:
  • mapping the contact to the mapping surface according to the proportional relationship between the area of the touch surface and the area of the mapping surface to obtain a mapping point
  • mapping the motion trajectory to the mapping surface according to the proportional relationship between the area of the touch surface and the area of the mapping surface, to obtain a mapping trajectory
  • the electronic device can map the contact to the mapping surface to obtain a mapping point; then map the motion trajectory to the mapping surface to obtain a mapping trajectory, and control the virtual object to change with the mapping trajectory, so that the display state of the virtual object can be
  • the user experience is improved as the user-triggered operation changes.
  • the contact is the point of contact with the touch surface when the user triggers the operation.
  • mapping point when the mapping point is obtained, if the mapping point is the default point on the mapping surface, the default point can be directly read; if the mapping point is not the default point on the mapping surface, the area of the touch surface can be obtained at this time.
  • the proportional relationship between the regions of the mapping surface, and the mapping points are obtained according to the proportional relationship.
  • mapping point including:
  • mapping the contact coordinates onto the mapping surface according to the proportional relationship between the area of the touch surface and the area of the mapping surface, and obtaining the coordinates of the mapping point;
  • the area of the touch surface is a rectangular area of 5 cm in length and 10 cm in width
  • the area of the mapping surface is a rectangular area of 2.5 cm in length and 5 cm in width, assuming that the contact coordinates are (2.5, 5), Then the calculated map point coordinates are (1.25, 2.5).
  • point a is a contact on the right side surface of the electronic device
  • point a' is a mapping point on the right side surface of the stereo model.
  • each point in the motion track can be mapped onto the mapping surface according to the mapping manner of the above contact points, and the mapping points of each point are obtained, and all the mapping points are obtained. Combine to get the mapping trajectory.
  • the display posture of the virtual object is controlled according to the mapping point to change according to the mapping trajectory, including:
  • mapping trajectory when the mapping trajectory is used to indicate the panning operation, determining the moving direction and distance indicated by the mapping trajectory, controlling the virtual object to follow the mapping point, and moving the distance according to the moving direction;
  • mapping trajectory When the mapping trajectory is used to indicate the rotation operation, determine the rotation direction and angle of the mapping trajectory, control the virtual object to follow the mapping point, and rotate the angle according to the rotation direction.
  • mapping trajectory is used to indicate the panning operation
  • the operation is a panning operation triggered on the right side surface of the electronic device
  • the contact is a
  • the motion trajectory indication starts from the contact a.
  • Move the first distance A mapping point a' and a mapping trajectory are obtained based on the contact a and the motion trajectory, which indicates that the second distance is moved downward by the mapping point a'.
  • the left diagram of FIG. 2C shows the correspondence between the contact a and the motion trajectory, the mapping point a', and the mapping trajectory, and the display state of the virtual object before moving according to the mapping trajectory, in the right diagram of FIG. 2C.
  • the display state after the virtual object moves according to the mapping trajectory is shown.
  • mapping track when used to indicate the rotation operation, please refer to the second variation diagram of the virtual object shown in FIG. 2D, wherein the operation is a rotation operation triggered on the rear surface of the electronic device.
  • the trajectory indication is rotated counterclockwise by a predetermined angle by contact a (located on the back of the electronic device, not shown in Figure 2D).
  • the mapping point a' and the mapping trajectory are obtained based on the contact a and the motion trajectory, which indicates that the predetermined angle is rotated counterclockwise by the mapping point a', please refer to the dotted arrow in the right diagram of Fig. 2D.
  • the left diagram of FIG. 2D shows the display state of the virtual object before moving according to the mapping trajectory
  • the right diagram of FIG. 2D shows the display state of the virtual object after moving according to the mapping trajectory.
  • the operated contacts may be at least one.
  • the contact of the operation is one; when the user triggers the operation on the touch surface through multiple fingers or through other parts of the hand, the operated contact is At least two.
  • the virtual object operation method is introduced by the user operating the virtual object through the tiger's mouth part. At this time, the contact on the touch surface is two, and the two contacts rotate in opposite directions at any time. .
  • the electronic device When the electronic device is located at the tiger's mouth position of the hand, the contact between the tiger mouth and the touch surface includes the contact A and the contact B, since the touch surface is an electronic device. The lower surface, therefore, the mapping surface is the lower surface of the three-dimensional model. At this time, the electronic device can determine the mapping point a corresponding to the contact A and the mapping point b corresponding to the contact B on the lower surface of the three-dimensional model.
  • the contact A and the contact B simultaneously move in the counterclockwise direction and the rotation directions of the contact A and the contact B are opposite.
  • the moving direction of the mapping point a and the mapping point b is as shown in Fig. 2E.
  • changing the display state of the virtual object according to the operation includes:
  • the correspondence relationship is used to store the relationship between the operation and the display instruction.
  • two opposite sliding operations simultaneously acting on the touch surface correspond to the zooming operation
  • the click operation corresponds to the panning operation
  • the double clicking operation corresponds to the zooming operation.
  • the rotation operation or the like does not limit the correspondence in this embodiment.
  • the scaling of the scaling operation may be fixed or related to the operation.
  • the sliding distance of the operation is positively correlated with the scaling. For example, the sliding distance of 1 cm in the opposite sliding operation corresponds to a magnification ratio of 200%; the sliding distance of 1 cm in the relative sliding operation corresponds to a reduction ratio of 50% or the like.
  • the direction and distance of movement of the panning operation can be fixed or related to the operation.
  • the operation duration of the operation is positively related to the distance. For example, when the operation time of the click operation is 1 second, it corresponds to a distance of 2 cm; when the operation time of the click operation is 2 seconds, it corresponds to a distance of 5 cm.
  • the type of operation is related to the direction of movement. For example, when the operation type is a click operation, the movement direction is to the left; when the operation type is a double-click operation, the movement direction is to the right.
  • the direction and angle of rotation of the rotary operation can be fixed or related to operation.
  • the operational duration of the operation is positively correlated with the angle. For example, when the operation time of the click operation is 1 second, it corresponds to 30°; when the operation time of the click operation is 2 seconds, it corresponds to 60°.
  • the type of operation is related to the direction of movement. For example, when the operation type is a click operation, the rotation direction is counterclockwise; when the operation type is a double-click operation, the rotation direction is clockwise.
  • the electronic device can change the display state of the virtual object according to the display instruction acting on the mapping surface. Specifically, the electronic device may set a default point on the mapping surface, control the virtual object to follow the default point, and move a certain distance according to the moving direction; or control the virtual object to follow the mapping point and rotate an angle according to the rotation direction.
  • the specific translation and rotation process is described in detail above, and will not be described here.
  • the two virtual objects when at least two virtual objects are displayed on the screen, the two virtual objects may be operated as a whole, or a virtual object may be selected for operation.
  • the operation method is as described above, and is not described herein. .
  • the virtual object operation method by acquiring an operation triggered on a touch surface, the touch surface is disposed on an outer surface of the electronic device other than the screen; mapping the touch surface to On the virtual object, a mapping surface is obtained, the virtual object is a three-dimensional object displayed on the screen, and the mapping surface corresponds to at least one surface of the virtual object that is not displayed on the screen; the operation is mapped to an operation triggered on the mapping surface; Changing the display state of the virtual object can perform operations on the off-screen touch surface according to the characteristics of the electronic device being a three-dimensional object, thereby directly mapping the operation to the corresponding surface of the virtual object, thereby solving the problem of controlling the three-dimensional object through the screen.
  • the surface displayed on the screen usually requires multiple operations to complete, and the problem of low operational efficiency achieves an effect of improving operational efficiency.
  • the stereo model is a model corresponding to the outer surface geometric model of the electronic device; at least one surface corresponding to the touch surface in the stereo model is determined as a mapping surface, and the virtual object may be
  • the virtual object can be placed in a stereo model corresponding to the geometric model of the outer surface of the electronic device. Since the touch surface corresponds to a mapping surface, operations performed on the touch surface can be mapped. For the operations performed on the mapped surface, It does not need to be mapped to a virtual object, and the effect of simplifying the mapping process to the operation is achieved.
  • FIG. 3 is a schematic structural diagram of a virtual object operating device according to an embodiment of the present invention.
  • the virtual object operating device is applied to an electronic device including a screen and a touch surface, and the touch surface is disposed on the electronic device.
  • the touch surface is disposed on the electronic device.
  • the operation obtaining module 301 is configured to acquire an operation triggered on a touch surface
  • the surface mapping module 302 is configured to map the touch surface to the virtual object to obtain a mapping surface, where the virtual object is a three-dimensional object displayed on the screen, and the mapping surface corresponds to at least one surface of the virtual object that is not displayed on the screen;
  • the operation mapping module 303 is configured to map the operation acquired by the operation obtaining module 301 to an operation triggered on the mapping surface obtained by the surface mapping module 302.
  • the state change module 304 is configured to change the display state of the virtual object according to the operation mapped by the operation mapping module 303.
  • the virtual object operating device obtains an operation triggered on a touch surface, and the touch surface is disposed on an outer surface of the electronic device other than the screen; mapping the touch surface to On the virtual object, a mapping surface is obtained, the virtual object is a three-dimensional object displayed on the screen, and the mapping surface corresponds to at least one surface of the virtual object that is not displayed on the screen; the operation is mapped to an operation triggered on the mapping surface; Changing the display state of the virtual object can perform operations on the off-screen touch surface according to the characteristics of the electronic device being a three-dimensional object, thereby directly mapping the operation to the corresponding surface of the virtual object, thereby solving the problem of controlling the three-dimensional object through the screen.
  • the surface displayed on the screen usually requires multiple operations to complete, and the problem of low operational efficiency achieves an effect of improving operational efficiency.
  • an embodiment of the present invention further provides a virtual object operating device, which is applied to an electronic device including a screen and a touch surface, and the touch surface is disposed outside the screen of the electronic device.
  • a virtual object operating device which is applied to an electronic device including a screen and a touch surface, and the touch surface is disposed outside the screen of the electronic device.
  • the touch surface On the surface, it can include:
  • the operation obtaining module 301 is configured to acquire an operation triggered on a touch surface
  • the surface mapping module 302 is configured to map the touch surface to the virtual object to obtain a mapping surface, where the virtual object is a three-dimensional object displayed on the screen, and the mapping surface corresponds to at least one surface of the virtual object that is not displayed on the screen;
  • An operation mapping module 303 configured to map the operation acquired by the operation obtaining module 301 to be on the surface The operation triggered on the mapping surface obtained by the mapping module 302;
  • the state change module 304 is configured to change the display state of the virtual object according to the operation mapped by the operation mapping module 303.
  • the operation mapping module 303 is specifically configured to:
  • the virtual object is placed in a stereo model, which is a model corresponding to the geometric model of the outer surface of the electronic device;
  • At least one surface corresponding to the touch surface in the stereo model is determined as a mapping surface.
  • the state change module 304 is specifically configured to:
  • mapping the contact to the mapping surface according to a proportional relationship between the area of the touch surface and the area of the mapping surface to obtain a mapping point
  • the motion trajectory is mapped onto the mapping surface to obtain a mapping trajectory
  • the display state of the virtual object is controlled to vary with the mapping trajectory according to the mapping point.
  • the state change module 304 is specifically configured to:
  • the contact coordinates are mapped onto the mapping surface to obtain the mapping point coordinates;
  • the point corresponding to the coordinates of the map point is determined as a map point.
  • the state change module 304 is specifically configured to:
  • mapping trajectory When the mapping trajectory is used to indicate a panning operation, determining a moving direction and a distance indicated by the mapping trajectory, controlling the virtual object to follow the mapping point, and moving the distance according to the moving direction;
  • mapping trajectory When the mapping trajectory is used to indicate the rotation operation, the rotation direction and angle of the mapping trajectory are determined, and the virtual object is controlled to follow the mapping point, and the angle is rotated according to the rotation direction.
  • the state change module 304 is further configured to:
  • the display state of the virtual object is changed according to a display instruction acting on the mapping surface.
  • the virtual object operating device is obtained by acquiring a touch The surface-triggered operation, the touch surface is disposed on an outer surface of the electronic device other than the screen; the touch surface is mapped onto the virtual object to obtain a mapping surface, and the virtual object is a three-dimensional object displayed on the screen, and the mapping surface corresponds to At least one surface not displayed on the screen in the virtual object; mapping the operation to an operation triggered on the mapping surface; changing the display state of the virtual object according to the operation, according to the characteristics of the electronic device being a three-dimensional object, touching on the screen Performing operations on the control surface, thereby directly mapping the operation to the corresponding surface of the virtual object, solves the problem of controlling the surface not displayed on the screen in the three-dimensional object through the screen, usually requires multiple operations to complete, and the operation efficiency is low, reaching The effect of improving operational efficiency.
  • the stereo model is a model corresponding to the outer surface geometric model of the electronic device; at least one surface corresponding to the touch surface in the stereo model is determined as a mapping surface, and the virtual object may be
  • the virtual object can be placed in a stereo model corresponding to the geometric model of the outer surface of the electronic device. Since the touch surface corresponds to a mapping surface, operations performed on the touch surface can be mapped. The effect of simplifying the mapping process to operations is achieved for operations performed on the mapped surface without mapping to virtual objects.
  • FIG. 4 is a schematic structural diagram of a virtual object operating device according to an embodiment of the present invention.
  • the virtual object operating device is applied to an electronic device including a screen and a touch surface, and the touch surface is disposed on the electronic device.
  • the apparatus includes a bus 401, and a processor 402, a memory 403, a transmitter 404, and a receiver 405 connected to the bus 401.
  • the memory 403 is configured to store a plurality of instructions, the instructions being configured to be executed by the processor 402;
  • a receiver 405, configured to acquire an operation triggered on a touch surface
  • the processor 402 is configured to map the touch surface to the virtual object to obtain a mapping surface, where the virtual object is a three-dimensional object displayed on the screen, and the mapping surface corresponds to at least one surface of the virtual object that is not displayed on the screen;
  • the processor 402 is configured to map the operation received by the receiver 405 to an operation triggered on the mapping surface;
  • the processor 402 is configured to change a display state of the virtual object according to the operation.
  • the virtual object operating device obtains an operation triggered on a touch surface, and the touch surface is disposed on an outer surface of the electronic device other than the screen; mapping the touch surface to On the virtual object, a mapping surface is obtained, the virtual object is a three-dimensional object displayed on the screen, and the mapping surface corresponds to at least one surface of the virtual object that is not displayed on the screen; mapping the operation to Mapping the operation triggered on the surface; changing the display state of the virtual object according to the operation, according to the characteristics of the electronic device being a three-dimensional object, performing an operation on the off-screen touch surface, thereby directly mapping the operation to the corresponding surface of the virtual object,
  • the invention solves the problem that the surface not displayed on the screen in the three-dimensional object is controlled by the screen, usually requires multiple operations to complete, and the operation efficiency is low, and the effect of improving the operation efficiency is achieved.
  • an embodiment of the present invention further provides a virtual object operating device, which is applied to an electronic device including a screen and a touch surface, and the touch surface is disposed outside the screen of the electronic device.
  • the apparatus includes a bus 401, and a processor 402, a memory 403, a transmitter 404, and a receiver 405 connected to the bus 401.
  • the memory 403 is configured to store a plurality of instructions, the instructions being configured to be executed by the processor 402;
  • a receiver 405, configured to acquire an operation triggered on a touch surface
  • the processor 402 is configured to map the touch surface to the virtual object to obtain a mapping surface, where the virtual object is a three-dimensional object displayed on the screen, and the mapping surface corresponds to at least one surface of the virtual object that is not displayed on the screen;
  • the processor 402 is configured to map the operation received by the receiver 405 to an operation triggered on the mapping surface;
  • the processor 402 is configured to change a display state of the virtual object according to the operation.
  • the processor 402 is specifically configured to:
  • the virtual object is placed in a stereo model, which is a model corresponding to the geometric model of the outer surface of the electronic device;
  • At least one surface corresponding to the touch surface in the stereo model is determined as a mapping surface.
  • the processor 402 is specifically configured to:
  • mapping the contact to the mapping surface according to a proportional relationship between the area of the touch surface and the area of the mapping surface to obtain a mapping point
  • the motion trajectory is mapped onto the mapping surface to obtain a mapping trajectory
  • the display state of the virtual object is controlled to vary with the mapping trajectory according to the mapping point.
  • the processor 402 is specifically configured to:
  • the contact coordinates are mapped onto the mapping surface to obtain the mapping point coordinates;
  • the point corresponding to the coordinates of the map point is determined as a map point.
  • the processor 402 is specifically configured to:
  • mapping trajectory When the mapping trajectory is used to indicate a panning operation, determining a moving direction and a distance indicated by the mapping trajectory, controlling the virtual object to follow the mapping point, and moving the distance according to the moving direction;
  • mapping trajectory When the mapping trajectory is used to indicate the rotation operation, the rotation direction and angle of the mapping trajectory are determined, and the virtual object is controlled to follow the mapping point, and the angle is rotated according to the rotation direction.
  • the processor 402 is specifically configured to:
  • the display state of the virtual object is changed according to a display instruction acting on the mapping surface.
  • the virtual object operating device obtains an operation triggered on a touch surface, and the touch surface is disposed on an outer surface of the electronic device other than the screen; mapping the touch surface to On the virtual object, a mapping surface is obtained, the virtual object is a three-dimensional object displayed on the screen, and the mapping surface corresponds to at least one surface of the virtual object that is not displayed on the screen; the operation is mapped to an operation triggered on the mapping surface; Changing the display state of the virtual object can perform operations on the off-screen touch surface according to the characteristics of the electronic device being a three-dimensional object, thereby directly mapping the operation to the corresponding surface of the virtual object, thereby solving the problem of controlling the three-dimensional object through the screen.
  • the surface displayed on the screen usually requires multiple operations to complete, and the problem of low operational efficiency achieves an effect of improving operational efficiency.
  • the stereo model is a model corresponding to the outer surface geometric model of the electronic device; at least one surface corresponding to the touch surface in the stereo model is determined as a mapping surface, and the virtual object may be
  • the virtual object can be placed in a stereo model corresponding to the geometric model of the outer surface of the electronic device. Since the touch surface corresponds to a mapping surface, operations performed on the touch surface can be mapped. The effect of simplifying the mapping process to operations is achieved for operations performed on the mapped surface without mapping to virtual objects.
  • the virtual object operating device provided by the above embodiment performs virtual object operations.
  • the above-mentioned function allocation can be completed by different functional modules according to requirements, that is, the internal structure of the virtual object operating device is divided into different functional modules to complete All or part of the functions described above.
  • the virtual object operating device and the virtual object operating method embodiment are provided in the same concept, and the specific implementation process is described in detail in the method embodiment, and details are not described herein again.
  • the disclosed systems, devices, and methods may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit may be only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined. Or it can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product. Based on such understanding, the technical solution of the present invention may contribute to the prior art or part of the technical solution. Illustrated in the form of a software product stored in a storage medium, comprising instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the embodiments of the present invention All or part of the steps of the method.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. .

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

A virtual object operation method and device, which relate to the technical field of computers. The method is applied to an electronic device comprising a screen and a touch surface, and the touch surface is disposed on an outer surface of the electronic device excluding the screen. The method comprises: acquiring an operation triggered on a touch surface (101); mapping the touch surface to a virtual object to obtain a mapping surface, the virtual object being a three-dimensional object displayed in the screen, and the mapping surface being corresponding to at least one surface that is not displayed in the screen in the virtual object (102); mapping the operation as the operation triggered on the mapping surface (103); and changing the display state of the virtual object according to the operation (104). The problem is solved that the operation efficiency is low because a surface, which is not displayed in a screen, of a three-dimensional object is controlled by means of the screen and the control requires multiple operations; accordingly the effect of improving the operation efficiency is achieved.

Description

虚拟对象操作方法及装置Virtual object operation method and device 技术领域Technical field
本发明涉及计算机技术领域,特别涉及一种虚拟对象操作方法及装置。The present invention relates to the field of computer technologies, and in particular, to a virtual object operating method and apparatus.
背景技术Background technique
虚拟对象是在电子设备中显示的三维对象,可以是三维的立方体、汽车、人物等。用户可以通过在屏幕中执行相关操作来控制虚拟对象。A virtual object is a three-dimensional object displayed in an electronic device, and may be a three-dimensional cube, a car, a character, or the like. The user can control the virtual object by performing related operations on the screen.
比如,虚拟对象是三维人物且屏幕中显示的是人物的正面,若用户需要实施对人物背面的击打,此时需要先旋转人物来将人物的背面显示在屏幕中再对背面进行击打。即用户需要根据预设规则先后进行旋转和击打两个操作才能实现对虚拟对象未显示在屏幕上的一个表面的击打操作,具体地,假设旋转操作的预设规则是从左向右的滑动操作,击打操作的预设规则是单击操作,则用户需要进行滑动和单击两个操作才能实施对人物背面的击打。For example, the virtual object is a three-dimensional character and the front side of the character is displayed on the screen. If the user needs to perform a hit on the back of the character, the character needs to be rotated first to display the back of the character on the screen and then hit the back. That is, the user needs to perform two operations of rotating and striking according to the preset rule to achieve a hitting operation on a surface of the virtual object that is not displayed on the screen. Specifically, the preset rule of the rotating operation is from left to right. The sliding operation, the preset rule of the hitting operation is a click operation, and the user needs to perform two operations of sliding and clicking to implement the hitting on the back of the character.
由于虚拟对象是三维对象,且屏幕只能显示三维对象中的一个表面,所以通过屏幕控制三维对象中未在屏幕中显示的表面,通常需要多个操作来完成,操作效率低。Since the virtual object is a three-dimensional object, and the screen can only display one surface in the three-dimensional object, it is usually required to perform multiple operations to control the surface of the three-dimensional object that is not displayed on the screen through the screen, and the operation efficiency is low.
发明内容Summary of the invention
为了解决通过屏幕控制三维对象中未在屏幕中显示的表面,通常需要多个操作来完成,操作效率低的问题,本发明实施例提供了一种虚拟对象操作方法及装置。所述技术方案如下:In order to solve the problem that a surface that is not displayed on the screen in the three-dimensional object is controlled by the screen, a plurality of operations are usually required to be completed, and the operation efficiency is low, the embodiment of the present invention provides a virtual object operation method and apparatus. The technical solution is as follows:
第一方面,提供了一种虚拟对象操作方法,应用于包含屏幕和触控表面的电子设备中,所述触控表面设置在所述电子设备除所述屏幕之外的外表面上,所述方法包括:In a first aspect, a virtual object operating method is provided for use in an electronic device including a screen and a touch surface, the touch surface being disposed on an outer surface of the electronic device other than the screen, Methods include:
获取在一个所述触控表面上触发的操作;Obtaining an operation triggered on one of the touch surfaces;
将所述触控表面映射到虚拟对象上,得到映射表面,所述虚拟对象是在所述屏幕中显示的三维对象,所述映射表面对应于所述虚拟对象中未在所述屏幕中显示的至少一个表面; Mapping the touch surface onto the virtual object to obtain a mapping surface, the virtual object being a three-dimensional object displayed in the screen, the mapping surface corresponding to the virtual object not being displayed in the screen At least one surface;
将所述操作映射为在所述映射表面上触发的操作;Mapping the operation to an operation triggered on the mapping surface;
根据所述操作改变所述虚拟对象的显示状态。The display state of the virtual object is changed according to the operation.
在第一方面的第一种可能的实现方式中,所述将所述触控表面映射到虚拟对象上,得到映射表面,包括:In a first possible implementation manner of the first aspect, the mapping the touch surface to a virtual object to obtain a mapping surface includes:
将所述虚拟对象置于立体模型中,所述立体模型是与所述电子设备的外表面几何模型对应的模型;Place the virtual object in a stereo model, the stereo model being a model corresponding to an outer surface geometric model of the electronic device;
将所述立体模型中与所述触控表面对应的至少一个表面确定为所述映射表面。At least one surface of the three-dimensional model corresponding to the touch surface is determined as the mapping surface.
根据第一方面或第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,所述根据所述操作改变所述虚拟对象的显示状态,包括:According to the first aspect or the first possible implementation manner of the first aspect, in the second possible implementation manner of the first aspect, the changing the display state of the virtual object according to the operation includes:
获取所述操作在所述触控表面上的触点,和所述触点在所述触控表面上的运动轨迹;Obtaining the contact on the touch surface and the movement track of the contact on the touch surface;
根据所述触控表面的区域和所述映射表面的区域之间的比例关系,将所述触点映射到所述映射表面上,得到映射点;Mapping the contact to the mapping surface according to a proportional relationship between the area of the touch surface and the area of the mapping surface to obtain a mapping point;
根据所述触控表面的区域和所述映射表面的区域之间的比例关系,将所述运动轨迹映射到所述映射表面上,得到映射轨迹;Mapping the motion trajectory to the mapping surface according to a proportional relationship between the area of the touch surface and the area of the mapping surface to obtain a mapping trajectory;
根据所述映射点控制所述虚拟对象的显示状态随所述映射轨迹变化。Controlling, according to the mapping point, a display state of the virtual object changes with the mapping trajectory.
根据第一方面的第二种可能的实现方式,在第一方面的第三种可能的实现方式中,所述根据所述触控表面的区域和所述映射表面的区域之间的比例关系,将所述触点射到所述映射表面上,得到映射点,包括:According to a second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the proportional relationship between the area of the touch surface and the area of the mapping surface, The contact is shot onto the mapping surface to obtain a mapping point, including:
获取所述触点在所述触控表面上的触点坐标;Obtaining contact coordinates of the contact on the touch surface;
根据所述触控表面的区域和所述映射表面的区域之间的比例关系,将所述触点坐标映射到所述映射表面上,得到映射点坐标;Mapping the contact coordinates onto the mapping surface according to a proportional relationship between the area of the touch surface and the area of the mapping surface to obtain mapping point coordinates;
将所述映射点坐标所对应的点确定为所述映射点。A point corresponding to the coordinates of the map point is determined as the map point.
根据第一方面的第二种可能的实现方式或第一方面的第三种可能的实现方式,在第一方面的第四种可能的实现方式中,所述根据所述映射点控制所述虚拟对象的显示姿态随所述映射轨迹变化,包括:According to the second possible implementation of the first aspect, or the third possible implementation of the first aspect, in a fourth possible implementation manner of the first aspect, the controlling the virtual according to the mapping point The display pose of the object changes with the mapping trajectory, including:
当所述映射轨迹用于指示平移操作时,确定所述映射轨迹所指示的移动方向和距离,控制所述虚拟对象跟随所述映射点,按照所述移动方向移动所述距离;When the mapping trajectory is used to indicate a panning operation, determining a moving direction and a distance indicated by the mapping trajectory, controlling the virtual object to follow the mapping point, and moving the distance according to the moving direction;
当所述映射轨迹用于指示旋转操作时,确定所述映射轨迹的旋转方向和角 度,控制所述虚拟对象跟随所述映射点,按照所述旋转方向旋转所述角度。Determining a rotation direction and an angle of the mapping trajectory when the mapping trajectory is used to indicate a rotation operation And controlling the virtual object to follow the mapping point, and rotating the angle according to the rotation direction.
根据第一方面的第二种可能的实现方式或第一方面的第三种可能的实现方式或第一方面的第四种可能的实现方式,在第一方面的第五种可能的实现方式中,所述操作在所述触控表面上的触点为两个,两个所述触点在任意时刻的旋转方向相反。According to a second possible implementation of the first aspect or a third possible implementation of the first aspect or a fourth possible implementation of the first aspect, in a fifth possible implementation of the first aspect The operation has two contacts on the touch surface, and the two of the contacts rotate in opposite directions at any time.
根据第一方面或第一方面的第一种可能的实现方式,在第一方面的第六种可能的实现方式中,所述根据所述操作改变所述虚拟对象的显示状态,包括:According to the first aspect or the first possible implementation manner of the first aspect, in the sixth possible implementation manner of the first aspect, the changing the display state of the virtual object according to the operation includes:
在预设的对应关系中查找与所述操作对应的显示指令,所述显示指令用于指示对所述虚拟对象执行缩放操作、平移操作和旋转操作中的至少一种;Searching, in a preset correspondence, a display instruction corresponding to the operation, where the display instruction is used to indicate performing at least one of a zoom operation, a panning operation, and a rotating operation on the virtual object;
根据作用于所述映射表面上的所述显示指令改变所述虚拟对象的显示状态。The display state of the virtual object is changed according to the display instruction acting on the mapping surface.
第二方面,提供了一种虚拟对象操作装置,应用于包含屏幕和触控表面的电子设备中,所述触控表面设置在所述电子设备除所述屏幕之外的外表面上,所述装置包括:In a second aspect, a virtual object operating device is provided for use in an electronic device including a screen and a touch surface, the touch surface being disposed on an outer surface of the electronic device other than the screen, The device includes:
操作获取模块,用于获取在一个所述触控表面上触发的操作;An operation obtaining module, configured to acquire an operation triggered on one of the touch surfaces;
表面映射模块,用于将所述触控表面映射到虚拟对象上,得到映射表面,所述虚拟对象是在所述屏幕中显示的三维对象,所述映射表面对应于所述虚拟对象中未在所述屏幕中显示的至少一个表面;a surface mapping module, configured to map the touch surface to the virtual object, to obtain a mapping surface, where the virtual object is a three-dimensional object displayed in the screen, and the mapping surface corresponds to the virtual object not in the virtual object At least one surface displayed in the screen;
操作映射模块,用于将所述操作获取模块获取到的所述操作映射为在所述表面映射模块得到的所述映射表面上触发的操作;An operation mapping module, configured to map the operation acquired by the operation obtaining module to an operation triggered on the mapping surface obtained by the surface mapping module;
状态改变模块,用于根据所述操作映射模块映射的所述操作改变所述虚拟对象的显示状态。And a state changing module, configured to change a display state of the virtual object according to the operation of the operation mapping module mapping.
在第二方面的第一种可能的实现方式中,所述操作映射模块,具体用于:In a first possible implementation manner of the second aspect, the operation mapping module is specifically configured to:
将所述虚拟对象置于立体模型中,所述立体模型是与所述电子设备的外表面几何模型对应的模型;Place the virtual object in a stereo model, the stereo model being a model corresponding to an outer surface geometric model of the electronic device;
将所述立体模型中与所述触控表面对应的至少一个表面确定为所述映射表面。At least one surface of the three-dimensional model corresponding to the touch surface is determined as the mapping surface.
根据第二方面或第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,所述状态改变模块,具体用于:According to the second aspect or the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the state changing module is specifically configured to:
获取所述操作在所述触控表面上的触点,和所述触点在所述触控表面上的运动轨迹; Obtaining the contact on the touch surface and the movement track of the contact on the touch surface;
根据所述触控表面的区域和所述映射表面的区域之间的比例关系,将所述触点映射到所述映射表面上,得到映射点;Mapping the contact to the mapping surface according to a proportional relationship between the area of the touch surface and the area of the mapping surface to obtain a mapping point;
根据所述触控表面的区域和所述映射表面的区域之间的比例关系,将所述运动轨迹映射到所述映射表面上,得到映射轨迹;Mapping the motion trajectory to the mapping surface according to a proportional relationship between the area of the touch surface and the area of the mapping surface to obtain a mapping trajectory;
根据所述映射点控制所述虚拟对象的显示状态随所述映射轨迹变化。Controlling, according to the mapping point, a display state of the virtual object changes with the mapping trajectory.
根据第二方面的第二种可能的实现方式,在第二方面的第三种可能的实现方式中,所述状态改变模块,具体用于:According to a second possible implementation manner of the second aspect, in a third possible implementation manner of the second aspect, the state changing module is specifically configured to:
获取所述触点在所述触控表面上的触点坐标;Obtaining contact coordinates of the contact on the touch surface;
根据所述触控表面的区域和所述映射表面的区域之间的比例关系,将所述触点坐标映射到所述映射表面上,得到映射点坐标;Mapping the contact coordinates onto the mapping surface according to a proportional relationship between the area of the touch surface and the area of the mapping surface to obtain mapping point coordinates;
将所述映射点坐标所对应的点确定为所述映射点。A point corresponding to the coordinates of the map point is determined as the map point.
根据第二方面的第二种可能的实现方式或第二方面的第三种可能的实现方式,在第二方面的第四种可能的实现方式中,所述状态改变模块,具体用于:According to the second possible implementation manner of the second aspect, or the third possible implementation manner of the second aspect, in the fourth possible implementation manner of the second aspect, the state changing module is specifically configured to:
当所述映射轨迹用于指示平移操作时,确定所述映射轨迹所指示的移动方向和距离,控制所述虚拟对象跟随所述映射点,按照所述移动方向移动所述距离;When the mapping trajectory is used to indicate a panning operation, determining a moving direction and a distance indicated by the mapping trajectory, controlling the virtual object to follow the mapping point, and moving the distance according to the moving direction;
当所述映射轨迹用于指示旋转操作时,确定所述映射轨迹的旋转方向和角度,控制所述虚拟对象跟随所述映射点,按照所述旋转方向旋转所述角度。When the mapping trajectory is used to indicate a rotation operation, determining a rotation direction and an angle of the mapping trajectory, controlling the virtual object to follow the mapping point, and rotating the angle according to the rotation direction.
根据第二方面的第二种可能的实现方式或第二方面的第三种可能的实现方式或第二方面的第四种可能的实现方式,在第二方面的第五种可能的实现方式中,所述操作在所述触控表面上的触点为两个,两个所述触点在任意时刻的旋转方向相反。According to the second possible implementation of the second aspect or the third possible implementation of the second aspect or the fourth possible implementation of the second aspect, in a fifth possible implementation manner of the second aspect The operation has two contacts on the touch surface, and the two of the contacts rotate in opposite directions at any time.
根据第二方面或第二方面的第一种可能的实现方式,在第二方面的第六种可能的实现方式中,所述状态改变模块,还用于:According to the second aspect or the first possible implementation manner of the second aspect, in a sixth possible implementation manner of the second aspect, the state changing module is further configured to:
在预设的对应关系中查找与所述操作对应的显示指令,所述显示指令用于指示对所述虚拟对象执行缩放操作、平移操作和旋转操作中的至少一种;Searching, in a preset correspondence, a display instruction corresponding to the operation, where the display instruction is used to indicate performing at least one of a zoom operation, a panning operation, and a rotating operation on the virtual object;
根据作用于所述映射表面上的所述显示指令改变所述虚拟对象的显示状态。The display state of the virtual object is changed according to the display instruction acting on the mapping surface.
第三方面,提供了一种虚拟对象操作装置,应用于包含屏幕和触控表面的电子设备中,所述触控表面设置在所述电子设备除所述屏幕之外的外表面上,所述装置包括:总线,以及连接到所述总线的处理器、存储器、发射器和接收 器。其中,所述存储器用于存储若干个指令,所述指令被配置成由所述处理器执行;In a third aspect, a virtual object operating device is provided for use in an electronic device including a screen and a touch surface, the touch surface being disposed on an outer surface of the electronic device other than the screen, The device includes: a bus, and a processor, a memory, a transmitter, and a receiver connected to the bus Device. Wherein the memory is for storing a plurality of instructions, the instructions being configured to be executed by the processor;
所述接收器,用于获取在一个所述触控表面上触发的操作;The receiver is configured to acquire an operation triggered on one of the touch surfaces;
所述处理器,用于将所述触控表面映射到虚拟对象上,得到映射表面,所述虚拟对象是在所述屏幕中显示的三维对象,所述映射表面对应于所述虚拟对象中未在所述屏幕中显示的至少一个表面;The processor is configured to map the touch surface to a virtual object to obtain a mapping surface, where the virtual object is a three-dimensional object displayed in the screen, and the mapping surface corresponds to the virtual object At least one surface displayed in the screen;
所述处理器,用于将所述接收器接收到的所述操作映射为在所述映射表面上触发的操作;The processor, configured to map the operation received by the receiver to an operation triggered on the mapping surface;
所述处理器,用于根据所述操作改变所述虚拟对象的显示状态。The processor is configured to change a display state of the virtual object according to the operation.
在第三方面的第一种可能的实现方式中,所述处理器,具体用于:In a first possible implementation manner of the third aspect, the processor is specifically configured to:
将所述虚拟对象置于立体模型中,所述立体模型是与所述电子设备的外表面几何模型对应的模型;Place the virtual object in a stereo model, the stereo model being a model corresponding to an outer surface geometric model of the electronic device;
将所述立体模型中与所述触控表面对应的至少一个表面确定为所述映射表面。At least one surface of the three-dimensional model corresponding to the touch surface is determined as the mapping surface.
根据第三方面或第三方面的第一种可能的实现方式,在第三方面的第二种可能的实现方式中,所述处理器,具体用于:According to the third aspect or the first possible implementation manner of the third aspect, in a second possible implementation manner of the third aspect, the processor is specifically configured to:
获取所述操作在所述触控表面上的触点,和所述触点在所述触控表面上的运动轨迹;Obtaining the contact on the touch surface and the movement track of the contact on the touch surface;
根据所述触控表面的区域和所述映射表面的区域之间的比例关系,将所述触点映射到所述映射表面上,得到映射点;Mapping the contact to the mapping surface according to a proportional relationship between the area of the touch surface and the area of the mapping surface to obtain a mapping point;
根据所述触控表面的区域和所述映射表面的区域之间的比例关系,将所述运动轨迹映射到所述映射表面上,得到映射轨迹;Mapping the motion trajectory to the mapping surface according to a proportional relationship between the area of the touch surface and the area of the mapping surface to obtain a mapping trajectory;
根据所述映射点控制所述虚拟对象的显示状态随所述映射轨迹变化。Controlling, according to the mapping point, a display state of the virtual object changes with the mapping trajectory.
根据第三方面的第二种可能的实现方式,在第三方面的第三种可能的实现方式中,所述处理器,具体用于:According to a second possible implementation manner of the third aspect, in a third possible implementation manner of the third aspect, the processor is specifically configured to:
获取所述触点在所述触控表面上的触点坐标;Obtaining contact coordinates of the contact on the touch surface;
根据所述触控表面的区域和所述映射表面的区域之间的比例关系,将所述触点坐标映射到所述映射表面上,得到映射点坐标;Mapping the contact coordinates onto the mapping surface according to a proportional relationship between the area of the touch surface and the area of the mapping surface to obtain mapping point coordinates;
将所述映射点坐标所对应的点确定为所述映射点。A point corresponding to the coordinates of the map point is determined as the map point.
根据第三方面的第二种可能的实现方式或第三方面的第三种可能的实现方式,在第三方面的第四种可能的实现方式中,所述处理器,具体用于: According to the second possible implementation manner of the third aspect, or the third possible implementation manner of the third aspect, in a fourth possible implementation manner of the third aspect, the processor is specifically configured to:
当所述映射轨迹用于指示平移操作时,确定所述映射轨迹所指示的移动方向和距离,控制所述虚拟对象跟随所述映射点,按照所述移动方向移动所述距离;When the mapping trajectory is used to indicate a panning operation, determining a moving direction and a distance indicated by the mapping trajectory, controlling the virtual object to follow the mapping point, and moving the distance according to the moving direction;
当所述映射轨迹用于指示旋转操作时,确定所述映射轨迹的旋转方向和角度,控制所述虚拟对象跟随所述映射点,按照所述旋转方向旋转所述角度。When the mapping trajectory is used to indicate a rotation operation, determining a rotation direction and an angle of the mapping trajectory, controlling the virtual object to follow the mapping point, and rotating the angle according to the rotation direction.
根据第三方面的第二种可能的实现方式或第三方面的第三种可能的实现方式或第三方面的第四种可能的实现方式,在第三方面的第五种可能的实现方式中,所述操作在所述触控表面上的触点为两个,两个所述触点在任意时刻的旋转方向相反。In a fifth possible implementation manner of the third aspect, or a third possible implementation manner of the third aspect, or a fourth possible implementation manner of the third aspect, in a fifth possible implementation manner of the third aspect The operation has two contacts on the touch surface, and the two of the contacts rotate in opposite directions at any time.
根据第三方面或第三方面的第一种可能的实现方式,在第三方面的第六种可能的实现方式中,所述处理器,具体用于:According to the third aspect or the first possible implementation manner of the third aspect, in a sixth possible implementation manner of the third aspect, the processor is specifically configured to:
在预设的对应关系中查找与所述操作对应的显示指令,所述显示指令用于指示对所述虚拟对象执行缩放操作、平移操作和旋转操作中的至少一种;Searching, in a preset correspondence, a display instruction corresponding to the operation, where the display instruction is used to indicate performing at least one of a zoom operation, a panning operation, and a rotating operation on the virtual object;
根据作用于所述映射表面上的所述显示指令改变所述虚拟对象的显示状态。The display state of the virtual object is changed according to the display instruction acting on the mapping surface.
本发明实施例提供的技术方案的有益效果是:The beneficial effects of the technical solutions provided by the embodiments of the present invention are:
通过获取在一个触控表面上触发的操作,触控表面设置在电子设备除屏幕之外的外表面上;将触控表面映射到虚拟对象上,得到映射表面,虚拟对象是在屏幕中显示的三维对象,映射表面对应于虚拟对象中未在屏幕中显示的至少一个表面;将操作映射为在映射表面上触发的操作;根据操作改变虚拟对象的显示状态,可以根据电子设备是三维对象的特性,在屏幕外的触控表面上执行操作,从而将操作直接映射到虚拟对象相应的表面上,解决了通过屏幕控制三维对象中未在屏幕中显示的表面,通常需要多个操作来完成,操作效率低的问题,达到了提高操作效率的效果。By acquiring an operation triggered on a touch surface, the touch surface is disposed on an outer surface of the electronic device other than the screen; mapping the touch surface to the virtual object to obtain a mapping surface, and the virtual object is displayed on the screen a three-dimensional object, the mapping surface corresponding to at least one surface of the virtual object not displayed on the screen; mapping the operation to an operation triggered on the mapping surface; changing the display state of the virtual object according to the operation, according to characteristics of the electronic device being a three-dimensional object Performing operations on the off-screen touch surface to directly map the operation to the corresponding surface of the virtual object, and solving the control of the surface not displayed on the screen in the three-dimensional object through the screen, usually requires multiple operations to complete, operation The problem of low efficiency has achieved the effect of improving operational efficiency.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. Other drawings may also be obtained from those of ordinary skill in the art in light of the inventive work.
图1是本发明实施例提供的一种虚拟对象操作方法的方法流程图; 1 is a flowchart of a method for operating a virtual object according to an embodiment of the present invention;
图2A是本发明实施例提供的又一种虚拟对象操作方法的方法流程图;2A is a flowchart of still another method for operating a virtual object according to an embodiment of the present invention;
图2B是本发明实施例提供的电子设备和立体模型的示意图;2B is a schematic diagram of an electronic device and a stereo model according to an embodiment of the present invention;
图2C是本发明实施例提供的虚拟对象的第一种变化示意图;2C is a schematic diagram of a first variation of a virtual object according to an embodiment of the present invention;
图2D是本发明实施例提供的虚拟对象的第二种变化示意图;2D is a schematic diagram of a second variation of a virtual object according to an embodiment of the present invention;
图2E是本发明实施例提供的操作虚拟对象的使用场景示意图;2E is a schematic diagram of a usage scenario of operating a virtual object according to an embodiment of the present invention;
图3是本发明实施例提供的一种虚拟对象操作装置的结构示意图;3 is a schematic structural diagram of a virtual object operating device according to an embodiment of the present invention;
图4是本发明实施例提供的一种虚拟对象操作装置的结构示意图。FIG. 4 is a schematic structural diagram of a virtual object operating device according to an embodiment of the present invention.
具体实施方式detailed description
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。The embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
请参见图1,其示出了本发明实施例提供的一种虚拟对象操作方法的方法流程图。该虚拟对象操作方法应用于包含屏幕和触控表面的电子设备中,触控表面设置在电子设备除屏幕之外的外表面上,可以包括:FIG. 1 is a flowchart of a method for operating a virtual object according to an embodiment of the present invention. The virtual object operation method is applied to an electronic device including a screen and a touch surface. The touch surface is disposed on an outer surface of the electronic device other than the screen, and may include:
步骤101,获取在一个触控表面上触发的操作。Step 101: Acquire an operation triggered on a touch surface.
步骤102,将触控表面映射到虚拟对象上,得到映射表面,虚拟对象是在屏幕中显示的三维对象,映射表面对应于虚拟对象中未在屏幕中显示的至少一个表面。Step 102: Map the touch surface to the virtual object to obtain a mapping surface. The virtual object is a three-dimensional object displayed on the screen, and the mapping surface corresponds to at least one surface of the virtual object that is not displayed on the screen.
步骤103,将操作映射为在映射表面上触发的操作。In step 103, the operation is mapped to an operation triggered on the mapping surface.
步骤104,根据操作改变虚拟对象的显示状态。 Step 104, changing the display state of the virtual object according to the operation.
综上所述,本发明实施例提供的虚拟对象操作方法,通过获取在一个触控表面上触发的操作,触控表面设置在电子设备除屏幕之外的外表面上;将触控表面映射到虚拟对象上,得到映射表面,虚拟对象是在屏幕中显示的三维对象,映射表面对应于虚拟对象中未在屏幕中显示的至少一个表面;将操作映射为在映射表面上触发的操作;根据操作改变虚拟对象的显示状态,可以根据电子设备是三维对象的特性,在屏幕外的触控表面上执行操作,从而将操作直接映射到虚拟对象相应的表面上,解决了通过屏幕控制三维对象中未在屏幕中显示的表面,通常需要多个操作来完成,操作效率低的问题,达到了提高操作效率的效果。例如,虚拟对象是三维人物且屏幕中显示的是人物的正面,若用户需要击打人物的背面,此时只需要在电子设备对应于人物背面的外表面(例如电子 设备屏幕相对的背面)上进行击打操作(例如单击操作),即只需要执行一个单击操作就可实现对人物背面的击打。In summary, the virtual object operation method provided by the embodiment of the present invention, by acquiring an operation triggered on a touch surface, the touch surface is disposed on an outer surface of the electronic device other than the screen; mapping the touch surface to On the virtual object, a mapping surface is obtained, the virtual object is a three-dimensional object displayed on the screen, and the mapping surface corresponds to at least one surface of the virtual object that is not displayed on the screen; the operation is mapped to an operation triggered on the mapping surface; Changing the display state of the virtual object can perform operations on the off-screen touch surface according to the characteristics of the electronic device being a three-dimensional object, thereby directly mapping the operation to the corresponding surface of the virtual object, thereby solving the problem of controlling the three-dimensional object through the screen. The surface displayed on the screen usually requires multiple operations to complete, and the problem of low operational efficiency achieves an effect of improving operational efficiency. For example, the virtual object is a three-dimensional character and the front side of the character is displayed on the screen. If the user needs to hit the back of the character, only the electronic device corresponds to the outer surface of the back of the character (for example, electronic A tapping operation (such as a click operation) is performed on the opposite side of the device screen, that is, only one click operation is performed to achieve a hit on the back of the character.
请参见图2A,其示出了本发明实施例提供的又一种虚拟对象操作方法的方法流程图。该虚拟对象操作方法应用于包含屏幕和触控表面的电子设备中,触控表面设置在电子设备除屏幕之外的外表面上,可以包括:Referring to FIG. 2A, a flowchart of still another method for operating a virtual object according to an embodiment of the present invention is shown. The virtual object operation method is applied to an electronic device including a screen and a touch surface. The touch surface is disposed on an outer surface of the electronic device other than the screen, and may include:
步骤201,获取在一个触控表面上触发的操作。Step 201: Acquire an operation triggered on a touch surface.
触控表面设置在电子设备中除屏幕之外的外表面上。比如,触控表面可以设置在电子设备的背面上,也可以设置在电子设备的侧面上,还可以设置在电子设备的正面上除屏幕外的表面上。The touch surface is disposed on an outer surface of the electronic device other than the screen. For example, the touch surface may be disposed on the back surface of the electronic device, or may be disposed on the side of the electronic device, or may be disposed on the front surface of the electronic device except the screen.
可选的,当电子设备外套有外壳时,外壳的外表面上也需要设置触控表面,且外壳的触控表面与电子设备的触控表面之间重叠,使得电子设备能够获取在外壳的触控表面上触发的操作。Optionally, when the electronic device has a casing, the touch surface is also disposed on the outer surface of the outer casing, and the touch surface of the outer casing overlaps with the touch surface of the electronic device, so that the electronic device can acquire the touch at the outer casing. Control the action triggered on the surface.
本实施例中,电子设备的触控表面与外壳的触控表面的实现方式可以相同,也可以不同,本实施例不作限定。下面对触控表面的几种实现方式进行介绍:In this embodiment, the touch surface of the electronic device and the touch surface of the outer casing may be implemented in the same manner or differently, which is not limited in this embodiment. The following describes several implementations of the touch surface:
第一种实现方式可以包括:在电子设备中除屏幕之外的外表面的下层设置印刷电路板,印刷电路板的分布区域即为触控表面的区域。其中,印刷电路板通过检测触控表面的电容值是否发生变化来检测用户是否触摸了触控表面。The first implementation may include: providing a printed circuit board in a lower layer of the outer surface of the electronic device other than the screen, the distribution area of the printed circuit board being the area of the touch surface. The printed circuit board detects whether the user touches the touch surface by detecting whether the capacitance value of the touch surface changes.
第二种实现方式可以包括:在电子设备中除屏幕之外的外表面上设置传感器,传感器的分布区域即为触控表面的区域。其中,传感器可以是距离传感器等。The second implementation manner may include: disposing a sensor on an outer surface of the electronic device other than the screen, and the distribution area of the sensor is an area of the touch surface. Among them, the sensor can be a distance sensor or the like.
根据上述实现的触控表面,电子设备可以获取到用户在一个触控表面上执行的操作,该操作可以是单击操作、双击操作、平移操作、旋转操作、缩放操作等。According to the touch surface implemented above, the electronic device can acquire an operation performed by the user on a touch surface, and the operation can be a click operation, a double-click operation, a pan operation, a rotation operation, a zoom operation, and the like.
步骤202,将虚拟对象置于立体模型中,立体模型是与电子设备的外表面几何模型对应的模型,将立体模型中与触控表面对应的表面确定为映射表面,虚拟对象是在屏幕中显示的三维对象,映射表面对应于虚拟对象中未在屏幕中显示的至少一个表面。Step 202: The virtual object is placed in a stereo model, and the stereo model is a model corresponding to the geometric model of the outer surface of the electronic device, and the surface corresponding to the touch surface in the stereo model is determined as a mapping surface, and the virtual object is displayed on the screen. The three-dimensional object, the mapping surface corresponds to at least one surface of the virtual object that is not displayed on the screen.
由于用户在触控表面上触发的操作是为了改变虚拟对象的显示状态,因此,电子设备还需要将操作映射为在虚拟对象上触发的操作。在一种可能的实 现方式中,电子设备可以先将触控表面映射到虚拟对象上,得到映射表面,再将操作映射到映射表面上。Since the user triggers the operation on the touch surface in order to change the display state of the virtual object, the electronic device also needs to map the operation to the operation triggered on the virtual object. In a possible reality In the current mode, the electronic device may first map the touch surface to the virtual object, obtain a mapping surface, and then map the operation to the mapping surface.
其中,映射表面对应于虚拟对象中未在屏幕中显示的至少一个表面。比如,虚拟对象是三维人物且三维人物的正面显示在屏幕中时,映射表面可以对应于三维人物的背面、侧面等。Wherein, the mapping surface corresponds to at least one surface of the virtual object that is not displayed on the screen. For example, when the virtual object is a three-dimensional character and the front side of the three-dimensional character is displayed on the screen, the mapping surface may correspond to the back side, the side surface, and the like of the three-dimensional character.
在得到映射表面时,若虚拟对象是表面规则的三维对象,即,电子设备的每个触控表面都唯一对应于虚拟对象的一个表面,此时可以直接将虚拟对象中与触控表面对应的表面确定为映射表面。比如,电子设备和虚拟对象都是长方体,假设触控表面是电子设备的右侧表面,则可以直接将虚拟对象的右侧表面确定为映射表面。可选的,每个触控表面还可以对应于虚拟对象的至少两个表面,此时可以将这至少两个表面确定为映射表面。比如,电子设备和虚拟对象都是长方体,假设触控表面是电子设备的右侧表面和下侧表面,则可以直接将虚拟对象的右侧表面和下侧表面确定为映射表面。When the mapping surface is obtained, if the virtual object is a surface-consistent three-dimensional object, that is, each touch surface of the electronic device uniquely corresponds to one surface of the virtual object, and the virtual object may directly correspond to the touch surface. The surface is determined to be the mapped surface. For example, the electronic device and the virtual object are both rectangular parallelepipes. If the touch surface is the right side surface of the electronic device, the right side surface of the virtual object can be directly determined as the mapping surface. Optionally, each touch surface may also correspond to at least two surfaces of the virtual object, and the at least two surfaces may be determined as the mapping surface. For example, the electronic device and the virtual object are both rectangular parallelepipes. If the touch surface is the right side surface and the lower side surface of the electronic device, the right side surface and the lower side surface of the virtual object may be directly determined as the mapping surface.
若虚拟对象是表面不规则的三维对象,即,电子设备的触控表面与虚拟对象的表面不对应,需要将虚拟对象置于立体模型中,将立体模型中与触控表面对应的表面确定为映射表面。If the virtual object is an irregular three-dimensional object, that is, the touch surface of the electronic device does not correspond to the surface of the virtual object, the virtual object needs to be placed in the stereo model, and the surface corresponding to the touch surface in the stereo model is determined as Map the surface.
其中,立体模型是与电子设备的外表面几何模型对应的模型。比如,当电子设备是长方体时,立体模型也是长方体;当电子设备是圆柱体时,立体模型也是圆柱体。Wherein, the three-dimensional model is a model corresponding to the geometric model of the outer surface of the electronic device. For example, when the electronic device is a rectangular parallelepiped, the three-dimensional model is also a rectangular parallelepiped; when the electronic device is a cylinder, the three-dimensional model is also a cylinder.
其中,立体模型用于固定虚拟物体。本实施例中,立体模型可以容纳虚拟对象,比如,当立体模型是长方体时,立体模型的长、宽、高需要分别大于等于虚拟对象的长、宽、高。或者,立体模型的大小也可以小于虚拟物体的大小。Among them, the stereo model is used to fix virtual objects. In this embodiment, the stereo model can accommodate the virtual object. For example, when the stereo model is a rectangular parallelepiped, the length, width, and height of the stereo model need to be greater than or equal to the length, width, and height of the virtual object, respectively. Alternatively, the size of the solid model may also be smaller than the size of the virtual object.
由于立体模型与电子设备的外表面几何模型对应,因此,电子设备的每个触控表面都唯一对应于立体模型的一个表面,此时可以直接将立体模型中与触控表面对应的表面确定为映射表面,而不需要映射到虚拟对象上,达到了简化对操作的映射过程的效果。比如,电子设备和立体模型都是长方体,假设触控表面是电子设备的右侧表面,则可以直接将立体模型的右侧表面确定为映射表面。Since the stereo model corresponds to the geometric model of the outer surface of the electronic device, each touch surface of the electronic device uniquely corresponds to one surface of the stereo model, and the surface corresponding to the touch surface in the stereo model can be directly determined as The mapping surface, without the need to map to a virtual object, achieves the effect of simplifying the mapping process for operations. For example, both the electronic device and the stereo model are cuboids. Assuming that the touch surface is the right side surface of the electronic device, the right side surface of the stereo model can be directly determined as the mapping surface.
请参考图2B所示的电子设备和立体模型的示意图,其中,虚拟对象是三维的桌子,电子设备和立体模型都是长方体,且虚拟对象位于立体模型中。假设触控表面是电子设备的右侧表面A,则映射表面是立体模型的右侧表面A’。 Please refer to the schematic diagram of the electronic device and the stereo model shown in FIG. 2B, wherein the virtual object is a three-dimensional table, the electronic device and the stereo model are both rectangular parallelepipeds, and the virtual object is located in the stereo model. Assuming that the touch surface is the right side surface A of the electronic device, the mapping surface is the right side surface A' of the three-dimensional model.
可选的,每个触控表面还可以对应于立体模型的至少两个表面,此时可以将这至少两个表面确定为映射表面。比如,电子设备和立体模型都是长方体,假设触控表面是电子设备的右侧表面和下侧表面,则可以直接将立体模型的右侧表面和下侧表面确定为映射表面。Optionally, each touch surface may also correspond to at least two surfaces of the stereo model, and the at least two surfaces may be determined as the mapping surface. For example, both the electronic device and the stereo model are cuboids. Assuming that the touch surface is the right side surface and the lower side surface of the electronic device, the right side surface and the lower side surface of the three-dimensional model can be directly determined as the mapping surface.
步骤203,将操作映射为在映射表面上触发的操作。In step 203, the operation is mapped to an operation triggered on the mapping surface.
比如,当操作是在触控表面上触发的平移操作时,可以将该操作映射为在映射表面上触发的平移操作;当操作是在触控表面上触发的旋转操作时,可以将该操作映射为在映射表面上触发的旋转操作。For example, when the operation is a panning operation triggered on the touch surface, the operation may be mapped to a panning operation triggered on the mapping surface; when the operation is a rotation operation triggered on the touch surface, the operation may be mapped The rotation operation that is triggered on the mapped surface.
由于映射表面对应于虚拟对象中未在屏幕中显示的至少一个表面,因此,可以将操作直接作用于虚拟对象中未在屏幕中显示的至少一个表面上,而不需要先操作虚拟对象来将未在屏幕中显示的至少一个表面显示在屏幕中,再将操作作用于该显示的表面,可以节省操作。例如,虚拟对象是三维人物且屏幕中显示的是人物的正面,若用户需要击打人物的背面,此时只需要在电子设备对应于人物背面的外表面(例如电子设备屏幕相对的背面)上进行击打操作(例如单击操作),即只需要执行一个单击操作就可实现对人物背面的击打,而不需要先将人物背面旋转到屏幕中进行显示,再对屏幕进行击打操作(例如单击操作)。Since the mapping surface corresponds to at least one surface of the virtual object that is not displayed on the screen, the operation can be directly applied to at least one surface of the virtual object that is not displayed on the screen, without first operating the virtual object to At least one surface displayed on the screen is displayed on the screen, and then an operation is applied to the surface of the display, which saves operation. For example, the virtual object is a three-dimensional character and the front side of the character is displayed on the screen. If the user needs to hit the back of the character, only the outer surface of the electronic device corresponding to the back of the character (for example, the opposite side of the screen of the electronic device) is needed. Perform a hit operation (such as a click operation), that is, you only need to perform a single click to achieve a hit on the back of the character without first rotating the back of the character to the screen for display, and then hitting the screen. (eg click action).
步骤204,根据操作改变虚拟对象的显示状态。 Step 204, changing the display state of the virtual object according to the operation.
本实施例提供了两种根据操作改变虚拟对象的显示状态的实现方式,下面分别对这两种实现方式进行说明:This embodiment provides two implementation manners for changing the display state of a virtual object according to an operation. The following two implementation manners are respectively described:
在第一种实现方式中,根据操作改变虚拟对象的显示状态,包括:In the first implementation manner, changing the display state of the virtual object according to the operation includes:
1)获取操作在触控表面上的触点,和触点在触控表面上的运动轨迹;1) acquiring a contact operated on the touch surface and a movement track of the contact on the touch surface;
2)根据触控表面的区域和映射表面的区域之间的比例关系,将触点映射到映射表面上,得到映射点;2) mapping the contact to the mapping surface according to the proportional relationship between the area of the touch surface and the area of the mapping surface to obtain a mapping point;
3)根据触控表面的区域和映射表面的区域之间的比例关系,将运动轨迹映射到映射表面上,得到映射轨迹;3) mapping the motion trajectory to the mapping surface according to the proportional relationship between the area of the touch surface and the area of the mapping surface, to obtain a mapping trajectory;
4)根据映射点控制虚拟对象的显示状态随映射轨迹变化。4) Control the display state of the virtual object according to the mapping point to change with the mapping trajectory.
本实施例中,电子设备可以将触点映射到映射表面上,得到映射点;再将运动轨迹映射到映射表面上,得到映射轨迹,控制虚拟对象随映射轨迹变化,使得虚拟对象的显示状态可以随着用户触发的操作变化而变化,提高了用户体验。触点是用户触发该操作时与触控表面的接触点。 In this embodiment, the electronic device can map the contact to the mapping surface to obtain a mapping point; then map the motion trajectory to the mapping surface to obtain a mapping trajectory, and control the virtual object to change with the mapping trajectory, so that the display state of the virtual object can be The user experience is improved as the user-triggered operation changes. The contact is the point of contact with the touch surface when the user triggers the operation.
其中,在得到映射点时,若映射点是映射表面上的默认点,此时可以直接读取该默认点;若映射点不是映射表面上的默认点,此时可以获取触控表面的区域和映射表面的区域之间的比例关系,根据该比例关系得到映射点。Wherein, when the mapping point is obtained, if the mapping point is the default point on the mapping surface, the default point can be directly read; if the mapping point is not the default point on the mapping surface, the area of the touch surface can be obtained at this time. The proportional relationship between the regions of the mapping surface, and the mapping points are obtained according to the proportional relationship.
具体地,根据触控表面的区域和映射表面的区域之间的比例关系,将触点射到映射表面上,得到映射点,包括:Specifically, according to the proportional relationship between the area of the touch surface and the area of the mapping surface, the contact is shot onto the mapping surface to obtain a mapping point, including:
1)获取触点在触控表面上的触点坐标;1) acquiring the contact coordinates of the contact on the touch surface;
2)根据触控表面的区域和映射表面的区域之间的比例关系,将触点坐标映射到映射表面上,得到映射点坐标;2) mapping the contact coordinates onto the mapping surface according to the proportional relationship between the area of the touch surface and the area of the mapping surface, and obtaining the coordinates of the mapping point;
3)将映射点坐标所对应的点确定为映射点。3) Determine the point corresponding to the coordinates of the map point as the map point.
比如,触控表面的区域是长为5厘米、宽为10厘米的长方形区域,映射表面的区域是长为2.5厘米、宽为5厘米的长方形区域,假设触点坐标是(2.5,5),则计算得到的映射点坐标是(1.25,2.5)。For example, the area of the touch surface is a rectangular area of 5 cm in length and 10 cm in width, and the area of the mapping surface is a rectangular area of 2.5 cm in length and 5 cm in width, assuming that the contact coordinates are (2.5, 5), Then the calculated map point coordinates are (1.25, 2.5).
请参考图2C所示的虚拟对象的第一种变化示意图,其中,点a是在电子设备的右侧表面上的触点,点a’是在立体模型的右侧表面上的映射点。Referring to the first variation of the virtual object shown in Fig. 2C, point a is a contact on the right side surface of the electronic device, and point a' is a mapping point on the right side surface of the stereo model.
在将触点的运动轨迹映射为映射轨迹时,可以根据上述触点的映射方式,将运动轨迹中的每一个点都映射到映射表面上,得到每个点的映射点,将所有的映射点进行组合,得到映射轨迹。When mapping the motion track of the contact to the mapping track, each point in the motion track can be mapped onto the mapping surface according to the mapping manner of the above contact points, and the mapping points of each point are obtained, and all the mapping points are obtained. Combine to get the mapping trajectory.
本实施例中,根据映射点控制虚拟对象的显示姿态随映射轨迹变化,包括:In this embodiment, the display posture of the virtual object is controlled according to the mapping point to change according to the mapping trajectory, including:
1)当映射轨迹用于指示平移操作时,确定映射轨迹所指示的移动方向和距离,控制虚拟对象跟随映射点,按照移动方向移动该距离;1) when the mapping trajectory is used to indicate the panning operation, determining the moving direction and distance indicated by the mapping trajectory, controlling the virtual object to follow the mapping point, and moving the distance according to the moving direction;
2)当映射轨迹用于指示旋转操作时,确定映射轨迹的旋转方向和角度,控制虚拟对象跟随映射点,按照旋转方向旋转该角度。2) When the mapping trajectory is used to indicate the rotation operation, determine the rotation direction and angle of the mapping trajectory, control the virtual object to follow the mapping point, and rotate the angle according to the rotation direction.
第一,当映射轨迹用于指示平移操作时,请参考图2C,其中,操作是在电子设备的右侧表面上触发的平移操作,触点为a,运动轨迹指示由触点a开始向下移动第一距离。根据触点a和运动轨迹得到映射点a’和映射轨迹,该映射轨迹指示由映射点a’开始向下移动第二距离。图2C的左示图中示出了触点a和运动轨迹、映射点a’和映射轨迹之间的对应关系,以及虚拟对象在按照映射轨迹运动前的显示状态,图2C的右示图中示出了虚拟对象按照映射轨迹运动后的显示状态。First, when the mapping trajectory is used to indicate the panning operation, please refer to FIG. 2C, where the operation is a panning operation triggered on the right side surface of the electronic device, the contact is a, and the motion trajectory indication starts from the contact a. Move the first distance. A mapping point a' and a mapping trajectory are obtained based on the contact a and the motion trajectory, which indicates that the second distance is moved downward by the mapping point a'. The left diagram of FIG. 2C shows the correspondence between the contact a and the motion trajectory, the mapping point a', and the mapping trajectory, and the display state of the virtual object before moving according to the mapping trajectory, in the right diagram of FIG. 2C. The display state after the virtual object moves according to the mapping trajectory is shown.
第二,当映射轨迹用于指示旋转操作时,请参考图2D所示的虚拟对象的第二种变化示意图,其中,操作是在电子设备的后表面上触发的旋转操作,运 动轨迹指示由触点a(位于电子设备背面,图2D中未示出)开始逆时针旋转预定角度。根据触点a和运动轨迹得到映射点a’和映射轨迹,该映射轨迹指示由映射点a’开始逆时针旋转预定角度,请参考图2D的右示图中的虚线箭头。图2D的左示图中示出了虚拟对象在按照映射轨迹运动前的显示状态,图2D的右示图中示出了虚拟对象按照映射轨迹运动后的显示状态。Second, when the mapping track is used to indicate the rotation operation, please refer to the second variation diagram of the virtual object shown in FIG. 2D, wherein the operation is a rotation operation triggered on the rear surface of the electronic device. The trajectory indication is rotated counterclockwise by a predetermined angle by contact a (located on the back of the electronic device, not shown in Figure 2D). The mapping point a' and the mapping trajectory are obtained based on the contact a and the motion trajectory, which indicates that the predetermined angle is rotated counterclockwise by the mapping point a', please refer to the dotted arrow in the right diagram of Fig. 2D. The left diagram of FIG. 2D shows the display state of the virtual object before moving according to the mapping trajectory, and the right diagram of FIG. 2D shows the display state of the virtual object after moving according to the mapping trajectory.
本实施例中,操作的触点可以为至少一个。比如,当用户通过一根手指在触控表面上触发操作时,操作的触点为一个;当用户通过多根手指或通过手的其他部位在触控表面上触发操作时,操作的触点为至少两个。下面以用户通过手的虎口部位来操作虚拟对象为例来对虚拟对象操作方法进行介绍,此时,操作在触控表面上的触点为两个,两个触点在任意时刻的旋转方向相反。In this embodiment, the operated contacts may be at least one. For example, when the user triggers an operation on the touch surface by a finger, the contact of the operation is one; when the user triggers the operation on the touch surface through multiple fingers or through other parts of the hand, the operated contact is At least two. In the following, the virtual object operation method is introduced by the user operating the virtual object through the tiger's mouth part. At this time, the contact on the touch surface is two, and the two contacts rotate in opposite directions at any time. .
请参考图2E所示的操作虚拟对象的使用场景示意图,当电子设备位于手的虎口位置时,虎口与触控表面的触点包括触点A和触点B,由于触控表面是电子设备的下表面,因此,映射表面是立体模型的下表面,此时,电子设备可以在立体模型的下表面确定与触点A对应的映射点a和与触点B对应的映射点b。Please refer to the schematic diagram of the operation scenario of the operation virtual object shown in FIG. 2E. When the electronic device is located at the tiger's mouth position of the hand, the contact between the tiger mouth and the touch surface includes the contact A and the contact B, since the touch surface is an electronic device. The lower surface, therefore, the mapping surface is the lower surface of the three-dimensional model. At this time, the electronic device can determine the mapping point a corresponding to the contact A and the mapping point b corresponding to the contact B on the lower surface of the three-dimensional model.
当用户逆时针旋转手时,触点A和触点B同时沿逆时针方向运动且触点A和触点B的旋转方向相反。假设某一个时刻,映射点a和映射点b的运动方向如图2E所示。When the user rotates the hand counterclockwise, the contact A and the contact B simultaneously move in the counterclockwise direction and the rotation directions of the contact A and the contact B are opposite. Suppose that at a certain moment, the moving direction of the mapping point a and the mapping point b is as shown in Fig. 2E.
在第二种实现方式中,根据操作改变虚拟对象的显示状态,包括:In the second implementation manner, changing the display state of the virtual object according to the operation includes:
1)在预设的对应关系中查找与操作对应的显示指令,显示指令用于指示对虚拟对象执行缩放操作、平移操作和旋转操作中的至少一种;1) searching, in a preset correspondence, a display instruction corresponding to the operation, where the display instruction is used to instruct at least one of a zoom operation, a panning operation, and a rotation operation on the virtual object;
2)根据作用于映射表面上的显示指令改变虚拟对象的显示状态。2) Changing the display state of the virtual object according to the display instruction acting on the mapping surface.
其中,对应关系用于存储操作与显示指令之间的关系。比如,同时作用于触控表面的两个相反的滑动操作对应于放大操作、同时作用于触控表面的两个相对的滑动操作对应于缩小操作、单击操作对应于平移操作,双击操作对应于旋转操作等,本实施例不对对应关系进行限定。本实施例中,缩放操作的缩放比例可以是固定的,也可以与操作相关。在一种可能的实现方式中,操作的滑动距离与缩放比例呈正相关关系。比如,相反的滑动操作中1厘米的滑动距离对应于200%的放大比例;相对的滑动操作中1厘米的滑动距离对应于50%的缩小比例等。The correspondence relationship is used to store the relationship between the operation and the display instruction. For example, two opposite sliding operations simultaneously acting on the touch surface correspond to the zooming operation, while two opposite sliding operations acting on the touch surface correspond to the zooming operation, the click operation corresponds to the panning operation, and the double clicking operation corresponds to the zooming operation. The rotation operation or the like does not limit the correspondence in this embodiment. In this embodiment, the scaling of the scaling operation may be fixed or related to the operation. In one possible implementation, the sliding distance of the operation is positively correlated with the scaling. For example, the sliding distance of 1 cm in the opposite sliding operation corresponds to a magnification ratio of 200%; the sliding distance of 1 cm in the relative sliding operation corresponds to a reduction ratio of 50% or the like.
平移操作的移动方向和距离可以是固定的,也可以与操作相关。在一种可 能的实现方式中,操作的操作时长与距离呈正相关关系。比如,单击操作的操作时长是1秒时,对应于2厘米的距离;单击操作的操作时长是2秒时,对应于5厘米的距离。操作的类型与移动方向相关。比如,操作类型是单击操作时,移动方向向左;操作类型是双击操作时,移动方向向右。The direction and distance of movement of the panning operation can be fixed or related to the operation. In one kind In the energy implementation, the operation duration of the operation is positively related to the distance. For example, when the operation time of the click operation is 1 second, it corresponds to a distance of 2 cm; when the operation time of the click operation is 2 seconds, it corresponds to a distance of 5 cm. The type of operation is related to the direction of movement. For example, when the operation type is a click operation, the movement direction is to the left; when the operation type is a double-click operation, the movement direction is to the right.
同样的,旋转操作的旋转方向和角度可以是固定的,也可以与操作相关。在一种可能的实现方式中,操作的操作时长与角度呈正相关关系。比如,单击操作的操作时长是1秒时,对应于30°;单击操作的操作时长是2秒时,对应于60°。或者,操作的类型与移动方向相关。比如,操作类型是单击操作时,旋转方向是逆时针;操作类型是双击操作时,旋转方向是顺时针。Similarly, the direction and angle of rotation of the rotary operation can be fixed or related to operation. In one possible implementation, the operational duration of the operation is positively correlated with the angle. For example, when the operation time of the click operation is 1 second, it corresponds to 30°; when the operation time of the click operation is 2 seconds, it corresponds to 60°. Alternatively, the type of operation is related to the direction of movement. For example, when the operation type is a click operation, the rotation direction is counterclockwise; when the operation type is a double-click operation, the rotation direction is clockwise.
在确定了显示指令后,电子设备可以根据作用于映射表面上的显示指令改变虚拟对象的显示状态。具体地,电子设备可以在映射表面上设置默认点,控制虚拟对象跟随默认点,按照移动方向移动某一距离;或,控制虚拟对象跟随映射点,按照旋转方向旋转某一角度。具体平移和旋转过程详见上述描述,此处不赘述。After determining the display instruction, the electronic device can change the display state of the virtual object according to the display instruction acting on the mapping surface. Specifically, the electronic device may set a default point on the mapping surface, control the virtual object to follow the default point, and move a certain distance according to the moving direction; or control the virtual object to follow the mapping point and rotate an angle according to the rotation direction. The specific translation and rotation process is described in detail above, and will not be described here.
可选的,当屏幕中显示有至少两个虚拟对象时,可以将这两个虚拟对象作为一个整体进行操作,也可以从中选定一个虚拟对象进行操作,操作方法如上所述,此处不赘述。Optionally, when at least two virtual objects are displayed on the screen, the two virtual objects may be operated as a whole, or a virtual object may be selected for operation. The operation method is as described above, and is not described herein. .
综上所述,本发明实施例提供的虚拟对象操作方法,通过获取在一个触控表面上触发的操作,触控表面设置在电子设备除屏幕之外的外表面上;将触控表面映射到虚拟对象上,得到映射表面,虚拟对象是在屏幕中显示的三维对象,映射表面对应于虚拟对象中未在屏幕中显示的至少一个表面;将操作映射为在映射表面上触发的操作;根据操作改变虚拟对象的显示状态,可以根据电子设备是三维对象的特性,在屏幕外的触控表面上执行操作,从而将操作直接映射到虚拟对象相应的表面上,解决了通过屏幕控制三维对象中未在屏幕中显示的表面,通常需要多个操作来完成,操作效率低的问题,达到了提高操作效率的效果。In summary, the virtual object operation method provided by the embodiment of the present invention, by acquiring an operation triggered on a touch surface, the touch surface is disposed on an outer surface of the electronic device other than the screen; mapping the touch surface to On the virtual object, a mapping surface is obtained, the virtual object is a three-dimensional object displayed on the screen, and the mapping surface corresponds to at least one surface of the virtual object that is not displayed on the screen; the operation is mapped to an operation triggered on the mapping surface; Changing the display state of the virtual object can perform operations on the off-screen touch surface according to the characteristics of the electronic device being a three-dimensional object, thereby directly mapping the operation to the corresponding surface of the virtual object, thereby solving the problem of controlling the three-dimensional object through the screen. The surface displayed on the screen usually requires multiple operations to complete, and the problem of low operational efficiency achieves an effect of improving operational efficiency.
另外,通过将虚拟对象置于立体模型中,立体模型是与电子设备的外表面几何模型对应的模型;将立体模型中与触控表面对应的至少一个表面确定为映射表面,可以在虚拟对象是表面不规则的三维对象时,可以将虚拟对象置于与电子设备的外表面几何模型对应的立体模型中,由于触控表面对应于一个映射表面,因此,在触控表面上执行的操作可以映射为在映射表面上执行的操作, 而不需要映射到虚拟对象上,达到了简化对操作的映射过程的效果。In addition, by placing the virtual object in the stereo model, the stereo model is a model corresponding to the outer surface geometric model of the electronic device; at least one surface corresponding to the touch surface in the stereo model is determined as a mapping surface, and the virtual object may be When the surface of the three-dimensional object is irregular, the virtual object can be placed in a stereo model corresponding to the geometric model of the outer surface of the electronic device. Since the touch surface corresponds to a mapping surface, operations performed on the touch surface can be mapped. For the operations performed on the mapped surface, It does not need to be mapped to a virtual object, and the effect of simplifying the mapping process to the operation is achieved.
请参考图3,其示出了本发明实施例提供的一种虚拟对象操作装置的结构示意图,该虚拟对象操作装置应用于包含屏幕和触控表面的电子设备中,触控表面设置在电子设备除屏幕之外的外表面上,可以包括:Please refer to FIG. 3 , which is a schematic structural diagram of a virtual object operating device according to an embodiment of the present invention. The virtual object operating device is applied to an electronic device including a screen and a touch surface, and the touch surface is disposed on the electronic device. On the outer surface other than the screen, it may include:
操作获取模块301,用于获取在一个触控表面上触发的操作;The operation obtaining module 301 is configured to acquire an operation triggered on a touch surface;
表面映射模块302,用于将触控表面映射到虚拟对象上,得到映射表面,虚拟对象是在屏幕中显示的三维对象,映射表面对应于虚拟对象中未在屏幕中显示的至少一个表面;The surface mapping module 302 is configured to map the touch surface to the virtual object to obtain a mapping surface, where the virtual object is a three-dimensional object displayed on the screen, and the mapping surface corresponds to at least one surface of the virtual object that is not displayed on the screen;
操作映射模块303,用于将操作获取模块301获取到的操作映射为在表面映射模块302得到的映射表面上触发的操作;The operation mapping module 303 is configured to map the operation acquired by the operation obtaining module 301 to an operation triggered on the mapping surface obtained by the surface mapping module 302.
状态改变模块304,用于根据操作映射模块303映射的操作改变虚拟对象的显示状态。The state change module 304 is configured to change the display state of the virtual object according to the operation mapped by the operation mapping module 303.
综上所述,本发明实施例提供的虚拟对象操作装置,通过获取在一个触控表面上触发的操作,触控表面设置在电子设备除屏幕之外的外表面上;将触控表面映射到虚拟对象上,得到映射表面,虚拟对象是在屏幕中显示的三维对象,映射表面对应于虚拟对象中未在屏幕中显示的至少一个表面;将操作映射为在映射表面上触发的操作;根据操作改变虚拟对象的显示状态,可以根据电子设备是三维对象的特性,在屏幕外的触控表面上执行操作,从而将操作直接映射到虚拟对象相应的表面上,解决了通过屏幕控制三维对象中未在屏幕中显示的表面,通常需要多个操作来完成,操作效率低的问题,达到了提高操作效率的效果。In summary, the virtual object operating device provided by the embodiment of the present invention obtains an operation triggered on a touch surface, and the touch surface is disposed on an outer surface of the electronic device other than the screen; mapping the touch surface to On the virtual object, a mapping surface is obtained, the virtual object is a three-dimensional object displayed on the screen, and the mapping surface corresponds to at least one surface of the virtual object that is not displayed on the screen; the operation is mapped to an operation triggered on the mapping surface; Changing the display state of the virtual object can perform operations on the off-screen touch surface according to the characteristics of the electronic device being a three-dimensional object, thereby directly mapping the operation to the corresponding surface of the virtual object, thereby solving the problem of controlling the three-dimensional object through the screen. The surface displayed on the screen usually requires multiple operations to complete, and the problem of low operational efficiency achieves an effect of improving operational efficiency.
请参考图3,本发明实施例还提供了一种虚拟对象操作装置,该虚拟对象操作装置应用于包含屏幕和触控表面的电子设备中,触控表面设置在电子设备除屏幕之外的外表面上,可以包括:Referring to FIG. 3, an embodiment of the present invention further provides a virtual object operating device, which is applied to an electronic device including a screen and a touch surface, and the touch surface is disposed outside the screen of the electronic device. On the surface, it can include:
操作获取模块301,用于获取在一个触控表面上触发的操作;The operation obtaining module 301 is configured to acquire an operation triggered on a touch surface;
表面映射模块302,用于将触控表面映射到虚拟对象上,得到映射表面,虚拟对象是在屏幕中显示的三维对象,映射表面对应于虚拟对象中未在屏幕中显示的至少一个表面;The surface mapping module 302 is configured to map the touch surface to the virtual object to obtain a mapping surface, where the virtual object is a three-dimensional object displayed on the screen, and the mapping surface corresponds to at least one surface of the virtual object that is not displayed on the screen;
操作映射模块303,用于将操作获取模块301获取到的操作映射为在表面 映射模块302得到的映射表面上触发的操作;An operation mapping module 303, configured to map the operation acquired by the operation obtaining module 301 to be on the surface The operation triggered on the mapping surface obtained by the mapping module 302;
状态改变模块304,用于根据操作映射模块303映射的操作改变虚拟对象的显示状态。The state change module 304 is configured to change the display state of the virtual object according to the operation mapped by the operation mapping module 303.
可选的,操作映射模块303,具体用于:Optionally, the operation mapping module 303 is specifically configured to:
将虚拟对象置于立体模型中,立体模型是与电子设备的外表面几何模型对应的模型;The virtual object is placed in a stereo model, which is a model corresponding to the geometric model of the outer surface of the electronic device;
将立体模型中与触控表面对应的至少一个表面确定为映射表面。At least one surface corresponding to the touch surface in the stereo model is determined as a mapping surface.
可选的,状态改变模块304,具体用于:Optionally, the state change module 304 is specifically configured to:
获取操作在触控表面上的触点,和触点在触控表面上的运动轨迹;Acquiring the contact on the touch surface and the movement track of the contact on the touch surface;
根据触控表面的区域和映射表面的区域之间的比例关系,将触点映射到映射表面上,得到映射点;Mapping the contact to the mapping surface according to a proportional relationship between the area of the touch surface and the area of the mapping surface to obtain a mapping point;
根据触控表面的区域和映射表面的区域之间的比例关系,将运动轨迹映射到映射表面上,得到映射轨迹;According to the proportional relationship between the area of the touch surface and the area of the mapping surface, the motion trajectory is mapped onto the mapping surface to obtain a mapping trajectory;
根据映射点控制虚拟对象的显示状态随映射轨迹变化。The display state of the virtual object is controlled to vary with the mapping trajectory according to the mapping point.
可选的,状态改变模块304,具体用于:Optionally, the state change module 304 is specifically configured to:
获取触点在触控表面上的触点坐标;Obtaining the contact coordinates of the contact on the touch surface;
根据触控表面的区域和映射表面的区域之间的比例关系,将触点坐标映射到映射表面上,得到映射点坐标;According to the proportional relationship between the area of the touch surface and the area of the mapping surface, the contact coordinates are mapped onto the mapping surface to obtain the mapping point coordinates;
将映射点坐标所对应的点确定为映射点。The point corresponding to the coordinates of the map point is determined as a map point.
可选的,状态改变模块304,具体用于:Optionally, the state change module 304 is specifically configured to:
当映射轨迹用于指示平移操作时,确定映射轨迹所指示的移动方向和距离,控制虚拟对象跟随映射点,按照移动方向移动距离;When the mapping trajectory is used to indicate a panning operation, determining a moving direction and a distance indicated by the mapping trajectory, controlling the virtual object to follow the mapping point, and moving the distance according to the moving direction;
当映射轨迹用于指示旋转操作时,确定映射轨迹的旋转方向和角度,控制虚拟对象跟随映射点,按照旋转方向旋转角度。When the mapping trajectory is used to indicate the rotation operation, the rotation direction and angle of the mapping trajectory are determined, and the virtual object is controlled to follow the mapping point, and the angle is rotated according to the rotation direction.
可选的,操作在触控表面上的触点为两个,两个触点在任意时刻的旋转方向相反。Optionally, there are two contacts operating on the touch surface, and the two contacts rotate in opposite directions at any time.
可选的,状态改变模块304,还用于:Optionally, the state change module 304 is further configured to:
在预设的对应关系中查找与操作对应的显示指令,显示指令用于指示对虚拟对象执行缩放操作、平移操作和旋转操作中的至少一种;Searching, in a preset correspondence, a display instruction corresponding to the operation, where the display instruction is used to indicate performing at least one of a zoom operation, a panning operation, and a rotating operation on the virtual object;
根据作用于映射表面上的显示指令改变虚拟对象的显示状态。The display state of the virtual object is changed according to a display instruction acting on the mapping surface.
综上所述,本发明实施例提供的虚拟对象操作装置,通过获取在一个触控 表面上触发的操作,触控表面设置在电子设备除屏幕之外的外表面上;将触控表面映射到虚拟对象上,得到映射表面,虚拟对象是在屏幕中显示的三维对象,映射表面对应于虚拟对象中未在屏幕中显示的至少一个表面;将操作映射为在映射表面上触发的操作;根据操作改变虚拟对象的显示状态,可以根据电子设备是三维对象的特性,在屏幕外的触控表面上执行操作,从而将操作直接映射到虚拟对象相应的表面上,解决了通过屏幕控制三维对象中未在屏幕中显示的表面,通常需要多个操作来完成,操作效率低的问题,达到了提高操作效率的效果。In summary, the virtual object operating device provided by the embodiment of the present invention is obtained by acquiring a touch The surface-triggered operation, the touch surface is disposed on an outer surface of the electronic device other than the screen; the touch surface is mapped onto the virtual object to obtain a mapping surface, and the virtual object is a three-dimensional object displayed on the screen, and the mapping surface corresponds to At least one surface not displayed on the screen in the virtual object; mapping the operation to an operation triggered on the mapping surface; changing the display state of the virtual object according to the operation, according to the characteristics of the electronic device being a three-dimensional object, touching on the screen Performing operations on the control surface, thereby directly mapping the operation to the corresponding surface of the virtual object, solves the problem of controlling the surface not displayed on the screen in the three-dimensional object through the screen, usually requires multiple operations to complete, and the operation efficiency is low, reaching The effect of improving operational efficiency.
另外,通过将虚拟对象置于立体模型中,立体模型是与电子设备的外表面几何模型对应的模型;将立体模型中与触控表面对应的至少一个表面确定为映射表面,可以在虚拟对象是表面不规则的三维对象时,可以将虚拟对象置于与电子设备的外表面几何模型对应的立体模型中,由于触控表面对应于一个映射表面,因此,在触控表面上执行的操作可以映射为在映射表面上执行的操作,而不需要映射到虚拟对象上,达到了简化对操作的映射过程的效果。In addition, by placing the virtual object in the stereo model, the stereo model is a model corresponding to the outer surface geometric model of the electronic device; at least one surface corresponding to the touch surface in the stereo model is determined as a mapping surface, and the virtual object may be When the surface of the three-dimensional object is irregular, the virtual object can be placed in a stereo model corresponding to the geometric model of the outer surface of the electronic device. Since the touch surface corresponds to a mapping surface, operations performed on the touch surface can be mapped. The effect of simplifying the mapping process to operations is achieved for operations performed on the mapped surface without mapping to virtual objects.
请参考图4,其示出了本发明实施例提供的一种虚拟对象操作装置的结构示意图,该虚拟对象操作装置应用于包含屏幕和触控表面的电子设备中,触控表面设置在电子设备除屏幕之外的外表面上,装置包括:总线401,以及连接到总线401的处理器402、存储器403、发射器404和接收器405。其中,存储器403用于存储若干个指令,指令被配置成由处理器402执行;Please refer to FIG. 4 , which is a schematic structural diagram of a virtual object operating device according to an embodiment of the present invention. The virtual object operating device is applied to an electronic device including a screen and a touch surface, and the touch surface is disposed on the electronic device. In addition to the external surface of the screen, the apparatus includes a bus 401, and a processor 402, a memory 403, a transmitter 404, and a receiver 405 connected to the bus 401. Wherein, the memory 403 is configured to store a plurality of instructions, the instructions being configured to be executed by the processor 402;
接收器405,用于获取在一个触控表面上触发的操作;a receiver 405, configured to acquire an operation triggered on a touch surface;
处理器402,用于将触控表面映射到虚拟对象上,得到映射表面,虚拟对象是在屏幕中显示的三维对象,映射表面对应于虚拟对象中未在屏幕中显示的至少一个表面;The processor 402 is configured to map the touch surface to the virtual object to obtain a mapping surface, where the virtual object is a three-dimensional object displayed on the screen, and the mapping surface corresponds to at least one surface of the virtual object that is not displayed on the screen;
处理器402,用于将接收器405接收到的操作映射为在映射表面上触发的操作;The processor 402 is configured to map the operation received by the receiver 405 to an operation triggered on the mapping surface;
处理器402,用于根据操作改变虚拟对象的显示状态。The processor 402 is configured to change a display state of the virtual object according to the operation.
综上所述,本发明实施例提供的虚拟对象操作装置,通过获取在一个触控表面上触发的操作,触控表面设置在电子设备除屏幕之外的外表面上;将触控表面映射到虚拟对象上,得到映射表面,虚拟对象是在屏幕中显示的三维对象,映射表面对应于虚拟对象中未在屏幕中显示的至少一个表面;将操作映射为在 映射表面上触发的操作;根据操作改变虚拟对象的显示状态,可以根据电子设备是三维对象的特性,在屏幕外的触控表面上执行操作,从而将操作直接映射到虚拟对象相应的表面上,解决了通过屏幕控制三维对象中未在屏幕中显示的表面,通常需要多个操作来完成,操作效率低的问题,达到了提高操作效率的效果。In summary, the virtual object operating device provided by the embodiment of the present invention obtains an operation triggered on a touch surface, and the touch surface is disposed on an outer surface of the electronic device other than the screen; mapping the touch surface to On the virtual object, a mapping surface is obtained, the virtual object is a three-dimensional object displayed on the screen, and the mapping surface corresponds to at least one surface of the virtual object that is not displayed on the screen; mapping the operation to Mapping the operation triggered on the surface; changing the display state of the virtual object according to the operation, according to the characteristics of the electronic device being a three-dimensional object, performing an operation on the off-screen touch surface, thereby directly mapping the operation to the corresponding surface of the virtual object, The invention solves the problem that the surface not displayed on the screen in the three-dimensional object is controlled by the screen, usually requires multiple operations to complete, and the operation efficiency is low, and the effect of improving the operation efficiency is achieved.
请参考图4,本发明实施例还提供了一种虚拟对象操作装置,该虚拟对象操作装置应用于包含屏幕和触控表面的电子设备中,触控表面设置在电子设备除屏幕之外的外表面上,装置包括:总线401,以及连接到总线401的处理器402、存储器403、发射器404和接收器405。其中,存储器403用于存储若干个指令,指令被配置成由处理器402执行;Referring to FIG. 4, an embodiment of the present invention further provides a virtual object operating device, which is applied to an electronic device including a screen and a touch surface, and the touch surface is disposed outside the screen of the electronic device. In the surface, the apparatus includes a bus 401, and a processor 402, a memory 403, a transmitter 404, and a receiver 405 connected to the bus 401. Wherein, the memory 403 is configured to store a plurality of instructions, the instructions being configured to be executed by the processor 402;
接收器405,用于获取在一个触控表面上触发的操作;a receiver 405, configured to acquire an operation triggered on a touch surface;
处理器402,用于将触控表面映射到虚拟对象上,得到映射表面,虚拟对象是在屏幕中显示的三维对象,映射表面对应于虚拟对象中未在屏幕中显示的至少一个表面;The processor 402 is configured to map the touch surface to the virtual object to obtain a mapping surface, where the virtual object is a three-dimensional object displayed on the screen, and the mapping surface corresponds to at least one surface of the virtual object that is not displayed on the screen;
处理器402,用于将接收器405接收到的操作映射为在映射表面上触发的操作;The processor 402 is configured to map the operation received by the receiver 405 to an operation triggered on the mapping surface;
处理器402,用于根据操作改变虚拟对象的显示状态。The processor 402 is configured to change a display state of the virtual object according to the operation.
可选的,处理器402,具体用于:Optionally, the processor 402 is specifically configured to:
将虚拟对象置于立体模型中,立体模型是与电子设备的外表面几何模型对应的模型;The virtual object is placed in a stereo model, which is a model corresponding to the geometric model of the outer surface of the electronic device;
将立体模型中与触控表面对应的至少一个表面确定为映射表面。At least one surface corresponding to the touch surface in the stereo model is determined as a mapping surface.
可选的,处理器402,具体用于:Optionally, the processor 402 is specifically configured to:
获取操作在触控表面上的触点,和触点在触控表面上的运动轨迹;Acquiring the contact on the touch surface and the movement track of the contact on the touch surface;
根据触控表面的区域和映射表面的区域之间的比例关系,将触点映射到映射表面上,得到映射点;Mapping the contact to the mapping surface according to a proportional relationship between the area of the touch surface and the area of the mapping surface to obtain a mapping point;
根据触控表面的区域和映射表面的区域之间的比例关系,将运动轨迹映射到映射表面上,得到映射轨迹;According to the proportional relationship between the area of the touch surface and the area of the mapping surface, the motion trajectory is mapped onto the mapping surface to obtain a mapping trajectory;
根据映射点控制虚拟对象的显示状态随映射轨迹变化。The display state of the virtual object is controlled to vary with the mapping trajectory according to the mapping point.
可选的,处理器402,具体用于:Optionally, the processor 402 is specifically configured to:
获取触点在触控表面上的触点坐标; Obtaining the contact coordinates of the contact on the touch surface;
根据触控表面的区域和映射表面的区域之间的比例关系,将触点坐标映射到映射表面上,得到映射点坐标;According to the proportional relationship between the area of the touch surface and the area of the mapping surface, the contact coordinates are mapped onto the mapping surface to obtain the mapping point coordinates;
将映射点坐标所对应的点确定为映射点。The point corresponding to the coordinates of the map point is determined as a map point.
可选的,处理器402,具体用于:Optionally, the processor 402 is specifically configured to:
当映射轨迹用于指示平移操作时,确定映射轨迹所指示的移动方向和距离,控制虚拟对象跟随映射点,按照移动方向移动距离;When the mapping trajectory is used to indicate a panning operation, determining a moving direction and a distance indicated by the mapping trajectory, controlling the virtual object to follow the mapping point, and moving the distance according to the moving direction;
当映射轨迹用于指示旋转操作时,确定映射轨迹的旋转方向和角度,控制虚拟对象跟随映射点,按照旋转方向旋转角度。When the mapping trajectory is used to indicate the rotation operation, the rotation direction and angle of the mapping trajectory are determined, and the virtual object is controlled to follow the mapping point, and the angle is rotated according to the rotation direction.
可选的,操作在触控表面上的触点为两个,两个触点在任意时刻的旋转方向相反。Optionally, there are two contacts operating on the touch surface, and the two contacts rotate in opposite directions at any time.
可选的,处理器402,具体用于:Optionally, the processor 402 is specifically configured to:
在预设的对应关系中查找与操作对应的显示指令,显示指令用于指示对虚拟对象执行缩放操作、平移操作和旋转操作中的至少一种;Searching, in a preset correspondence, a display instruction corresponding to the operation, where the display instruction is used to indicate performing at least one of a zoom operation, a panning operation, and a rotating operation on the virtual object;
根据作用于映射表面上的显示指令改变虚拟对象的显示状态。The display state of the virtual object is changed according to a display instruction acting on the mapping surface.
综上所述,本发明实施例提供的虚拟对象操作装置,通过获取在一个触控表面上触发的操作,触控表面设置在电子设备除屏幕之外的外表面上;将触控表面映射到虚拟对象上,得到映射表面,虚拟对象是在屏幕中显示的三维对象,映射表面对应于虚拟对象中未在屏幕中显示的至少一个表面;将操作映射为在映射表面上触发的操作;根据操作改变虚拟对象的显示状态,可以根据电子设备是三维对象的特性,在屏幕外的触控表面上执行操作,从而将操作直接映射到虚拟对象相应的表面上,解决了通过屏幕控制三维对象中未在屏幕中显示的表面,通常需要多个操作来完成,操作效率低的问题,达到了提高操作效率的效果。In summary, the virtual object operating device provided by the embodiment of the present invention obtains an operation triggered on a touch surface, and the touch surface is disposed on an outer surface of the electronic device other than the screen; mapping the touch surface to On the virtual object, a mapping surface is obtained, the virtual object is a three-dimensional object displayed on the screen, and the mapping surface corresponds to at least one surface of the virtual object that is not displayed on the screen; the operation is mapped to an operation triggered on the mapping surface; Changing the display state of the virtual object can perform operations on the off-screen touch surface according to the characteristics of the electronic device being a three-dimensional object, thereby directly mapping the operation to the corresponding surface of the virtual object, thereby solving the problem of controlling the three-dimensional object through the screen. The surface displayed on the screen usually requires multiple operations to complete, and the problem of low operational efficiency achieves an effect of improving operational efficiency.
另外,通过将虚拟对象置于立体模型中,立体模型是与电子设备的外表面几何模型对应的模型;将立体模型中与触控表面对应的至少一个表面确定为映射表面,可以在虚拟对象是表面不规则的三维对象时,可以将虚拟对象置于与电子设备的外表面几何模型对应的立体模型中,由于触控表面对应于一个映射表面,因此,在触控表面上执行的操作可以映射为在映射表面上执行的操作,而不需要映射到虚拟对象上,达到了简化对操作的映射过程的效果。In addition, by placing the virtual object in the stereo model, the stereo model is a model corresponding to the outer surface geometric model of the electronic device; at least one surface corresponding to the touch surface in the stereo model is determined as a mapping surface, and the virtual object may be When the surface of the three-dimensional object is irregular, the virtual object can be placed in a stereo model corresponding to the geometric model of the outer surface of the electronic device. Since the touch surface corresponds to a mapping surface, operations performed on the touch surface can be mapped. The effect of simplifying the mapping process to operations is achieved for operations performed on the mapped surface without mapping to virtual objects.
需要说明的是:上述实施例提供的虚拟对象操作装置在进行虚拟对象操作 时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将虚拟对象操作装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的虚拟对象操作装置与虚拟对象操作方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that the virtual object operating device provided by the above embodiment performs virtual object operations. In the actual application, the above-mentioned function allocation can be completed by different functional modules according to requirements, that is, the internal structure of the virtual object operating device is divided into different functional modules to complete All or part of the functions described above. In addition, the virtual object operating device and the virtual object operating method embodiment are provided in the same concept, and the specific implementation process is described in detail in the method embodiment, and details are not described herein again.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,可以仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit may be only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined. Or it can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以 以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product. Based on such understanding, the technical solution of the present invention may contribute to the prior art or part of the technical solution. Illustrated in the form of a software product stored in a storage medium, comprising instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the embodiments of the present invention All or part of the steps of the method. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. .
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。 The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims.

Claims (21)

  1. 一种虚拟对象操作方法,其特征在于,应用于包含屏幕和触控表面的电子设备中,所述触控表面设置在所述电子设备除所述屏幕之外的外表面上,所述方法包括:A virtual object operation method, which is applied to an electronic device including a screen and a touch surface, the touch surface being disposed on an outer surface of the electronic device other than the screen, the method comprising :
    获取在一个所述触控表面上触发的操作;Obtaining an operation triggered on one of the touch surfaces;
    将所述触控表面映射到虚拟对象上,得到映射表面,所述虚拟对象是在所述屏幕中显示的三维对象,所述映射表面对应于所述虚拟对象中未在所述屏幕中显示的至少一个表面;Mapping the touch surface onto the virtual object to obtain a mapping surface, the virtual object being a three-dimensional object displayed in the screen, the mapping surface corresponding to the virtual object not being displayed in the screen At least one surface;
    将所述操作映射为在所述映射表面上触发的操作;Mapping the operation to an operation triggered on the mapping surface;
    根据所述操作改变所述虚拟对象的显示状态。The display state of the virtual object is changed according to the operation.
  2. 根据权利要求1所述的方法,其特征在于,所述将所述触控表面映射到虚拟对象上,得到映射表面,包括:The method according to claim 1, wherein the mapping the touch surface to the virtual object to obtain a mapping surface comprises:
    将所述虚拟对象置于立体模型中,所述立体模型是与所述电子设备的外表面几何模型对应的模型;Place the virtual object in a stereo model, the stereo model being a model corresponding to an outer surface geometric model of the electronic device;
    将所述立体模型中与所述触控表面对应的至少一个表面确定为所述映射表面。At least one surface of the three-dimensional model corresponding to the touch surface is determined as the mapping surface.
  3. 根据权利要求1或2所述的方法,其特征在于,所述根据所述操作改变所述虚拟对象的显示状态,包括:The method according to claim 1 or 2, wherein the changing the display state of the virtual object according to the operation comprises:
    获取所述操作在所述触控表面上的触点,和所述触点在所述触控表面上的运动轨迹;Obtaining the contact on the touch surface and the movement track of the contact on the touch surface;
    根据所述触控表面的区域和所述映射表面的区域之间的比例关系,将所述触点映射到所述映射表面上,得到映射点;Mapping the contact to the mapping surface according to a proportional relationship between the area of the touch surface and the area of the mapping surface to obtain a mapping point;
    根据所述触控表面的区域和所述映射表面的区域之间的比例关系,将所述运动轨迹映射到所述映射表面上,得到映射轨迹;Mapping the motion trajectory to the mapping surface according to a proportional relationship between the area of the touch surface and the area of the mapping surface to obtain a mapping trajectory;
    根据所述映射点控制所述虚拟对象的显示状态随所述映射轨迹变化。Controlling, according to the mapping point, a display state of the virtual object changes with the mapping trajectory.
  4. 根据权利要求3所述的方法,其特征在于,所述根据所述触控表面的区域和所述映射表面的区域之间的比例关系,将所述触点射到所述映射表面上, 得到映射点,包括:The method according to claim 3, wherein the contact is incident on the mapping surface according to a proportional relationship between a region of the touch surface and a region of the mapping surface, Get mapped points, including:
    获取所述触点在所述触控表面上的触点坐标;Obtaining contact coordinates of the contact on the touch surface;
    根据所述触控表面的区域和所述映射表面的区域之间的比例关系,将所述触点坐标映射到所述映射表面上,得到映射点坐标;Mapping the contact coordinates onto the mapping surface according to a proportional relationship between the area of the touch surface and the area of the mapping surface to obtain mapping point coordinates;
    将所述映射点坐标所对应的点确定为所述映射点。A point corresponding to the coordinates of the map point is determined as the map point.
  5. 根据权利要求3或4所述的方法,其特征在于,所述根据所述映射点控制所述虚拟对象的显示姿态随所述映射轨迹变化,包括:The method according to claim 3 or 4, wherein the controlling the display posture of the virtual object according to the mapping point to change according to the mapping trajectory comprises:
    当所述映射轨迹用于指示平移操作时,确定所述映射轨迹所指示的移动方向和距离,控制所述虚拟对象跟随所述映射点,按照所述移动方向移动所述距离;When the mapping trajectory is used to indicate a panning operation, determining a moving direction and a distance indicated by the mapping trajectory, controlling the virtual object to follow the mapping point, and moving the distance according to the moving direction;
    当所述映射轨迹用于指示旋转操作时,确定所述映射轨迹的旋转方向和角度,控制所述虚拟对象跟随所述映射点,按照所述旋转方向旋转所述角度。When the mapping trajectory is used to indicate a rotation operation, determining a rotation direction and an angle of the mapping trajectory, controlling the virtual object to follow the mapping point, and rotating the angle according to the rotation direction.
  6. 根据权利要求3至5中任一项所述的方法,其特征在于,所述操作在所述触控表面上的触点为两个,两个所述触点在任意时刻的旋转方向相反。The method according to any one of claims 3 to 5, wherein the operation has two contacts on the touch surface, and the two of the contacts rotate in opposite directions at any time.
  7. 根据权利要求1或2所述的方法,其特征在于,所述根据所述操作改变所述虚拟对象的显示状态,包括:The method according to claim 1 or 2, wherein the changing the display state of the virtual object according to the operation comprises:
    在预设的对应关系中查找与所述操作对应的显示指令,所述显示指令用于指示对所述虚拟对象执行缩放操作、平移操作和旋转操作中的至少一种;Searching, in a preset correspondence, a display instruction corresponding to the operation, where the display instruction is used to indicate performing at least one of a zoom operation, a panning operation, and a rotating operation on the virtual object;
    根据作用于所述映射表面上的所述显示指令改变所述虚拟对象的显示状态。The display state of the virtual object is changed according to the display instruction acting on the mapping surface.
  8. 一种虚拟对象操作装置,其特征在于,应用于包含屏幕和触控表面的电子设备中,所述触控表面设置在所述电子设备除所述屏幕之外的外表面上,所述装置包括:A virtual object operating device, which is applied to an electronic device including a screen and a touch surface, the touch surface being disposed on an outer surface of the electronic device other than the screen, the device comprising :
    操作获取模块,用于获取在一个所述触控表面上触发的操作;An operation obtaining module, configured to acquire an operation triggered on one of the touch surfaces;
    表面映射模块,用于将所述触控表面映射到虚拟对象上,得到映射表面,所述虚拟对象是在所述屏幕中显示的三维对象,所述映射表面对应于所述虚拟对象中未在所述屏幕中显示的至少一个表面; a surface mapping module, configured to map the touch surface to the virtual object, to obtain a mapping surface, where the virtual object is a three-dimensional object displayed in the screen, and the mapping surface corresponds to the virtual object not in the virtual object At least one surface displayed in the screen;
    操作映射模块,用于将所述操作获取模块获取到的所述操作映射为在所述表面映射模块得到的所述映射表面上触发的操作;An operation mapping module, configured to map the operation acquired by the operation obtaining module to an operation triggered on the mapping surface obtained by the surface mapping module;
    状态改变模块,用于根据所述操作映射模块映射的所述操作改变所述虚拟对象的显示状态。And a state changing module, configured to change a display state of the virtual object according to the operation of the operation mapping module mapping.
  9. 根据权利要求8所述的装置,其特征在于,所述操作映射模块,具体用于:The device according to claim 8, wherein the operation mapping module is specifically configured to:
    将所述虚拟对象置于立体模型中,所述立体模型是与所述电子设备的外表面几何模型对应的模型;Place the virtual object in a stereo model, the stereo model being a model corresponding to an outer surface geometric model of the electronic device;
    将所述立体模型中与所述触控表面对应的至少一个表面确定为所述映射表面。At least one surface of the three-dimensional model corresponding to the touch surface is determined as the mapping surface.
  10. 根据权利要求8或9所述的装置,其特征在于,所述状态改变模块,具体用于:The device according to claim 8 or 9, wherein the state change module is specifically configured to:
    获取所述操作在所述触控表面上的触点,和所述触点在所述触控表面上的运动轨迹;Obtaining the contact on the touch surface and the movement track of the contact on the touch surface;
    根据所述触控表面的区域和所述映射表面的区域之间的比例关系,将所述触点映射到所述映射表面上,得到映射点;Mapping the contact to the mapping surface according to a proportional relationship between the area of the touch surface and the area of the mapping surface to obtain a mapping point;
    根据所述触控表面的区域和所述映射表面的区域之间的比例关系,将所述运动轨迹映射到所述映射表面上,得到映射轨迹;Mapping the motion trajectory to the mapping surface according to a proportional relationship between the area of the touch surface and the area of the mapping surface to obtain a mapping trajectory;
    根据所述映射点控制所述虚拟对象的显示状态随所述映射轨迹变化。Controlling, according to the mapping point, a display state of the virtual object changes with the mapping trajectory.
  11. 根据权利要求10所述的装置,其特征在于,所述状态改变模块,具体用于:The device according to claim 10, wherein the state change module is specifically configured to:
    获取所述触点在所述触控表面上的触点坐标;Obtaining contact coordinates of the contact on the touch surface;
    根据所述触控表面的区域和所述映射表面的区域之间的比例关系,将所述触点坐标映射到所述映射表面上,得到映射点坐标;Mapping the contact coordinates onto the mapping surface according to a proportional relationship between the area of the touch surface and the area of the mapping surface to obtain mapping point coordinates;
    将所述映射点坐标所对应的点确定为所述映射点。A point corresponding to the coordinates of the map point is determined as the map point.
  12. 根据权利要求10或11所述的装置,其特征在于,所述状态改变模块,具体用于: The device according to claim 10 or 11, wherein the state change module is specifically configured to:
    当所述映射轨迹用于指示平移操作时,确定所述映射轨迹所指示的移动方向和距离,控制所述虚拟对象跟随所述映射点,按照所述移动方向移动所述距离;When the mapping trajectory is used to indicate a panning operation, determining a moving direction and a distance indicated by the mapping trajectory, controlling the virtual object to follow the mapping point, and moving the distance according to the moving direction;
    当所述映射轨迹用于指示旋转操作时,确定所述映射轨迹的旋转方向和角度,控制所述虚拟对象跟随所述映射点,按照所述旋转方向旋转所述角度。When the mapping trajectory is used to indicate a rotation operation, determining a rotation direction and an angle of the mapping trajectory, controlling the virtual object to follow the mapping point, and rotating the angle according to the rotation direction.
  13. 根据权利要求10至12中任一项所述的装置,其特征在于,所述操作在所述触控表面上的触点为两个,两个所述触点在任意时刻的旋转方向相反。The apparatus according to any one of claims 10 to 12, wherein said two contacts on said touch surface are operated, and said two contacts are rotated in opposite directions at any time.
  14. 根据权利要求9或10所述的装置,其特征在于,所述状态改变模块,还用于:The device according to claim 9 or 10, wherein the state change module is further configured to:
    在预设的对应关系中查找与所述操作对应的显示指令,所述显示指令用于指示对所述虚拟对象执行缩放操作、平移操作和旋转操作中的至少一种;Searching, in a preset correspondence, a display instruction corresponding to the operation, where the display instruction is used to indicate performing at least one of a zoom operation, a panning operation, and a rotating operation on the virtual object;
    根据作用于所述映射表面上的所述显示指令改变所述虚拟对象的显示状态。The display state of the virtual object is changed according to the display instruction acting on the mapping surface.
  15. 一种虚拟对象操作装置,其特征在于,应用于包含屏幕和触控表面的电子设备中,所述触控表面设置在所述电子设备除所述屏幕之外的外表面上,所述装置包括:总线,以及连接到所述总线的处理器、存储器、发射器和接收器。其中,所述存储器用于存储若干个指令,所述指令被配置成由所述处理器执行;A virtual object operating device, which is applied to an electronic device including a screen and a touch surface, the touch surface being disposed on an outer surface of the electronic device other than the screen, the device comprising : a bus, and a processor, memory, transmitter, and receiver connected to the bus. Wherein the memory is for storing a plurality of instructions, the instructions being configured to be executed by the processor;
    所述接收器,用于获取在一个所述触控表面上触发的操作;The receiver is configured to acquire an operation triggered on one of the touch surfaces;
    所述处理器,用于将所述触控表面映射到虚拟对象上,得到映射表面,所述虚拟对象是在所述屏幕中显示的三维对象,所述映射表面对应于所述虚拟对象中未在所述屏幕中显示的至少一个表面;The processor is configured to map the touch surface to a virtual object to obtain a mapping surface, where the virtual object is a three-dimensional object displayed in the screen, and the mapping surface corresponds to the virtual object At least one surface displayed in the screen;
    所述处理器,用于将所述接收器接收到的所述操作映射为在所述映射表面上触发的操作;The processor, configured to map the operation received by the receiver to an operation triggered on the mapping surface;
    所述处理器,用于根据所述操作改变所述虚拟对象的显示状态。The processor is configured to change a display state of the virtual object according to the operation.
  16. 根据权利要求15所述的装置,其特征在于,所述处理器,具体用于:The device according to claim 15, wherein the processor is specifically configured to:
    将所述虚拟对象置于立体模型中,所述立体模型是与所述电子设备的外表 面几何模型对应的模型;Placing the virtual object in a stereo model, the stereo model being external to the electronic device The model corresponding to the surface geometry model;
    将所述立体模型中与所述触控表面对应的至少一个表面确定为所述映射表面。At least one surface of the three-dimensional model corresponding to the touch surface is determined as the mapping surface.
  17. 根据权利要求15或16所述的装置,其特征在于,所述处理器,具体用于:The device according to claim 15 or 16, wherein the processor is specifically configured to:
    获取所述操作在所述触控表面上的触点,和所述触点在所述触控表面上的运动轨迹;Obtaining the contact on the touch surface and the movement track of the contact on the touch surface;
    根据所述触控表面的区域和所述映射表面的区域之间的比例关系,将所述触点映射到所述映射表面上,得到映射点;Mapping the contact to the mapping surface according to a proportional relationship between the area of the touch surface and the area of the mapping surface to obtain a mapping point;
    根据所述触控表面的区域和所述映射表面的区域之间的比例关系,将所述运动轨迹映射到所述映射表面上,得到映射轨迹;Mapping the motion trajectory to the mapping surface according to a proportional relationship between the area of the touch surface and the area of the mapping surface to obtain a mapping trajectory;
    根据所述映射点控制所述虚拟对象的显示状态随所述映射轨迹变化。Controlling, according to the mapping point, a display state of the virtual object changes with the mapping trajectory.
  18. 根据权利要求17所述的装置,其特征在于,所述处理器,具体用于:The device according to claim 17, wherein the processor is specifically configured to:
    获取所述触点在所述触控表面上的触点坐标;Obtaining contact coordinates of the contact on the touch surface;
    根据所述触控表面的区域和所述映射表面的区域之间的比例关系,将所述触点坐标映射到所述映射表面上,得到映射点坐标;Mapping the contact coordinates onto the mapping surface according to a proportional relationship between the area of the touch surface and the area of the mapping surface to obtain mapping point coordinates;
    将所述映射点坐标所对应的点确定为所述映射点。A point corresponding to the coordinates of the map point is determined as the map point.
  19. 根据权利要求17或18所述的装置,其特征在于,所述处理器,具体用于:The device according to claim 17 or 18, wherein the processor is specifically configured to:
    当所述映射轨迹用于指示平移操作时,确定所述映射轨迹所指示的移动方向和距离,控制所述虚拟对象跟随所述映射点,按照所述移动方向移动所述距离;When the mapping trajectory is used to indicate a panning operation, determining a moving direction and a distance indicated by the mapping trajectory, controlling the virtual object to follow the mapping point, and moving the distance according to the moving direction;
    当所述映射轨迹用于指示旋转操作时,确定所述映射轨迹的旋转方向和角度,控制所述虚拟对象跟随所述映射点,按照所述旋转方向旋转所述角度。When the mapping trajectory is used to indicate a rotation operation, determining a rotation direction and an angle of the mapping trajectory, controlling the virtual object to follow the mapping point, and rotating the angle according to the rotation direction.
  20. 根据权利要求17至19中任一项所述的装置,其特征在于,所述操作在所述触控表面上的触点为两个,两个所述触点在任意时刻的旋转方向相反。 The device according to any one of claims 17 to 19, wherein said two contacts on said touch surface are operated, and said two contacts are rotated in opposite directions at any time.
  21. 根据权利要求15或16所述的装置,其特征在于,所述处理器,具体用于:The device according to claim 15 or 16, wherein the processor is specifically configured to:
    在预设的对应关系中查找与所述操作对应的显示指令,所述显示指令用于指示对所述虚拟对象执行缩放操作、平移操作和旋转操作中的至少一种;Searching, in a preset correspondence, a display instruction corresponding to the operation, where the display instruction is used to indicate performing at least one of a zoom operation, a panning operation, and a rotating operation on the virtual object;
    根据作用于所述映射表面上的所述显示指令改变所述虚拟对象的显示状态。 The display state of the virtual object is changed according to the display instruction acting on the mapping surface.
PCT/CN2015/074121 2015-03-12 2015-03-12 Virtual object operation method and device WO2016141594A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2015/074121 WO2016141594A1 (en) 2015-03-12 2015-03-12 Virtual object operation method and device
CN201580023366.3A CN106462264B (en) 2015-03-12 2015-03-12 Virtual objects operating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/074121 WO2016141594A1 (en) 2015-03-12 2015-03-12 Virtual object operation method and device

Publications (1)

Publication Number Publication Date
WO2016141594A1 true WO2016141594A1 (en) 2016-09-15

Family

ID=56878752

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/074121 WO2016141594A1 (en) 2015-03-12 2015-03-12 Virtual object operation method and device

Country Status (2)

Country Link
CN (1) CN106462264B (en)
WO (1) WO2016141594A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1260533A (en) * 1998-12-22 2000-07-19 将盟股份有限公司 Computer input system for windows applied program and its index input device
US8229510B2 (en) * 2009-04-29 2012-07-24 Unique Instruments Co. Ltd Device having 2D and 3D image display functions for mobile phone
CN102645986A (en) * 2012-03-03 2012-08-22 吕岳敏 Handheld electronic device with three-dimensional object
CN104007915A (en) * 2013-02-27 2014-08-27 共青城赛龙通信技术有限责任公司 Three-dimensional touch operating structure of electronic device and operating method thereof

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002229991A (en) * 2001-01-31 2002-08-16 Fujitsu Ltd Server, user terminal, system and method for providing information
US8384683B2 (en) * 2010-04-23 2013-02-26 Tong Luo Method for user input from the back panel of a handheld computerized device
CN103092381B (en) * 2011-10-28 2016-03-23 宏碁股份有限公司 There is the electronic installation of multiple touch interface and the method for manipulation 3-D view

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1260533A (en) * 1998-12-22 2000-07-19 将盟股份有限公司 Computer input system for windows applied program and its index input device
US8229510B2 (en) * 2009-04-29 2012-07-24 Unique Instruments Co. Ltd Device having 2D and 3D image display functions for mobile phone
CN102645986A (en) * 2012-03-03 2012-08-22 吕岳敏 Handheld electronic device with three-dimensional object
CN104007915A (en) * 2013-02-27 2014-08-27 共青城赛龙通信技术有限责任公司 Three-dimensional touch operating structure of electronic device and operating method thereof

Also Published As

Publication number Publication date
CN106462264B (en) 2019-07-12
CN106462264A (en) 2017-02-22

Similar Documents

Publication Publication Date Title
JP6046729B2 (en) Omni-directional gesture input
US10684673B2 (en) Apparatus and control method based on motion
JP7382994B2 (en) Tracking the position and orientation of virtual controllers in virtual reality systems
US20150186004A1 (en) Multimode gesture processing
TW201220159A (en) Apparatus and method for user input for controlling displayed information
EP2558924B1 (en) Apparatus, method and computer program for user input using a camera
CN103890703A (en) Input control device, input control method, and input control program
JP6569794B1 (en) Information processing apparatus and program
KR20120126508A (en) method for recognizing touch input in virtual touch apparatus without pointer
WO2014116166A1 (en) Scalable input from tracked object
US20190087020A1 (en) Three-dimensional input device
US20150241968A1 (en) Method for Processing Information and Electronic Device
US20130249807A1 (en) Method and apparatus for three-dimensional image rotation on a touch screen
CN110276794A (en) Information processing method, information processing unit, terminal device and server
CN106569716A (en) One-hand operation and control method and control system
US20170017389A1 (en) Method and apparatus for smart device manipulation utilizing sides of device
WO2016141594A1 (en) Virtual object operation method and device
JP2017215842A (en) Electronic apparatus
US9082223B2 (en) Smooth manipulation of three-dimensional objects
GB2533777A (en) Coherent touchless interaction with steroscopic 3D images
JP2019096182A (en) Electronic device, display method, and program
Matulic et al. Above-Screen Fingertip Tracking with a Phone in Virtual Reality
JP2020062376A (en) Information processor and program
TW201913298A (en) Virtual reality system capable of showing real-time image of physical input device and controlling method thereof
CN112328154B (en) Equipment control method and device and electronic equipment

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: 15884277

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15884277

Country of ref document: EP

Kind code of ref document: A1