CN112363652A - Information processing method and device - Google Patents

Information processing method and device Download PDF

Info

Publication number
CN112363652A
CN112363652A CN202011360881.XA CN202011360881A CN112363652A CN 112363652 A CN112363652 A CN 112363652A CN 202011360881 A CN202011360881 A CN 202011360881A CN 112363652 A CN112363652 A CN 112363652A
Authority
CN
China
Prior art keywords
orientation
dimensional virtual
virtual object
angle variation
position coordinate
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011360881.XA
Other languages
Chinese (zh)
Other versions
CN112363652B (en
Inventor
高佩文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Urban Network Neighbor Information Technology Co Ltd
Original Assignee
Beijing Urban Network Neighbor Information Technology Co Ltd
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 Beijing Urban Network Neighbor Information Technology Co Ltd filed Critical Beijing Urban Network Neighbor Information Technology Co Ltd
Priority to CN202011360881.XA priority Critical patent/CN112363652B/en
Publication of CN112363652A publication Critical patent/CN112363652A/en
Application granted granted Critical
Publication of CN112363652B publication Critical patent/CN112363652B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04815Interaction with a metaphor-based environment or interaction object displayed as three-dimensional, e.g. changing the user viewpoint with respect to the environment or object
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2219/00Indexing scheme for manipulating 3D models or images for computer graphics
    • G06T2219/20Indexing scheme for editing of 3D models
    • G06T2219/2016Rotation, translation, scaling

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Architecture (AREA)
  • Computer Graphics (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Processing Or Creating Images (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses an information processing method and device. Under the condition that the orientation of the three-dimensional virtual object cannot be accurately changed by the target angle variation, the electronic equipment can acquire the actual angle variation of the orientation of the three-dimensional virtual object, and in a plurality of angle variation ranges, the target angle variation range where the actual angle variation is located is searched. In this case, when the actual angle variation for changing the orientation of the three-dimensional virtual object is within a certain angle variation range, it is often indicated that the angle variation for the worker to change the orientation of the three-dimensional virtual object is the target angle variation within the angle variation range, so that the target angle variation within the target angle variation range can be obtained, and the orientation of the three-dimensional virtual object is corrected according to the target angle variation. Therefore, the orientation of the three-dimensional virtual object can be accurately changed by the target angle change amount. Therefore, the working personnel can accurately fine-tune the home decoration model, and the virtual home decoration effect is improved.

Description

Information processing method and device
Technical Field
The present application relates to the field of computer technologies, and in particular, to an information processing method and apparatus.
Background
Under the condition that a client has the demand of buying or renting a house, the client can check the house source condition on line on the network platform, in order to enable the client to sense the state of the house source more really, a worker of the network platform can create a three-dimensional virtual space of the house source to obtain a three-dimensional house space, the structure of the three-dimensional house space is the same as that of the real house source, the scaling ratio is also the same, and secondly, the worker can perform virtual decoration on the three-dimensional house space, so that the client can sense the more perfect state of the house source according to the decorated three-dimensional house space, and the possibility that the client chooses to buy or rent the house source is increased.
When a worker performs virtual decoration on a three-dimensional house space, it is generally necessary to arrange a home decoration model and the like, for example, a sofa model, a wardrobe model, a television cabinet model, a bed model, a television model, an air conditioner model, a table model and the like, in the three-dimensional house space.
Before arranging the home decoration model in the three-dimensional house space, a worker may perform fine adjustment on the home decoration model, for example, fine adjustment on the style, texture, color, and pattern of the outer surface of the home decoration model.
In one possible case, the home decoration model may comprise a plurality of outer surfaces, for example more than 6 outer surfaces, etc. Thus, the worker can sequentially display different outer surfaces of the home decoration model on a screen of the terminal used by the worker, and fine adjustment and the like can be carried out on the outer surface of the home decoration model.
Sometimes, the position of the observation point for observing the home decoration model is not changed, and in this case, the worker needs to manually change the orientation of the home decoration model on the terminal, so that different outer surfaces of the home decoration model are sequentially displayed on the screen of the terminal, and the worker can perform fine adjustment on the different outer surfaces of the home decoration model.
However, the inventors have found that the accuracy of the worker manually changing the orientation of the home decoration model on the terminal is low.
Disclosure of Invention
In order to improve the accuracy of changing the orientation of the home decoration model, the application shows an information processing method and device.
In a first aspect, the present application shows an information processing method, in which at least a three-dimensional virtual space is displayed through a display interface of an electronic device, where the three-dimensional virtual space includes at least one three-dimensional virtual object, where the method includes:
acquiring an actual angle variation of the orientation of the three-dimensional virtual object in the case of changing the orientation of the three-dimensional virtual object;
searching a target angle change range in which the actual angle change amount is located in a plurality of angle change ranges;
acquiring target angle variation within the target angle variation range;
and correcting the orientation of the three-dimensional virtual object according to the target angle variation.
In one possible implementation manner, the obtaining an actual angle variation of the orientation of the three-dimensional virtual object includes:
acquiring a starting position coordinate of a touch point on a screen of the electronic equipment in a screen coordinate system when the orientation of the three-dimensional virtual object starts to be changed, and acquiring an ending position coordinate of the touch point in the screen coordinate system when the orientation of the three-dimensional virtual object is finished to be changed;
acquiring world position coordinates of the three-dimensional virtual object in a world coordinate system;
and acquiring the actual angle variation of the orientation of the three-dimensional virtual object according to the initial position coordinate, the end position coordinate and the world position coordinate.
In one possible implementation manner, the obtaining the actual angle variation of the orientation of the three-dimensional virtual object according to the starting position coordinate, the ending position coordinate, and the world position coordinate includes:
and acquiring a first position coordinate corresponding to the starting position coordinate in the world coordinate system, and acquiring a second position coordinate corresponding to the ending position coordinate in the world coordinate system.
Generating a first vector with the world position coordinate as a starting point and the first position coordinate as an end point, and generating a second vector with the world position coordinate as a starting point and the second position coordinate as an end point;
and calculating an included angle between the first vector and the second vector to obtain the actual angle variation of the orientation of the three-dimensional virtual object.
In one possible implementation manner, the correcting the orientation of the three-dimensional virtual object according to the target angle variation includes:
acquiring the angle to be corrected and the direction to be corrected of the orientation of the three-dimensional virtual object according to the target angle variation and the actual angle variation;
and correcting the orientation of the three-dimensional virtual object according to the angle to be corrected and the positive direction to be corrected.
In a possible implementation manner, the obtaining the target angle variation amount within the target angle variation range includes:
and searching the angle variation corresponding to the target angle variation range in the corresponding relation between the angle variation range and the angle variation, and taking the angle variation as the target angle variation.
In one possible implementation, the method further includes:
and in the process of changing the orientation in the three-dimensional virtual object, acquiring the current angle variation of the orientation of the three-dimensional virtual object in real time, and displaying the current angle variation in real time.
In one possible implementation, the method further includes:
displaying change prompting information for prompting a direction in which the orientation can be changed, before changing the orientation in the three-dimensional virtual object.
In one possible implementation, the method further includes:
canceling the display of the change prompt information in the process of changing the orientation in the three-dimensional virtual object.
In a second aspect, the present application shows an information processing apparatus, in which at least a three-dimensional virtual space including at least one three-dimensional virtual object is displayed through a display interface of an electronic device, wherein the apparatus includes:
the first acquisition module is used for acquiring the actual angle variation of the orientation of the three-dimensional virtual object under the condition of changing the orientation of the three-dimensional virtual object;
the searching module is used for searching a target angle change range in which the actual angle change amount is located in a plurality of angle change ranges;
the second acquisition module is used for acquiring the target angle variation in the target angle variation range;
and the correcting module is used for correcting the orientation of the three-dimensional virtual object according to the target angle variation.
In one possible implementation manner, the first obtaining module includes:
a first acquisition unit, configured to acquire, when starting to change the orientation of the three-dimensional virtual object, a start position coordinate of a touch point on a screen of the electronic device in a screen coordinate system, and, when ending to change the orientation of the three-dimensional virtual object, an end position coordinate of the touch point in the screen coordinate system;
a second acquisition unit, configured to acquire world position coordinates of the three-dimensional virtual object in a world coordinate system;
a third obtaining unit, configured to obtain the actual angle variation of the orientation of the three-dimensional virtual object according to the start position coordinate, the end position coordinate, and the world position coordinate.
In one possible implementation manner, the third obtaining unit includes:
and the acquisition subunit is used for acquiring a first position coordinate corresponding to the starting position coordinate in the world coordinate system and acquiring a second position coordinate corresponding to the ending position coordinate in the world coordinate system.
A generation subunit, configured to generate a first vector with the world position coordinate as a starting point and the first position coordinate as an end point, and generate a second vector with the world position coordinate as a starting point and the second position coordinate as an end point;
and the calculating subunit is used for calculating an included angle between the first vector and the second vector to obtain the actual angle variation of the orientation of the three-dimensional virtual object.
In one possible implementation, the modification module includes:
a fourth obtaining unit, configured to obtain a to-be-corrected angle and a to-be-corrected direction of the orientation of the three-dimensional virtual object according to the target angle variation and the actual angle variation;
and the correcting unit is used for correcting the orientation of the three-dimensional virtual object according to the angle to be corrected and the direction to be corrected.
In a possible implementation manner, the second obtaining module is specifically configured to: and searching the angle variation corresponding to the target angle variation range in the corresponding relation between the angle variation range and the angle variation, and taking the angle variation as the target angle variation.
In one possible implementation, the apparatus further includes:
the three-dimensional virtual object orientation display device comprises a third obtaining module and a first display module, wherein the third obtaining module is used for obtaining the current angle variation of the orientation of the three-dimensional virtual object in real time in the process of changing the orientation of the three-dimensional virtual object, and the first display module is used for displaying the current angle variation in real time.
In one possible implementation, the apparatus further includes:
and the second display module is used for displaying change prompt information before changing the orientation in the three-dimensional virtual object, and the change prompt information is used for prompting the direction in which the orientation can be changed.
In one possible implementation, the apparatus further includes:
and the display canceling module is used for canceling the display of the change prompt message in the process of changing the orientation in the three-dimensional virtual object.
In a third aspect, the present application shows an electronic device comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the information processing method according to the first aspect.
In a fourth aspect, the present application shows a non-transitory computer-readable storage medium having instructions which, when executed by a processor of an electronic device, enable the electronic device to perform the information processing method according to the first aspect.
In a fifth aspect, the present application shows a computer program product, in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform the information processing method according to the first aspect.
The technical scheme provided by the application can comprise the following beneficial effects:
in one example, in a case that a worker needs to change the orientation of the three-dimensional virtual object, the worker usually needs to change the orientation of the three-dimensional virtual object by a specific angle change amount, however, due to the manual change, the worker may not be able to accurately change the orientation of the three-dimensional virtual object by the specific angle change amount, so that the worker cannot finely adjust the home decoration model accurately, and the virtual home decoration effect is affected.
In the present application, by setting a plurality of angle variation ranges and target angle variation amounts in the respective angle variation ranges, it is possible to: in the case that the orientation of the three-dimensional virtual object needs to be changed by the target angle variation within a certain angle variation range, but the orientation of the three-dimensional virtual object cannot be accurately changed by the target angle variation within the angle variation range due to manual change, the electronic device may obtain the actual angle variation of the orientation of the three-dimensional virtual object, and then search for the target angle variation range where the actual angle variation is located in a plurality of angle variation ranges. In this case, when the actual angle variation for changing the orientation of the three-dimensional virtual object is within a certain angle variation range, it is often indicated that the angle variation for changing the orientation of the three-dimensional virtual object by the operator needs to be the target angle variation within the angle variation range, so that the target angle variation within the target angle variation range can be obtained, and the orientation of the three-dimensional virtual object can be corrected according to the target angle variation. This makes it possible to accurately change the orientation of the three-dimensional virtual object by the target angle change amount. Therefore, the working personnel can accurately fine-tune the home decoration model, and the virtual home decoration effect is improved.
Drawings
Fig. 1 is a flowchart of the steps of an information processing method of the present application.
Fig. 2 is a block diagram of a configuration of an information processing apparatus according to the present application.
Fig. 3 is a block diagram of an electronic device shown in the present application.
Fig. 4 is a block diagram of an electronic device shown in the present application.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.
Referring to fig. 1, a flowchart illustrating steps of an information processing method according to the present application is shown, where at least a three-dimensional virtual space is displayed on a display interface of an electronic device, and the three-dimensional virtual space includes at least one three-dimensional virtual object, where the method specifically includes the following steps:
in step S101, in the case of changing the orientation of the three-dimensional virtual object, the actual angle change amount of the orientation of the three-dimensional virtual object is acquired.
In this application, in a case where the staff member controls the electronic device to change the orientation of the three-dimensional virtual object, the electronic device may acquire an actual angle variation amount of the orientation of the three-dimensional virtual object.
In the present application, one possible way of understanding the amount of angle change is the amplitude of the angle change, which is an angular interval. The amount of angular change may be greater than or equal to 0 °. For example, it may refer to the magnitude of change in the orientation of the outer surface of the three-dimensional virtual object, or the like.
In an example, if the staff needs to change the orientation of the three-dimensional virtual object, the staff may input an angle change amount of the orientation that the staff needs to change in the electronic device, for example, the staff needs to change the orientation of the three-dimensional virtual object by 90 ° or 180 °, and the angle change amount may be 90 ° or 180 °, and the like, and then the electronic device may change the orientation of the three-dimensional virtual object according to the angle change amount input by the staff, and after the work of changing the orientation is finished, the angle change amount input by the staff may be used as an actual angle change amount of the orientation of the three-dimensional virtual object.
In another example, if the worker needs to change the orientation of the three-dimensional virtual object, the worker may change the orientation of the three-dimensional virtual object by dragging the mouse. Specifically, the worker may move the cursor of the mouse onto the three-dimensional virtual object displayed on the screen, near the three-dimensional virtual object, or on an operation shaft (rotation shaft) for rotating the three-dimensional virtual object, and then click the left mouse button without releasing and move the mouse to change the position of the cursor on the screen, and during the change of the position of the cursor on the screen, the orientation of the three-dimensional virtual object may also change, that is, the orientation of the three-dimensional virtual object may change with the change of the position of the cursor on the screen, and the direction of change of the orientation of the three-dimensional virtual object may be the same as the direction of change of the position of the cursor on the screen, and in the case that the change of the orientation of the three-dimensional virtual object needs to be stopped, the worker may release the left mouse.
It can be seen that the actual amount of angular change to acquire the orientation of the three-dimensional virtual object is related to the degree of change in the position of the cursor on the screen.
In yet another example, if the worker needs to change the orientation of the three-dimensional virtual object, the worker may change the orientation of the three-dimensional virtual object by touching on the screen of the electronic device using an operating body (a finger, a stylus, or the like) and changing the touched position of the operating body on the screen. Specifically, the operator may touch the operation body on the three-dimensional virtual object displayed on the screen, near the three-dimensional virtual object, or on an operation axis (rotation axis) for rotating the three-dimensional virtual object, and then move the operation body without the operation body leaving the screen to change the touch position of the operation body on the screen, and during the change of the touch position of the operation body on the screen, the orientation of the three-dimensional virtual object may also change, that is, the orientation of the three-dimensional virtual object may change as the touch position of the operation body on the screen changes, and the direction of change of the orientation of the three-dimensional virtual object may be the same as the direction of change of the touch position of the operation body on the screen, and in the case that the change of the orientation of the three-dimensional virtual object needs to be stopped, the operator may leave the screen of the electronic device.
As can be seen, the obtained actual angle change amount of the orientation of the three-dimensional virtual object is related to the degree of change of the touch position of the operation body on the screen.
In this way, when the actual angle variation of the orientation of the three-dimensional virtual object needs to be obtained, the following process may be performed, including:
1011. the method includes acquiring start position coordinates of a touch point on a screen of the electronic device in a screen coordinate system when the orientation of the three-dimensional virtual object starts to be changed, and acquiring end position coordinates of the touch point in the screen coordinate system when the orientation of the three-dimensional virtual object finishes to be changed.
The touch point on the screen may include a cursor of a mouse, a touch point of an operator on the screen, and the like.
For example, the start position coordinates of the touch point include position coordinates of the cursor on the screen when the worker clicks the left button of the mouse, and the like, and the end position coordinates of the touch point include position coordinates of the cursor on the screen when the worker releases the left button of the mouse, and the like.
Alternatively, the start position coordinates of the touch point include position coordinates of the touch point on the screen when the worker starts to contact the screen using the operating body, and the like, and the end position coordinates of the touch point include position coordinates of the touch point on the screen when the worker is about to leave the screen using the operating body, and the like.
1012. The world position coordinates of the three-dimensional virtual object in a world coordinate system are acquired.
The electronic equipment records a world coordinate system, and when the electronic equipment displays the three-dimensional virtual object, the electronic equipment displays the three-dimensional virtual object according to the world coordinate system, so that the electronic equipment can sense the world position coordinates of the three-dimensional virtual object.
1013. And acquiring the actual angle variation of the orientation of the three-dimensional virtual object according to the initial position coordinate, the end position coordinate and the world position coordinate.
In the present application, the start position coordinate and the end position coordinate are both position coordinates in the screen coordinate system, and the world position coordinate is position coordinates in the world coordinate system, so if the start position coordinate, the end position coordinate and the world position coordinate are calculated together, the coordinates need to be converted first, for example, a first position coordinate corresponding to the start position coordinate in the world coordinate system may be obtained, and a second position coordinate corresponding to the end position coordinate in the world coordinate system may be obtained.
Then, a first vector taking the world position coordinate of the three-dimensional virtual object as a starting point and the first position coordinate as an end point and a second vector taking the world position coordinate of the three-dimensional virtual object as a starting point and the second position coordinate as an end point can be generated; and calculating an included angle between the first vector and the second vector to obtain the actual angle variation of the orientation of the three-dimensional virtual object. In one embodiment, the angle between the first vector and the second vector can be calculated by using the cosine law, which is not described in detail herein.
In step S102, a target angle change range in which the actual angle change amount is located is searched for among the plurality of angle change ranges.
In the present application, the electronic device may acquire a plurality of angle variation ranges in advance, for example, in one embodiment, the worker may set the angle variation range according to the actual shape of the home decoration model.
In one example, assuming that the home decoration model is a television cabinet model, the overall shape of the television cabinet model is a cube, and the television cabinet model includes 6 outer surfaces, and a worker can perform fine adjustment on the style, texture, color, and pattern of the 6 outer surfaces of the television cabinet model.
For any outer surface, when the staff fine-adjusts the outer surface of the television cabinet model, the plane of the outer surface needs to be parallel to the plane of the screen, thus, the normal vector of the plane of the outer surface is parallel to the sight line direction of the working personnel, thereby the front surface of the outer surface can be presented to the working personnel, so that the working personnel can see the front surface of the outer surface (the situation that the fine adjustment precision of the outer surface is influenced by the inclination of the outer surface is avoided), and the working personnel can perform fine adjustment on the outer surface more accurately, after the fine adjustment of the outer surface is finished, the fine adjustment of the other outer surface is required to be continued, so that the orientation of the television cabinet model is required to be changed by a worker, so that the plane of the other outer surface is parallel to the plane of the screen, and a worker can finely adjust the other outer surface.
In this application, when the staff changes the orientation of the tv cabinet model, the tv cabinet model is usually rotated by 90 ° so that the outer surface adjacent to the outer surface can be displayed on the screen (at this time, the plane of the adjacent outer surface is parallel to the plane of the screen), or the tv cabinet model is rotated by 180 ° so that the outer surface opposite to the outer surface can be displayed on the screen (at this time, the plane of the opposite outer surface is parallel to the plane of the screen), or the tv cabinet model is rotated by 270 ° so that another outer surface adjacent to the outer surface can be displayed on the screen (at this time, the plane of the another adjacent outer surface is parallel to the plane of the screen).
It can be seen that, in this example, when the worker changes the orientation of the tv cabinet model, the angle change amount of the orientation is often some specific angle change amount that needs to be used, for example, 90 °, 180 °, 270 °, and so on.
In some other possible examples, when the worker changes the orientation of the tv cabinet model, the angle change amount of the orientation is also some specific angle change amount that needs to be used, for example, 45 °, 135 °, 225 °, 315 °, and so on.
Therefore, the angle change range may be set based on a specific amount of angle change that needs to be used, and for example, an angle change range including a specific amount of angle change may be selected.
Specifically, for any one specific angle variation, the specific angle variation may be extended numerically downward by a step length to obtain an angle value as a lower limit of the angle variation range, and the specific angle variation may be extended numerically upward by a step length to obtain an angle value as an upper limit of the angle variation range. The lower limit of the angle change range and the upper limit of the angle change range may constitute the angle change range to which the specific amount of angle change corresponds.
The same is true for each of the other specific angular variations.
It can be seen that with several specific angle changes, several angle change ranges can be set. One angle change amount corresponds to one angle change range.
For example, a small range including the angle change amount 90 ° may be provided for the angle change amount 90 °, and the angle change range corresponding to 90 ° may be, for example, 85 ° to 95 °.
For another example, a small range including the angle change amount 180 ° may be set for the angle change amount 180 °, and the angle change range corresponding to 180 ° may be, for example, 175 ° to 185 °.
For another example, a small range including the angular variation 270 ° may be set for the angular variation 270 °, and the angular variation range corresponding to 270 ° may be, for example, 265 ° to 275 °.
Thus, in this step, in the plurality of angle variation ranges, the angle variation range in which the lower limit is smaller than the actual angle variation amount and the upper limit is larger than the actual angle variation amount can be searched, and the target angle variation range in which the actual angle variation amount is located can be obtained.
In step S103, a target angle change amount within the target angle change range is acquired.
In the present application, in the case that a worker needs to change the orientation of the three-dimensional virtual object, the specific angle variation is usually needed to be changed, however, due to the manual change, the worker may not be able to accurately change the orientation of the three-dimensional virtual object by the specific angle variation, but the actual angle variation and the specific angle variation, which are to be changed by the worker, are usually closer to each other.
Therefore, for a specific angle change amount, if the actual angle change amount of the worker changing the orientation of the three-dimensional virtual object is closer to the specific angle change amount, the worker is usually required to change the orientation of the three-dimensional virtual object by the specific angle change amount, for example, if the actual angle change amount of the worker changing the orientation of the three-dimensional virtual object is within a certain angle change range, the worker is usually required to change the orientation of the three-dimensional virtual object by the specific angle change amount in the angle change range.
Therefore, after the target angle variation range in which the actual angle variation is located is found from the plurality of angle variation ranges, the target angle variation (i.e., the specific angle variation) in the target angle variation range can be obtained.
Specifically, in the present application, a specific angle change amount corresponds to an angle change range.
For any angle change range, the specific angle change amount corresponding to the angle change range is acquired within the angle change range, for example, for the angle change range 85 ° to 95 °, the angle change amount 90 ° in the angle change range 85 ° to 95 ° may be used as the angle change amount corresponding to the angle change range 85 ° to 95 °, and then the specific angle change amount corresponding to the angle change range may be stored in the correspondence relationship between the angle change range and the angle change amount. The above-described operation is also performed for each of the other angle change ranges.
In general, when the actual angle change amount for changing the orientation of the three-dimensional virtual object is within one angle change range, it is often explained that the worker needs to change the angle change amount for changing the orientation of the three-dimensional virtual object to the target angle change amount within the angle change range.
Therefore, in this step, the angle change amount corresponding to the target angle change range may be found in the correspondence relationship between the angle change range and the angle change amount, and taken as the target angle change amount.
In step S104, the orientation of the three-dimensional virtual object is corrected based on the target angle change amount.
In this application, in a possible case, the target angle variation is the same as the actual angle variation, in this case, it may be that the worker changes the orientation of the three-dimensional virtual object by the target angle variation which needs to be changed through careful effort or by a small amount, so that the electronic device does not need to correct the orientation of the three-dimensional virtual object according to the target angle variation, and the process may be ended.
However, in another possible case, the target angle change amount is different from the actual angle change amount, and in this case, the orientation of the three-dimensional virtual object may be corrected according to the target angle change amount.
In an embodiment of the present application, correcting the orientation of the three-dimensional virtual object according to the target angle variation may be implemented by the following processes, including:
1041. and acquiring the angle to be corrected and the direction to be corrected of the orientation of the three-dimensional virtual object according to the target angle variation and the actual angle variation.
In this application, when the target angle variation is larger than the actual angle variation, a difference between the target angle variation and the actual angle variation may be calculated, and since the target angle variation is larger than the actual angle variation, it is described that the degree of previously changing the orientation of the three-dimensional virtual object is not enough, that is, the orientation of the three-dimensional virtual object also needs to be corrected along the direction of previously changing the orientation of the three-dimensional virtual object, where the correction degree is the difference (the angle to be corrected), and the correction direction is the direction of previously changing the orientation of the three-dimensional virtual object.
In the case where the target angle variation is smaller than the actual angle variation, a difference between the actual angle variation and the target angle variation may be calculated, and since the target angle variation is smaller than the actual angle variation, it is indicated that the degree of the previous change of the orientation of the three-dimensional virtual object is beyond expectation, that is, the orientation of the three-dimensional virtual object needs to be corrected along a direction opposite to the direction in which the orientation of the three-dimensional virtual object was previously changed, the correction degree being the difference (the angle to be corrected), and the correction direction being the direction opposite to the direction in which the orientation of the three-dimensional virtual object was previously changed.
1042. And correcting the orientation of the three-dimensional virtual object according to the angle to be corrected and the direction to be corrected.
In addition, in a possible case where the actual angle change amount may not be located in any one of the plurality of angle change ranges, in such a case, the worker may not need to change the orientation of the three-dimensional virtual object by the target angle change amount, but may intentionally change the orientation of the three-dimensional virtual object by the actual angle change amount to do other things, and therefore, the orientation may not be continuously corrected at this time.
In one example, in a case that a worker needs to change the orientation of the three-dimensional virtual object, the worker usually needs to change the orientation of the three-dimensional virtual object by a specific angle change amount, however, due to the manual change, the worker may not be able to accurately change the orientation of the three-dimensional virtual object by the specific angle change amount, so that the worker cannot finely adjust the home decoration model accurately, and the virtual home decoration effect is affected.
In the present application, by setting a plurality of angle variation ranges and target angle variation amounts in the respective angle variation ranges, it is possible to: in the case that the orientation of the three-dimensional virtual object needs to be changed by the target angle variation within a certain angle variation range, but the orientation of the three-dimensional virtual object cannot be accurately changed by the target angle variation within the angle variation range due to manual change, the electronic device may obtain the actual angle variation of the orientation of the three-dimensional virtual object, and then search for the target angle variation range where the actual angle variation is located in a plurality of angle variation ranges. In this case, when the actual angle variation for changing the orientation of the three-dimensional virtual object is within a certain angle variation range, it is often indicated that the angle variation for changing the orientation of the three-dimensional virtual object by the operator needs to be the target angle variation within the angle variation range, so that the target angle variation within the target angle variation range can be obtained, and the orientation of the three-dimensional virtual object can be corrected according to the target angle variation. This makes it possible to accurately change the orientation of the three-dimensional virtual object by the target angle change amount. Therefore, the working personnel can accurately fine-tune the home decoration model, and the virtual home decoration effect is improved.
In another embodiment of the application, in the process of changing the orientation in the three-dimensional virtual object, the electronic device may further obtain, in real time, a current angle variation of the orientation of the three-dimensional virtual object, and display, in real time, the current angle variation, so that in the process of changing the orientation in the three-dimensional virtual object, a worker may see, in real time, how many angles the worker changes the orientation of the three-dimensional virtual object on the screen, which is helpful for the worker to change the orientation of the three-dimensional virtual object to a desired orientation.
In one example, a changeable direction of orientation of the three-dimensional virtual object may be prompted by a ring control. For example, the annular control may surround the three-dimensional virtual object, the annular control has a ground color, and the annular control has a magnitude of 360 °, so that an annular region corresponding to the current angle variation in the annular control may be determined, and then the color of the annular region is changed, so that the color of the annular region is different from the ground color of the annular control, and may be in greater contrast with the ground color of the annular control, so that a worker may perceive, through the color of the annular region, a proportion of the annular region in the annular control, and further perceive a change degree of an orientation of the three-dimensional virtual object.
Secondly, the annular region may also be highlighted or highlighted, etc.
In addition, the numerical value of the current angle variation can be displayed on the annular area of the annular control or the periphery of the environmental area, so that the working personnel can sense the current angle variation of the orientation of the three-dimensional virtual object in real time.
In another embodiment of the present application, before the worker controls the electronic device to change the orientation in the three-dimensional virtual object, the electronic device may display a change prompt message on the screen, the change prompt message being used to prompt a changeable direction of the orientation of the three-dimensional virtual object to inform the worker in which direction the orientation of the three-dimensional virtual object can be changed.
In one example, a changeable direction of orientation of the three-dimensional virtual object may be prompted by an arrow control.
Further, after the worker knows the changeable direction of the orientation of the three-dimensional virtual object according to the change prompt information, the electronic device can be controlled to change the orientation of the three-dimensional virtual object in the changeable direction. In addition, in order to avoid the displayed change prompt information from blocking the three-dimensional virtual object and blocking the current angle variation displayed in real time to influence the change degree of the orientation of the three-dimensional virtual object perceived by the staff, in another embodiment of the present application, during the process of the electronic device changing the orientation in the three-dimensional virtual object, the electronic device may cancel displaying the change prompt information, for example, the electronic device may hide the change prompt information on the screen.
It is noted that, for simplicity of explanation, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will appreciate that the present application is not limited by the order of acts, as some steps may, in accordance with the present application, occur in other orders and concurrently. Further, those skilled in the art will also appreciate that the embodiments described in the specification are exemplary and that no action is necessarily required in this application.
Referring to fig. 2, a block diagram of an information processing apparatus according to the present application is shown, where at least a three-dimensional virtual space including at least one three-dimensional virtual object is displayed on a display interface of an electronic device, where the apparatus includes:
a first obtaining module 11, configured to obtain an actual angle variation of an orientation of the three-dimensional virtual object when the orientation of the three-dimensional virtual object is changed;
the searching module 12 is configured to search a target angle variation range in which the actual angle variation is located among a plurality of angle variation ranges;
a second obtaining module 13, configured to obtain a target angle variation within the target angle variation range;
and a correcting module 14, configured to correct the orientation of the three-dimensional virtual object according to the target angle variation.
In one possible implementation manner, the first obtaining module includes:
a first acquisition unit, configured to acquire, when starting to change the orientation of the three-dimensional virtual object, a start position coordinate of a touch point on a screen of the electronic device in a screen coordinate system, and, when ending to change the orientation of the three-dimensional virtual object, an end position coordinate of the touch point in the screen coordinate system;
a second acquisition unit, configured to acquire world position coordinates of the three-dimensional virtual object in a world coordinate system;
a third obtaining unit, configured to obtain the actual angle variation of the orientation of the three-dimensional virtual object according to the start position coordinate, the end position coordinate, and the world position coordinate.
In one possible implementation manner, the third obtaining unit includes:
and the acquisition subunit is used for acquiring a first position coordinate corresponding to the starting position coordinate in the world coordinate system and acquiring a second position coordinate corresponding to the ending position coordinate in the world coordinate system.
A generation subunit, configured to generate a first vector with the world position coordinate as a starting point and the first position coordinate as an end point, and generate a second vector with the world position coordinate as a starting point and the second position coordinate as an end point;
and the calculating subunit is used for calculating an included angle between the first vector and the second vector to obtain the actual angle variation of the orientation of the three-dimensional virtual object.
In one possible implementation, the modification module includes:
a fourth obtaining unit, configured to obtain a to-be-corrected angle and a to-be-corrected direction of the orientation of the three-dimensional virtual object according to the target angle variation and the actual angle variation;
and the correcting unit is used for correcting the orientation of the three-dimensional virtual object according to the angle to be corrected and the direction to be corrected.
In a possible implementation manner, the second obtaining module is specifically configured to: and searching the angle variation corresponding to the target angle variation range in the corresponding relation between the angle variation range and the angle variation, and taking the angle variation as the target angle variation.
In one possible implementation, the apparatus further includes:
the three-dimensional virtual object orientation display device comprises a third obtaining module and a first display module, wherein the third obtaining module is used for obtaining the current angle variation of the orientation of the three-dimensional virtual object in real time in the process of changing the orientation of the three-dimensional virtual object, and the first display module is used for displaying the current angle variation in real time.
In one possible implementation, the apparatus further includes:
and the second display module is used for displaying change prompt information before changing the orientation in the three-dimensional virtual object, and the change prompt information is used for prompting the direction in which the orientation can be changed.
In one possible implementation, the apparatus further includes:
and the display canceling module is used for canceling the display of the change prompt message in the process of changing the orientation in the three-dimensional virtual object.
In one example, in a case that a worker needs to change the orientation of the three-dimensional virtual object, the worker usually needs to change the orientation of the three-dimensional virtual object by a specific angle change amount, however, due to the manual change, the worker may not be able to accurately change the orientation of the three-dimensional virtual object by the specific angle change amount, so that the worker cannot finely adjust the home decoration model accurately, and the virtual home decoration effect is affected.
In the present application, by setting a plurality of angle variation ranges and target angle variation amounts in the respective angle variation ranges, it is possible to: in the case that the orientation of the three-dimensional virtual object needs to be changed by the target angle variation within a certain angle variation range, but the orientation of the three-dimensional virtual object cannot be accurately changed by the target angle variation within the angle variation range due to manual change, the electronic device may obtain the actual angle variation of the orientation of the three-dimensional virtual object, and then search for the target angle variation range where the actual angle variation is located in a plurality of angle variation ranges. In this case, when the actual angle variation for changing the orientation of the three-dimensional virtual object is within a certain angle variation range, it is often indicated that the angle variation for changing the orientation of the three-dimensional virtual object by the operator needs to be the target angle variation within the angle variation range, so that the target angle variation within the target angle variation range can be obtained, and the orientation of the three-dimensional virtual object can be corrected according to the target angle variation. This makes it possible to accurately change the orientation of the three-dimensional virtual object by the target angle change amount. Therefore, the working personnel can accurately fine-tune the home decoration model, and the virtual home decoration effect is improved.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
Fig. 3 is a block diagram of an electronic device 800 shown in the present application. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 3, electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, images, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 806 provides power to the various components of the electronic device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the electronic device 800. For example, the sensor assembly 814 may detect an open/closed state of the device 800, the relative positioning of components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, orientation or acceleration/deceleration of the electronic device 800, and a change in the temperature of the electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 may access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 816 receives broadcast signals or broadcast operation information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the electronic device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Fig. 4 is a block diagram of an electronic device 1900 shown in the present application. For example, the electronic device 1900 may be provided as a server.
Referring to fig. 4, electronic device 1900 includes a processing component 1922 further including one or more processors and memory resources, represented by memory 1932, for storing instructions, e.g., applications, executable by processing component 1922. The application programs stored in memory 1932 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1922 is configured to execute instructions to perform the above-described method.
The electronic device 1900 may also include a power component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input/output (I/O) interface 1958. The electronic device 1900 may operate based on an operating system stored in memory 1932, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The information processing method and apparatus provided by the present application are introduced in detail, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (18)

1. An information processing method is characterized in that at least a three-dimensional virtual space is displayed through a display interface of an electronic device, and the three-dimensional virtual space comprises at least one three-dimensional virtual object, wherein the method comprises the following steps:
acquiring an actual angle variation of the orientation of the three-dimensional virtual object in the case of changing the orientation of the three-dimensional virtual object;
searching a target angle change range in which the actual angle change amount is located in a plurality of angle change ranges;
acquiring target angle variation within the target angle variation range;
and correcting the orientation of the three-dimensional virtual object according to the target angle variation.
2. The method of claim 1, wherein the obtaining an actual angular change in orientation of the three-dimensional virtual object comprises:
acquiring a starting position coordinate of a touch point on a screen of the electronic equipment in a screen coordinate system when the orientation of the three-dimensional virtual object starts to be changed, and acquiring an ending position coordinate of the touch point in the screen coordinate system when the orientation of the three-dimensional virtual object is finished to be changed;
acquiring world position coordinates of the three-dimensional virtual object in a world coordinate system;
and acquiring the actual angle variation of the orientation of the three-dimensional virtual object according to the initial position coordinate, the end position coordinate and the world position coordinate.
3. The method of claim 2, wherein the obtaining the actual angular change in orientation of the three-dimensional virtual object from the starting position coordinate, the ending position coordinate, and the world position coordinate comprises:
acquiring a first position coordinate corresponding to the starting position coordinate in the world coordinate system, and acquiring a second position coordinate corresponding to the ending position coordinate in the world coordinate system;
generating a first vector with the world position coordinate as a starting point and the first position coordinate as an end point, and generating a second vector with the world position coordinate as a starting point and the second position coordinate as an end point;
and calculating an included angle between the first vector and the second vector to obtain the actual angle variation of the orientation of the three-dimensional virtual object.
4. The method according to claim 1, wherein the correcting the orientation of the three-dimensional virtual object according to the target angle change amount comprises:
acquiring the angle to be corrected and the direction to be corrected of the orientation of the three-dimensional virtual object according to the target angle variation and the actual angle variation;
and correcting the orientation of the three-dimensional virtual object according to the angle to be corrected and the positive direction to be corrected.
5. The method according to claim 1, wherein the obtaining the target angle variation amount in the target angle variation range comprises:
and searching the angle variation corresponding to the target angle variation range in the corresponding relation between the angle variation range and the angle variation, and taking the angle variation as the target angle variation.
6. The method of claim 1, further comprising:
and in the process of changing the orientation in the three-dimensional virtual object, acquiring the current angle variation of the orientation of the three-dimensional virtual object in real time, and displaying the current angle variation in real time.
7. The method of claim 1, further comprising:
displaying change prompting information for prompting a direction in which the orientation can be changed, before changing the orientation in the three-dimensional virtual object.
8. The method of claim 7, further comprising:
canceling the display of the change prompt information in the process of changing the orientation in the three-dimensional virtual object.
9. An information processing apparatus, characterized in that at least a three-dimensional virtual space including at least one three-dimensional virtual object is displayed through a display interface of an electronic device, wherein the apparatus comprises:
the first acquisition module is used for acquiring the actual angle variation of the orientation of the three-dimensional virtual object under the condition of changing the orientation of the three-dimensional virtual object;
the searching module is used for searching a target angle change range in which the actual angle change amount is located in a plurality of angle change ranges;
the second acquisition module is used for acquiring the target angle variation in the target angle variation range;
and the correcting module is used for correcting the orientation of the three-dimensional virtual object according to the target angle variation.
10. The apparatus of claim 9, wherein the first obtaining module comprises:
a first acquisition unit, configured to acquire, when starting to change the orientation of the three-dimensional virtual object, a start position coordinate of a touch point on a screen of the electronic device in a screen coordinate system, and, when ending to change the orientation of the three-dimensional virtual object, an end position coordinate of the touch point in the screen coordinate system;
a second acquisition unit, configured to acquire world position coordinates of the three-dimensional virtual object in a world coordinate system;
a third obtaining unit, configured to obtain the actual angle variation of the orientation of the three-dimensional virtual object according to the start position coordinate, the end position coordinate, and the world position coordinate.
11. The apparatus of claim 10, wherein the third obtaining unit comprises:
the acquisition subunit is configured to acquire a first position coordinate corresponding to the start position coordinate in the world coordinate system, and acquire a second position coordinate corresponding to the end position coordinate in the world coordinate system;
a generation subunit, configured to generate a first vector with the world position coordinate as a starting point and the first position coordinate as an end point, and generate a second vector with the world position coordinate as a starting point and the second position coordinate as an end point;
and the calculating subunit is used for calculating an included angle between the first vector and the second vector to obtain the actual angle variation of the orientation of the three-dimensional virtual object.
12. The apparatus of claim 9, wherein the modification module comprises:
a fourth obtaining unit, configured to obtain a to-be-corrected angle and a to-be-corrected direction of the orientation of the three-dimensional virtual object according to the target angle variation and the actual angle variation;
and the correcting unit is used for correcting the orientation of the three-dimensional virtual object according to the angle to be corrected and the direction to be corrected.
13. The apparatus of claim 9, wherein the second obtaining module is specifically configured to: and searching the angle variation corresponding to the target angle variation range in the corresponding relation between the angle variation range and the angle variation, and taking the angle variation as the target angle variation.
14. The apparatus of claim 9, further comprising:
the three-dimensional virtual object orientation display device comprises a third obtaining module and a first display module, wherein the third obtaining module is used for obtaining the current angle variation of the orientation of the three-dimensional virtual object in real time in the process of changing the orientation of the three-dimensional virtual object, and the first display module is used for displaying the current angle variation in real time.
15. The apparatus of claim 9, further comprising:
and the second display module is used for displaying change prompt information before changing the orientation in the three-dimensional virtual object, and the change prompt information is used for prompting the direction in which the orientation can be changed.
16. The apparatus of claim 15, further comprising:
and the display canceling module is used for canceling the display of the change prompt message in the process of changing the orientation in the three-dimensional virtual object.
17. An electronic device, characterized in that the electronic device comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the information processing method of any one of claims 1 to 8.
18. A non-transitory computer-readable storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform the information processing method of any one of claims 1 to 8.
CN202011360881.XA 2020-11-27 2020-11-27 Information processing method and device Active CN112363652B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011360881.XA CN112363652B (en) 2020-11-27 2020-11-27 Information processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011360881.XA CN112363652B (en) 2020-11-27 2020-11-27 Information processing method and device

Publications (2)

Publication Number Publication Date
CN112363652A true CN112363652A (en) 2021-02-12
CN112363652B CN112363652B (en) 2021-10-22

Family

ID=74535462

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011360881.XA Active CN112363652B (en) 2020-11-27 2020-11-27 Information processing method and device

Country Status (1)

Country Link
CN (1) CN112363652B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102724440A (en) * 2011-05-11 2012-10-10 新奥特(北京)视频技术有限公司 Method for realizing object rotation operation in three dimensional scene
CN104504761A (en) * 2014-12-15 2015-04-08 天脉聚源(北京)科技有限公司 Method and device for controlling rotation of 3D (three-dimensional) model
CN105719242A (en) * 2016-01-13 2016-06-29 广州市赛普电子科技有限公司 Picture rapid rotation method and system based on look-up table method
CN105787230A (en) * 2016-05-26 2016-07-20 河南联加网络科技有限公司 Home simulation design system and method
CN106530224A (en) * 2016-10-14 2017-03-22 上海语途信息技术有限公司 Method for driving 3D object transformation via planar coordinate axes
CN107728790A (en) * 2016-07-08 2018-02-23 广东欧珀移动通信有限公司 A kind of screen display method, device and mobile terminal, storage medium
CN108579079A (en) * 2018-04-27 2018-09-28 网易(杭州)网络有限公司 Virtual objects rotating direction control method and device, electronic equipment, storage medium
CN111798548A (en) * 2020-07-15 2020-10-20 广州微咔世纪信息科技有限公司 Control method and device of dance picture and computer storage medium
CN111954862A (en) * 2018-01-24 2020-11-17 苹果公司 Apparatus, method and graphical user interface for system level behavior of 3D models

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102724440A (en) * 2011-05-11 2012-10-10 新奥特(北京)视频技术有限公司 Method for realizing object rotation operation in three dimensional scene
CN104504761A (en) * 2014-12-15 2015-04-08 天脉聚源(北京)科技有限公司 Method and device for controlling rotation of 3D (three-dimensional) model
CN105719242A (en) * 2016-01-13 2016-06-29 广州市赛普电子科技有限公司 Picture rapid rotation method and system based on look-up table method
CN105787230A (en) * 2016-05-26 2016-07-20 河南联加网络科技有限公司 Home simulation design system and method
CN107728790A (en) * 2016-07-08 2018-02-23 广东欧珀移动通信有限公司 A kind of screen display method, device and mobile terminal, storage medium
CN106530224A (en) * 2016-10-14 2017-03-22 上海语途信息技术有限公司 Method for driving 3D object transformation via planar coordinate axes
CN111954862A (en) * 2018-01-24 2020-11-17 苹果公司 Apparatus, method and graphical user interface for system level behavior of 3D models
CN108579079A (en) * 2018-04-27 2018-09-28 网易(杭州)网络有限公司 Virtual objects rotating direction control method and device, electronic equipment, storage medium
CN111798548A (en) * 2020-07-15 2020-10-20 广州微咔世纪信息科技有限公司 Control method and device of dance picture and computer storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘贤梅等: "《虚拟现实技术及其应用》", 31 May 2004 *

Also Published As

Publication number Publication date
CN112363652B (en) 2021-10-22

Similar Documents

Publication Publication Date Title
US11315336B2 (en) Method and device for editing virtual scene, and non-transitory computer-readable storage medium
KR102194094B1 (en) Synthesis method, apparatus, program and recording medium of virtual and real objects
EP3086275A1 (en) Numerical value transfer method, terminal, cloud server, computer program and recording medium
EP3173970A1 (en) Image processing method and apparatus
EP2927787A1 (en) Method and device for displaying picture
CN108008955B (en) Method and device for displaying user-defined control information
US20200402321A1 (en) Method, electronic device and storage medium for image generation
CN104850643B (en) Picture comparison method and device
CN108804187B (en) Interface window setting method and device
EP3104282A1 (en) Search method and search apparatus
CN112363652B (en) Information processing method and device
CN108762554B (en) Touch event response method and device
CN109754452B (en) Image rendering processing method and device, electronic equipment and storage medium
CN114296587A (en) Cursor control method and device, electronic equipment and storage medium
CN112465901B (en) Information processing method and device
CN111428654B (en) Iris recognition method, iris recognition device and storage medium
EP3905660A1 (en) Method and device for shooting image, and storage medium
US9619016B2 (en) Method and device for displaying wallpaper image on screen
CN108717373B (en) Name display method and device of intelligent equipment and storage medium
CN106598217B (en) Display method, display device and electronic equipment
EP4160540A1 (en) Method and apparatus for producing special effect, electronic device and storage medium
CN110865720A (en) Human body posture reminding method and device
CN112596840A (en) Information processing method and device
CN105446573B (en) Method and device for displaying direction
CN113409185B (en) Image processing method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant