CN112596840A - Information processing method and device - Google Patents

Information processing method and device Download PDF

Info

Publication number
CN112596840A
CN112596840A CN202011556784.8A CN202011556784A CN112596840A CN 112596840 A CN112596840 A CN 112596840A CN 202011556784 A CN202011556784 A CN 202011556784A CN 112596840 A CN112596840 A CN 112596840A
Authority
CN
China
Prior art keywords
toolbar
display
displayed
display interface
dimensional virtual
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011556784.8A
Other languages
Chinese (zh)
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 CN202011556784.8A priority Critical patent/CN112596840A/en
Publication of CN112596840A publication Critical patent/CN112596840A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • 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

Landscapes

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

Abstract

The application discloses an information processing method and device. By the method and the device, the position of the toolbar on the display interface can be adjusted in real time according to the observation point position of the observation point in the three-dimensional virtual space and the display position of the three-dimensional virtual model on the display interface, so that the position of the toolbar on the display interface can be dynamically adjusted along with the adjustment of the observation point position of the observation point in the three-dimensional virtual space and/or the display position of the three-dimensional virtual model on the display interface, and the position of the toolbar on the display interface is prevented from being fixed. Therefore, under a possible condition, the position of the three-dimensional virtual model on the display interface can be prevented from being overlapped with the position of the toolbar on the display interface by adjusting the position of the toolbar on the display interface, so that the shielding problem can be avoided, for example, the toolbar and the three-dimensional virtual model are prevented from being shielded on the display interface, and further, the influence on the display and the control of the three-dimensional virtual model can be avoided.

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 checking the house resources, the client can check the house resource condition on line on a network platform, in order to enable the client to sense the state of the house resources more really, a worker of the network platform can create a three-dimensional virtual space of the house resources, the structure of the three-dimensional virtual space is the same as that of the real house resources, the scaling proportion is also the same, and secondly, the worker can perform virtual decoration on the three-dimensional virtual space, so that the client can sense the more perfect state of the house resources according to the decorated three-dimensional virtual space.
Disclosure of Invention
The application discloses 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 on a display interface of an electronic device, where the three-dimensional virtual space includes at least one three-dimensional virtual model, where the method includes:
acquiring a display position of the three-dimensional virtual model on the display interface;
determining the position of the toolbar to be displayed on the display interface relative to the three-dimensional virtual model according to the display position;
acquiring the position of an observation point in a three-dimensional coordinate system taking the three-dimensional virtual model as a central point;
determining the position of the toolbar in the three-dimensional coordinate system according to the observation point position and the position to be displayed;
and displaying the toolbar on the display interface according to the toolbar position.
In an optional implementation manner, the determining, according to the display position, a to-be-displayed orientation of the toolbar on the display interface relative to the three-dimensional virtual model includes:
acquiring the width of the toolbar;
calculating a distance between the display location and an edge of a first side of the display interface;
determining the position on the first side of the display position on the display interface as the position to be displayed under the condition that the width is smaller than or equal to the distance;
and determining the position on the display interface on the second side of the display position as the position to be displayed when the width is larger than the distance.
In an optional implementation manner, the determining, according to the viewpoint position and the orientation to be displayed, a toolbar position of the toolbar in the three-dimensional coordinate system includes:
in a plurality of quadrants of the three-dimensional coordinate system, determining an observation point quadrant where the observation point is located according to the observation point position;
determining a display quadrant corresponding to the azimuth to be displayed according to the observation point quadrant in a plurality of quadrants of the three-dimensional coordinate system;
obtaining the extreme position of a part in the three-dimensional virtual model, which is positioned in the display quadrant;
and acquiring the position of the toolbar in the three-dimensional coordinate system according to the extreme value position.
In an optional implementation manner, the obtaining, according to the extreme position, a toolbar position of the toolbar in the three-dimensional coordinate system includes:
determining the extreme position as the toolbar position of the toolbar in the three-dimensional coordinate system;
alternatively, the first and second electrodes may be,
in the display quadrant, a position is selected in a region of the extreme position on a side away from the three-dimensional virtual model, and is used as the toolbar position.
In an optional implementation, the method further includes:
determining a mapping relation corresponding to each orientation to be displayed in the mapping relations corresponding to the orientations to be displayed respectively, wherein the mapping relation comprises a mapping relation between an observation point position in the three-dimensional coordinate system and a toolbar position in the three-dimensional coordinate system;
and forming a corresponding table entry by the position of the observation point and the position of the tool column, and storing the table entry in a mapping relation corresponding to the azimuth to be displayed.
In an optional implementation manner, the determining, according to the viewpoint position and the orientation to be displayed, a toolbar position of the toolbar in the three-dimensional coordinate system includes:
determining a mapping relation corresponding to the azimuth to be displayed in the mapping relation corresponding to each azimuth to be displayed;
and searching the position of the toolbar corresponding to the position of the observation point in the mapping relation corresponding to the position to be displayed.
In an optional implementation manner, the displaying the toolbar on the display interface according to the toolbar position includes:
acquiring a corresponding position of the toolbar position on the display interface;
and displaying the toolbar at a corresponding position on the display interface.
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 model is displayed through a display interface of an electronic device, wherein the apparatus includes:
the first acquisition module is used for acquiring the display position of the three-dimensional virtual model on the display interface;
the first determination module is used for determining the position of the toolbar to be displayed on the display interface relative to the three-dimensional virtual model according to the display position;
the second acquisition module is used for acquiring the observation point position of the observation point in a three-dimensional coordinate system taking the three-dimensional virtual model as a central point;
the second determination module is used for determining the position of the toolbar in the three-dimensional coordinate system according to the observation point position and the position to be displayed;
and the display module is used for displaying the toolbar on the display interface according to the position of the toolbar.
In an optional implementation manner, the first determining module includes:
the first acquisition unit is used for acquiring the width of the toolbar;
a calculation unit for calculating a distance between the display position and an edge of a first side of the display interface;
a first determining unit, configured to determine, as the orientation to be displayed, an orientation on the display interface on a first side of the display position when the width is less than or equal to the distance;
and the second determining unit is used for determining the position on the display interface, which is positioned on the second side of the display position, as the position to be displayed under the condition that the width is greater than the distance.
In an optional implementation manner, the second determining module includes:
a third determining unit, configured to determine, in multiple quadrants of the three-dimensional coordinate system, an observation point quadrant where the observation point is located according to the observation point position;
the fourth determining unit is used for determining a display quadrant corresponding to the to-be-displayed azimuth according to the observation point quadrant in a plurality of quadrants of the three-dimensional coordinate system;
a second obtaining unit configured to obtain an extreme position of a portion of the three-dimensional virtual model located in the display quadrant;
and the third acquisition unit is used for acquiring the position of the toolbar in the three-dimensional coordinate system according to the extreme value position.
In an optional implementation manner, the third obtaining unit includes:
a determining subunit, configured to determine the extreme value position as a toolbar position of the toolbar in the three-dimensional coordinate system;
alternatively, the first and second electrodes may be,
and the selection subunit is used for selecting a position in the area of the extreme value position on the side far away from the three-dimensional virtual model in the display quadrant, and the position is used as the toolbar position.
In an optional implementation manner, the second determining module further includes:
the fifth determining unit is used for determining the mapping relation corresponding to the to-be-displayed orientation in the mapping relation corresponding to each to-be-displayed orientation, wherein the mapping relation comprises the mapping relation between the observation point position in the three-dimensional coordinate system and the toolbar position in the three-dimensional coordinate system;
and the storage unit is used for forming a corresponding table entry by the position of the observation point and the position of the tool column and storing the corresponding table entry in the mapping relation corresponding to the azimuth to be displayed.
In an optional implementation manner, the second determining module further includes:
a sixth determining unit, configured to determine, in the mapping relationships corresponding to the respective orientations to be displayed, the mapping relationships corresponding to the orientations to be displayed;
and the searching unit is used for searching the position of the toolbar corresponding to the position of the observation point in the mapping relation corresponding to the position to be displayed.
In an alternative implementation, the display module includes:
the fourth acquisition unit is used for acquiring the corresponding position of the toolbar position on the display interface;
and the display unit is used for displaying the toolbar at a corresponding position on the display interface.
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 the application, the display position of the three-dimensional virtual model on the display interface is obtained. And determining the position of the toolbar to be displayed on the display interface relative to the three-dimensional virtual model according to the display position of the three-dimensional virtual model on the display interface. And acquiring the position of an observation point of the observation point in a three-dimensional coordinate system taking the three-dimensional virtual model as a central point. And determining the position of the toolbar in the three-dimensional coordinate system according to the position of the observation point and the position to be displayed. And displaying the toolbar on the display interface according to the toolbar position.
By the method and the device, the position of the toolbar on the display interface can be adjusted in real time according to the observation point position of the observation point in the three-dimensional virtual space and the display position of the three-dimensional virtual model on the display interface, so that the position of the toolbar on the display interface can be dynamically adjusted along with the adjustment of the observation point position of the observation point in the three-dimensional virtual space and/or the display position of the three-dimensional virtual model on the display interface, and the position of the toolbar on the display interface is prevented from being fixed. Therefore, under a possible condition, the position of the three-dimensional virtual model on the display interface can be prevented from being overlapped with the position of the toolbar on the display interface by adjusting the position of the toolbar on the display interface, so that the shielding problem can be avoided, for example, the toolbar and the three-dimensional virtual model are prevented from being shielded on the display interface, and further, the influence on the display and the control of the three-dimensional virtual model can be avoided.
Drawings
FIG. 1 is a schematic view of an interface of the present application.
FIG. 2 is a flow chart of steps of an information processing method of the present application.
FIG. 3 is a schematic view of an interface of the present application.
FIG. 4 is a schematic view of an interface of the present application.
FIG. 5 is a schematic view of an interface of the present application.
Fig. 6 is a block diagram of a configuration of an information processing apparatus according to the present application.
Fig. 7 is a block diagram of an electronic device shown in the present application.
Fig. 8 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.
When a user (worker) virtually decorates a three-dimensional virtual 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-conditioning model, a table model and the like, in the three-dimensional virtual space.
Before arranging the home decoration model in the three-dimensional virtual space, a user 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. In this way, the user can sequentially display different outer surfaces of the home decoration model on the screen of the terminal used by the user, so as to perform fine adjustment and the like on the outer surface of the home decoration model.
Sometimes, the position of the home decoration model in the three-dimensional virtual space is constant, and the position of the viewpoint for observing the home decoration model is variable, that is, the position of the virtual camera that photographs the home decoration model, that is, the position of the viewpoint, is variable.
In this case, the user needs to manually change the position of the viewpoint on the electronic device, so that the terminal can display different outer surfaces of the home decoration model at different viewpoints on the display interface, and further the user can perform fine adjustment on the different outer surfaces of the home decoration model. Wherein, the outer surface of the home decoration model can be seen at the observation point because the virtual camera at the observation point shoots the outer surface of the home decoration model through the lens.
In the process of fine tuning the home decoration model in the three-dimensional virtual space, the terminal also displays a toolbar on the screen, the toolbar comprises a plurality of processing controls for processing the home decoration model, and the processing space comprises a back button (for going back to the state of the last fine tuning), a rotation button (for rotating the home decoration model), a hide button (for hiding the home decoration model on the display interface), a color replacement button (for replacing the color of the home decoration model), and the like.
In one mode, the toolbar is fixedly displayed at a specific position on the screen, however, during the process of manipulating the home decoration model by the user, the position of the home decoration model on the screen may be changed, but the position of the toolbar on the screen is not changed, which may sometimes cause the position of the home decoration model on the screen to coincide with the position of the toolbar on the screen, as shown in fig. 1, for example, which may cause occlusion problems, for example, the toolbar occludes the home decoration model, and thus, the display and manipulation of the home decoration model may be affected.
Therefore, in order to avoid the influence on the display and the control of the three-dimensional virtual model, the shielding problem can be avoided, for example, the toolbar is prevented from shielding the home decoration model.
In order to avoid the occlusion problem, for example, the toolbar occludes the home decoration model, the position of the home decoration model on the screen can be prevented from being coincident with the position of the toolbar on the screen.
In order to avoid the position of the home decoration model on the screen from coinciding with the position of the toolbar on the screen, referring to fig. 2, a flowchart of steps of an information processing method of the present application is shown, where at least a three-dimensional virtual space is displayed through a display interface of the electronic device, and the three-dimensional virtual space includes at least one three-dimensional virtual model, where the method may specifically include the following steps:
in step S101, a display position of the three-dimensional virtual model on the display interface is acquired.
In the application, the display interface is displayed on a screen of the electronic device, and a screen coordinate system is recorded in the electronic device, so that the electronic device can obtain coordinates of the three-dimensional virtual model displayed on the display interface in the screen coordinate system and can serve as a display position of the three-dimensional virtual model on the display interface.
In step S102, a to-be-displayed orientation of the toolbar on the display interface relative to the three-dimensional virtual model is determined according to a display position of the three-dimensional virtual model on the display interface.
In one embodiment of the present application, the to-be-displayed orientation of the toolbar on the display interface relative to the three-dimensional virtual model may include a left side, a right side, an upper side, a lower side, an upper left side, an upper right side, a lower left side, a lower right side, or the like of the three-dimensional virtual model.
In the present application, the toolbar has its own size (width and height), and in a case where the three-dimensional virtual model is close to an edge of a side of the display interface, the remaining display space of the orientation of the side of the three-dimensional virtual model on the display interface is often small, and if the toolbar is displayed in the orientation of the side of the three-dimensional virtual model, the toolbar may not be displayed completely on the display interface, which may affect a user to manipulate the three-dimensional virtual model using the toolbar.
In order to avoid influencing a user to manipulate the three-dimensional virtual model using the toolbar, it is necessary to enable the toolbar to be displayed completely on the display interface, and in order to enable the toolbar to be displayed completely on the display interface, it is necessary to make a free area for displaying the orientation of the side of the three-dimensional virtual model of the toolbar large.
Thus, when the position to be displayed of the toolbar on the display interface relative to the three-dimensional virtual model is determined according to the display position, the method can be realized through the following processes:
1021. the width of the toolbar is obtained.
The width of the toolbar is preset and is not changed, so that the preset width of the toolbar can be directly acquired.
1022. And calculating the distance between the display position of the three-dimensional virtual model on the display interface and the edge of the first side of the display interface.
And the display position comprises the coordinates of the three-dimensional virtual model displayed on the display interface in a screen coordinate system.
The first side includes a default orientation to be displayed on the display interface relative to the three-dimensional virtual model, six people, an orientation of a right side of the three-dimensional virtual model on the display interface, and the like.
The edge of the first side of the display interface may include an edge of the right side of the display interface, and so on.
Wherein the coordinates of each edge point in the edge of the first side of the display interface in the screen coordinate system may be obtained. Then, the distance between the coordinates of the three-dimensional virtual model in the screen coordinate system and the coordinates of each edge point in the edge of the first side in the screen coordinate system is calculated, and then the minimum distance is selected as the distance between the display position of the three-dimensional virtual model on the display interface and the edge of the first side of the display interface.
1023. And determining the position of the first side of the display position on the display interface as the position to be displayed under the condition that the width of the toolbar is smaller than or equal to the distance between the display position and the edge of the first side of the display interface.
In the case that the width of the toolbar is less than or equal to the distance between the display position and the edge of the first side of the display interface, it means that there is enough space on the first side of the three-dimensional virtual model on the display interface to accommodate the toolbar, that is, the toolbar can be completely displayed on the display interface in the orientation relative to the first side of the three-dimensional virtual model, and therefore, the orientation of the first side of the display position on the display interface can be determined as the orientation to be displayed.
1024. And determining the position on the display interface on the second side of the display position as the position to be displayed under the condition that the width of the toolbar is larger than the distance between the display position and the edge of the first side of the display interface.
In the case that the width of the toolbar is greater than the distance between the display position and the edge of the first side of the display interface, it means that there is not enough space on the first side of the three-dimensional virtual model on the display interface to accommodate the toolbar, that is, the toolbar cannot be completely displayed in the orientation on the display interface relative to the first side of the three-dimensional virtual model, and therefore, the orientation on the second side of the display position on the display interface can be determined as the orientation to be displayed.
Generally, if there is not enough space on the display interface on the first side of the three-dimensional virtual model to accommodate the toolbar, there is often enough space on the display interface on the second side of the three-dimensional virtual model to accommodate the toolbar, and therefore, the orientation on the display interface on the second side of the display location may be determined as the orientation to be displayed.
The first side may comprise a right side, the second side may comprise a left side, etc.
The orientation on the first side of the display position includes an orientation on the right side of the display position, the orientation on the second side of the display position includes an orientation on the left side of the display position, and the like.
In step S103, the viewpoint position of the viewpoint in the three-dimensional coordinate system having the three-dimensional virtual model as the center point is acquired.
In this application, a three-dimensional coordinate system is recorded in the electronic device, and the three-dimensional coordinate system includes a world coordinate system and the like, so that the electronic device can sense the coordinates of the observation point in the three-dimensional coordinate system in real time and can use the coordinates as the position of the observation point in the three-dimensional coordinate system with the three-dimensional virtual model as the center point.
In step S104, the toolbar position in the three-dimensional coordinate system is determined according to the viewpoint position and the to-be-displayed orientation.
In an embodiment of the present application, the step may be implemented by the following process, including:
1041. and determining an observation point quadrant where the observation point is located according to the position of the observation point in a plurality of quadrants of the three-dimensional coordinate system.
A three-dimensional coordinate system may be as shown in fig. 3. The coordinate origin is the position where the three-dimensional virtual model is located (for example, the position where the central point of the three-dimensional virtual model is located), the positive direction of the Y axis is vertically upward, the positive direction of the X axis is horizontally leftward, the direction of the Z axis can be perpendicular to the plane where the screen is located, and the positive direction of the Z axis points out of the screen.
The number of quadrants in the three-dimensional coordinate system can be 4, wherein a part of which Z is greater than 0 and X is greater than 0 constitutes a first quadrant, a part of which Z is greater than 0 and X is less than 0 constitutes a second quadrant, a part of which Z is less than 0 and X is less than 0 constitutes a third quadrant, and a part of which Z is less than 0 and X is greater than 0 constitutes a fourth quadrant.
Looking at the three-dimensional coordinate system from a bottom view, the interface of the three-dimensional coordinate system from the bottom view can be as shown in fig. 4.
1042. And determining a display quadrant corresponding to the azimuth to be displayed according to the image limit of the observation point in a plurality of quadrants of the three-dimensional coordinate system.
The to-be-displayed orientation of the toolbar on the display interface relative to the three-dimensional virtual model comprises: the orientation of the first side and the orientation of the second side of the display position of the three-dimensional virtual model on the display interface, the first side including the orientation of the right side of the display position of the three-dimensional virtual model on the display interface, the second side including the orientation of the left side of the display position of the three-dimensional virtual model on the display interface, and the like.
The example is given by taking the case where the orientation to be displayed includes an orientation located on the right side of the display position of the three-dimensional virtual model.
In one example, assuming that the viewpoint quadrant is the first quadrant, it is explained that the three-dimensional virtual model is viewed from the first quadrant, and the orientation on the right side of the display position of the three-dimensional virtual model is the fourth quadrant, and thus, the fourth quadrant is the display quadrant for displaying the toolbar.
In another example, assuming that the viewpoint quadrant is the second quadrant, it is explained that the three-dimensional virtual model is viewed from the second quadrant, and the orientation of the right side of the display position of the three-dimensional virtual model is the first quadrant, and thus, the first quadrant is the display quadrant for displaying the toolbar.
In yet another example, assuming that the viewpoint quadrant is the third quadrant, it is explained that the three-dimensional virtual model is viewed from the third quadrant, and the orientation on the right side of the display position of the three-dimensional virtual model is the second quadrant, and thus, the second quadrant is the display quadrant for displaying the toolbar.
In yet another example, assuming that the viewpoint quadrant is the fourth quadrant, it is explained that the three-dimensional virtual model is viewed from the fourth quadrant, and the orientation on the right side of the display position of the three-dimensional virtual model is the third quadrant, and thus, the third quadrant is the display quadrant for displaying the toolbar.
The example is given by taking the orientation to be displayed including the orientation located on the left side of the display position of the three-dimensional virtual model as an example.
In one example, assuming that the viewpoint quadrant is the first quadrant, it is explained that the three-dimensional virtual model is viewed from the first quadrant, and the orientation on the left side of the display position of the three-dimensional virtual model is the second quadrant, and thus, the second quadrant is the display quadrant for displaying the toolbar.
In another example, assuming that the viewpoint quadrant is the second quadrant, it is explained that the three-dimensional virtual model is viewed from the second quadrant, and the orientation on the left side of the display position of the three-dimensional virtual model is the third quadrant, and thus, the third quadrant is the display quadrant for displaying the toolbar.
In another example, assuming that the viewpoint quadrant is the third quadrant, it is explained that the three-dimensional virtual model is viewed from the third quadrant, and the orientation on the left side of the display position of the three-dimensional virtual model is the fourth quadrant, and thus, the fourth quadrant is the display quadrant for displaying the toolbar.
In another example, assuming that the viewpoint quadrant is the fourth quadrant, it is explained that the three-dimensional virtual model is viewed from the fourth quadrant, and the orientation on the left side of the display position of the three-dimensional virtual model is the first quadrant, and thus, the first quadrant is the display quadrant for displaying the toolbar.
1043. Extreme positions of portions of the three-dimensional virtual model that are located in the display quadrants are obtained.
The extreme positions of the portion of the three-dimensional virtual model that is located in the display quadrant include: extreme coordinates of the part in a three-dimensional coordinate system, the extreme coordinates including at least extreme coordinates on the X-axis and extreme coordinates on the Y-axis, and the like.
The extreme value coordinates include at least the maximum coordinates and the minimum coordinates and the like among the coordinates of the respective position points included in the portion in the three-dimensional coordinate system.
1044. And acquiring the position of the toolbar in the three-dimensional coordinate system according to the extreme value position.
In one embodiment of the present application, the extreme position may be determined as a toolbar position in the three-dimensional coordinate system. Alternatively, in another embodiment of the present application, in the display quadrant, a location is selected in the area on the side of the extremum location away from the three-dimensional virtual model and used as the toolbar location.
For example, the display quadrant is divided into two parts by taking the extreme position as a central point, wherein one part is close to the three-dimensional virtual model, and the other part is far away from the three-dimensional virtual model.
For any one position in the portion on the side away from the three-dimensional virtual model, the coordinates of the position on the X-axis on the three-dimensional coordinate system as compared with the extreme position are each away from the three-dimensional virtual model, and the coordinates of the position on the Z-axis on the three-dimensional coordinate system as compared with the extreme position are each away from the three-dimensional virtual model. The same is true for every other location in the portion away from the side of the three-dimensional virtual model.
The example is given by taking the case where the orientation to be displayed includes an orientation located on the right side of the display position of the three-dimensional virtual model.
In one example, assume that the viewpoint quadrant is the first quadrant and the fourth quadrant is the display quadrant for displaying the toolbar. The coordinates of the toolbar position in the three-dimensional coordinate system may be (greater than or equal to Xmax, Y, less than or equal to Zmin), where Xmax is the maximum value of the three-dimensional virtual model on the X-axis in the three-dimensional coordinate system, and Zmin is the minimum value of the three-dimensional virtual model on the Z-axis in the three-dimensional coordinate system.
In another example, assume that the viewpoint quadrant is the second quadrant and the first quadrant is the display quadrant for displaying the toolbar. The coordinates of the toolbar position in the three-dimensional coordinate system may be (greater than or equal to Xmax, Y, greater than or equal to Zmax), where Xmax is the maximum value of the three-dimensional virtual model on the X-axis in the three-dimensional coordinate system, and Zmax is the maximum value of the three-dimensional virtual model on the Z-axis in the three-dimensional coordinate system.
In yet another example, assume that the viewpoint quadrant is the third quadrant and the second quadrant is the display quadrant for displaying the toolbar. The coordinates of the toolbar position in the three-dimensional coordinate system may be (less than or equal to Xmin, Y, greater than or equal to Zmax), where Xmin is the minimum value of the three-dimensional virtual model on the X-axis in the three-dimensional coordinate system, and Zmax is the maximum value of the three-dimensional virtual model on the Z-axis in the three-dimensional coordinate system.
In yet another example, assume that the viewpoint quadrant is the fourth quadrant and the third quadrant is the display quadrant for displaying the toolbar. The coordinates of the toolbar position in the three-dimensional coordinate system may be (less than or equal to Xmin, Y, less than or equal to Zmin), where Xmin is the minimum value of the three-dimensional virtual model on the X-axis in the three-dimensional coordinate system, and Zmin is the minimum value of the three-dimensional virtual model on the Z-axis in the three-dimensional coordinate system.
Wherein the value of Y may be greater than the height of the three-dimensional virtual model, for example, 1.3 times or 1.5 times the height of the three-dimensional virtual model, etc.
The example is given by taking the orientation to be displayed including the orientation located on the left side of the display position of the three-dimensional virtual model as an example.
In one example, assume that the viewpoint quadrant is a first quadrant and the second quadrant is a display quadrant for displaying the toolbar. The coordinates of the toolbar position in the three-dimensional coordinate system may be (less than or equal to Xmin, Y, greater than or equal to Zmax), where Xmin is the minimum value of the three-dimensional virtual model on the X-axis in the three-dimensional coordinate system, and Zmax is the maximum value of the three-dimensional virtual model on the Z-axis in the three-dimensional coordinate system.
In another example, assume that the viewpoint quadrant is the second quadrant and the third quadrant is the display quadrant for displaying the toolbar. The coordinates of the toolbar position in the three-dimensional coordinate system may be (less than or equal to Xmin, Y, less than or equal to Zmin), where Xmin is the minimum value of the three-dimensional virtual model on the X-axis in the three-dimensional coordinate system, and Zmin is the minimum value of the three-dimensional virtual model on the Z-axis in the three-dimensional coordinate system.
In yet another example, assume that the viewpoint quadrant is the third quadrant and the fourth quadrant is the display quadrant for displaying the toolbar. The coordinates of the toolbar position in the three-dimensional coordinate system may be (greater than or equal to Xmax, Y, less than or equal to Zmin), where Xmax is the maximum value of the three-dimensional virtual model on the X-axis in the three-dimensional coordinate system, and Zmin is the minimum value of the three-dimensional virtual model on the Z-axis in the three-dimensional coordinate system.
In yet another example, assume that the viewpoint quadrant is the fourth quadrant and the third quadrant is the display quadrant for displaying the toolbar. The coordinates of the toolbar position in the three-dimensional coordinate system may be (greater than or equal to Xmax, Y, greater than or equal to Zmax), where Xmax is the maximum value of the three-dimensional virtual model on the X-axis in the three-dimensional coordinate system, and Zmax is the maximum value of the three-dimensional virtual model on the Z-axis in the three-dimensional coordinate system.
Wherein the value of Y may be greater than the height of the three-dimensional virtual model, for example, 1.3 times or 1.5 times the height of the three-dimensional virtual model, etc.
Through experimental statistics, the processes 1041 to 1044 in the foregoing embodiments take a long time, and when the toolbar position of the toolbar in the three-dimensional coordinate system is determined according to the observation point position and the to-be-displayed orientation, if the toolbar position of the toolbar in the three-dimensional coordinate system is determined according to the processes 1041 to 1044 in the foregoing embodiments each time, a long time is required to be taken to determine the toolbar position of the toolbar in the three-dimensional coordinate system, and thus the efficiency of acquiring the toolbar position is low.
Therefore, in order to improve the efficiency of acquiring the toolbar position, in another embodiment of the present application, after the toolbar position in the three-dimensional coordinate system is determined according to the viewpoint position and the to-be-displayed orientation, a mapping relation corresponding to each to-be-displayed orientation may be determined in a mapping relation corresponding to each to-be-displayed orientation, where the mapping relation includes a mapping relation between the viewpoint position in the three-dimensional coordinate system and the toolbar position in the three-dimensional coordinate system. Then, the position of the observation point and the position of the tool column can be combined into a corresponding table entry and stored in a mapping relation corresponding to the orientation to be displayed.
In this way, when the toolbar position in the three-dimensional coordinate system is determined according to the observation point position and the to-be-displayed orientation, the mapping relation corresponding to the to-be-displayed orientation can be determined in the mapping relation corresponding to each to-be-displayed orientation, and then the toolbar position corresponding to the observation point position is searched in the mapping relation corresponding to the to-be-displayed orientation. Therefore, the toolbar position in the three-dimensional coordinate system can be determined by looking up the table according to the observation point position and the to-be-displayed azimuth, and the processes 1041 to 1044 in the above embodiments may not be executed.
Through experimental statistics, the time consumed for the table lookup process is less than the time consumed for executing the processes 1041 to 1044 in the foregoing embodiment, so that the efficiency of acquiring the toolbar position can be improved through the embodiment.
In step S105, a toolbar is displayed on the display interface according to the toolbar position.
In this step, a corresponding position of the toolbar position on the display interface may be obtained, where the toolbar position includes coordinates of the toolbar in a three-dimensional coordinate system, and the corresponding position of the toolbar position on the display interface includes coordinates of the toolbar in a screen coordinate system, and therefore, a process of obtaining the corresponding position of the toolbar position on the display interface involves conversion between the coordinates in the three-dimensional coordinate system and the coordinates in the screen coordinate system, and a specific conversion manner may refer to a currently existing manner, and the present application does not limit the specific conversion manner. The toolbar may then be displayed at the toolbar position in a corresponding position on the display interface.
For example, a display interface displaying a toolbar may be as shown in FIG. 5. The tool bar and the three-dimensional virtual model are not mutually shielded.
In the application, the display position of the three-dimensional virtual model on the display interface is obtained. And determining the position of the toolbar to be displayed on the display interface relative to the three-dimensional virtual model according to the display position of the three-dimensional virtual model on the display interface. And acquiring the position of an observation point of the observation point in a three-dimensional coordinate system taking the three-dimensional virtual model as a central point. And determining the position of the toolbar in the three-dimensional coordinate system according to the position of the observation point and the position to be displayed. And displaying the toolbar on the display interface according to the toolbar position.
By the method and the device, the position of the toolbar on the display interface can be adjusted in real time according to the observation point position of the observation point in the three-dimensional virtual space and the display position of the three-dimensional virtual model on the display interface, so that the position of the toolbar on the display interface can be dynamically adjusted along with the adjustment of the observation point position of the observation point in the three-dimensional virtual space and/or the display position of the three-dimensional virtual model on the display interface, and the position of the toolbar on the display interface is prevented from being fixed. Therefore, under a possible condition, the position of the three-dimensional virtual model on the display interface can be prevented from being overlapped with the position of the toolbar on the display interface by adjusting the position of the toolbar on the display interface, so that the shielding problem can be avoided, for example, the toolbar and the three-dimensional virtual model are prevented from being shielded on the display interface, and further, the influence on the display and the control of the three-dimensional virtual model can be avoided.
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. 6, 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 model is displayed on a display interface of an electronic device, where the apparatus includes:
a first obtaining module 11, configured to obtain a display position of the three-dimensional virtual model on the display interface;
the first determining module 12 is configured to determine, according to the display position, a to-be-displayed position of the toolbar on the display interface relative to the three-dimensional virtual model;
a second obtaining module 13, configured to obtain a position of an observation point in a three-dimensional coordinate system using the three-dimensional virtual model as a central point;
a second determining module 14, configured to determine, according to the viewing point position and the to-be-displayed orientation, a toolbar position of the toolbar in the three-dimensional coordinate system;
and the display module 15 is configured to display the toolbar on the display interface according to the toolbar position.
In an optional implementation manner, the first determining module includes:
the first acquisition unit is used for acquiring the width of the toolbar;
a calculation unit for calculating a distance between the display position and an edge of a first side of the display interface;
a first determining unit, configured to determine, as the orientation to be displayed, an orientation on the display interface on a first side of the display position when the width is less than or equal to the distance;
and the second determining unit is used for determining the position on the display interface, which is positioned on the second side of the display position, as the position to be displayed under the condition that the width is greater than the distance.
In an optional implementation manner, the second determining module includes:
a third determining unit, configured to determine, in multiple quadrants of the three-dimensional coordinate system, an observation point quadrant where the observation point is located according to the observation point position;
the fourth determining unit is used for determining a display quadrant corresponding to the to-be-displayed azimuth according to the observation point quadrant in a plurality of quadrants of the three-dimensional coordinate system;
a second obtaining unit configured to obtain an extreme position of a portion of the three-dimensional virtual model located in the display quadrant;
and the third acquisition unit is used for acquiring the position of the toolbar in the three-dimensional coordinate system according to the extreme value position.
In an optional implementation manner, the third obtaining unit includes:
a determining subunit, configured to determine the extreme value position as a toolbar position of the toolbar in the three-dimensional coordinate system;
alternatively, the first and second electrodes may be,
and the selection subunit is used for selecting a position in the area of the extreme value position on the side far away from the three-dimensional virtual model in the display quadrant, and the position is used as the toolbar position.
In an optional implementation manner, the second determining module further includes:
the fifth determining unit is used for determining the mapping relation corresponding to the to-be-displayed orientation in the mapping relation corresponding to each to-be-displayed orientation, wherein the mapping relation comprises the mapping relation between the observation point position in the three-dimensional coordinate system and the toolbar position in the three-dimensional coordinate system;
and the storage unit is used for forming a corresponding table entry by the position of the observation point and the position of the tool column and storing the corresponding table entry in the mapping relation corresponding to the azimuth to be displayed.
In an optional implementation manner, the second determining module further includes:
a sixth determining unit, configured to determine, in the mapping relationships corresponding to the respective orientations to be displayed, the mapping relationships corresponding to the orientations to be displayed;
and the searching unit is used for searching the position of the toolbar corresponding to the position of the observation point in the mapping relation corresponding to the position to be displayed.
In an alternative implementation, the display module includes:
the fourth acquisition unit is used for acquiring the corresponding position of the toolbar position on the display interface;
and the display unit is used for displaying the toolbar at a corresponding position on the display interface.
In the application, the display position of the three-dimensional virtual model on the display interface is obtained. And determining the position of the toolbar to be displayed on the display interface relative to the three-dimensional virtual model according to the display position of the three-dimensional virtual model on the display interface. And acquiring the position of an observation point of the observation point in a three-dimensional coordinate system taking the three-dimensional virtual model as a central point. And determining the position of the toolbar in the three-dimensional coordinate system according to the position of the observation point and the position to be displayed. And displaying the toolbar on the display interface according to the toolbar position.
By the method and the device, the position of the toolbar on the display interface can be adjusted in real time according to the observation point position of the observation point in the three-dimensional virtual space and the display position of the three-dimensional virtual model on the display interface, so that the position of the toolbar on the display interface can be dynamically adjusted along with the adjustment of the observation point position of the observation point in the three-dimensional virtual space and/or the display position of the three-dimensional virtual model on the display interface, and the position of the toolbar on the display interface is prevented from being fixed. Therefore, under a possible condition, the position of the three-dimensional virtual model on the display interface can be prevented from being overlapped with the position of the toolbar on the display interface by adjusting the position of the toolbar on the display interface, so that the shielding problem can be avoided, for example, the toolbar and the three-dimensional virtual model are prevented from being shielded on the display interface, and further, the influence on the display and the control of the three-dimensional virtual model can be avoided.
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. 7 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. 7, 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. 8 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. 8, 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 (16)

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 model, wherein the method comprises the following steps:
acquiring a display position of the three-dimensional virtual model on the display interface;
determining the position of the toolbar to be displayed on the display interface relative to the three-dimensional virtual model according to the display position;
acquiring the position of an observation point in a three-dimensional coordinate system taking the three-dimensional virtual model as a central point;
determining the position of the toolbar in the three-dimensional coordinate system according to the observation point position and the position to be displayed;
and displaying the toolbar on the display interface according to the toolbar position.
2. The method of claim 1, wherein determining the orientation of the toolbar to be displayed on the display interface relative to the three-dimensional virtual model according to the display position comprises:
acquiring the width of the toolbar;
calculating a distance between the display location and an edge of a first side of the display interface;
determining the position on the first side of the display position on the display interface as the position to be displayed under the condition that the width is smaller than or equal to the distance;
and determining the position on the display interface on the second side of the display position as the position to be displayed when the width is larger than the distance.
3. The method of claim 1, wherein determining the toolbar position in the three-dimensional coordinate system according to the viewpoint position and the orientation to be displayed comprises:
in a plurality of quadrants of the three-dimensional coordinate system, determining an observation point quadrant where the observation point is located according to the observation point position;
determining a display quadrant corresponding to the azimuth to be displayed according to the observation point quadrant in a plurality of quadrants of the three-dimensional coordinate system;
obtaining the extreme position of a part in the three-dimensional virtual model, which is positioned in the display quadrant;
and acquiring the position of the toolbar in the three-dimensional coordinate system according to the extreme value position.
4. The method according to claim 3, wherein said obtaining the toolbar position in the three-dimensional coordinate system according to the extreme position comprises:
determining the extreme position as the toolbar position of the toolbar in the three-dimensional coordinate system;
alternatively, the first and second electrodes may be,
in the display quadrant, a position is selected in a region of the extreme position on a side away from the three-dimensional virtual model, and is used as the toolbar position.
5. The method of claim 3, further comprising:
determining a mapping relation corresponding to each orientation to be displayed in the mapping relations corresponding to the orientations to be displayed respectively, wherein the mapping relation comprises a mapping relation between an observation point position in the three-dimensional coordinate system and a toolbar position in the three-dimensional coordinate system;
and forming a corresponding table entry by the position of the observation point and the position of the tool column, and storing the table entry in a mapping relation corresponding to the azimuth to be displayed.
6. The method of claim 5, wherein determining the toolbar position in the three-dimensional coordinate system according to the viewpoint position and the orientation to be displayed comprises:
determining a mapping relation corresponding to the azimuth to be displayed in the mapping relation corresponding to each azimuth to be displayed;
and searching the position of the toolbar corresponding to the position of the observation point in the mapping relation corresponding to the position to be displayed.
7. The method of claim 1, wherein displaying the toolbar on the display interface according to the toolbar position comprises:
acquiring a corresponding position of the toolbar position on the display interface;
and displaying the toolbar at a corresponding position on the display interface.
8. An information processing apparatus, characterized in that at least a three-dimensional virtual space including at least one three-dimensional virtual model is displayed through a display interface of an electronic device, wherein the apparatus comprises:
the first acquisition module is used for acquiring the display position of the three-dimensional virtual model on the display interface;
the first determination module is used for determining the position of the toolbar to be displayed on the display interface relative to the three-dimensional virtual model according to the display position;
the second acquisition module is used for acquiring the observation point position of the observation point in a three-dimensional coordinate system taking the three-dimensional virtual model as a central point;
the second determination module is used for determining the position of the toolbar in the three-dimensional coordinate system according to the observation point position and the position to be displayed;
and the display module is used for displaying the toolbar on the display interface according to the position of the toolbar.
9. The apparatus of claim 8, wherein the first determining module comprises:
the first acquisition unit is used for acquiring the width of the toolbar;
a calculation unit for calculating a distance between the display position and an edge of a first side of the display interface;
a first determining unit, configured to determine, as the orientation to be displayed, an orientation on the display interface on a first side of the display position when the width is less than or equal to the distance;
and the second determining unit is used for determining the position on the display interface, which is positioned on the second side of the display position, as the position to be displayed under the condition that the width is greater than the distance.
10. The apparatus of claim 8, wherein the second determining module comprises:
a third determining unit, configured to determine, in multiple quadrants of the three-dimensional coordinate system, an observation point quadrant where the observation point is located according to the observation point position;
the fourth determining unit is used for determining a display quadrant corresponding to the to-be-displayed azimuth according to the observation point quadrant in a plurality of quadrants of the three-dimensional coordinate system;
a second obtaining unit configured to obtain an extreme position of a portion of the three-dimensional virtual model located in the display quadrant;
and the third acquisition unit is used for acquiring the position of the toolbar in the three-dimensional coordinate system according to the extreme value position.
11. The apparatus of claim 10, wherein the third obtaining unit comprises:
a determining subunit, configured to determine the extreme value position as a toolbar position of the toolbar in the three-dimensional coordinate system;
alternatively, the first and second electrodes may be,
and the selection subunit is used for selecting a position in the area of the extreme value position on the side far away from the three-dimensional virtual model in the display quadrant, and the position is used as the toolbar position.
12. The apparatus of claim 10, wherein the second determining module further comprises:
the fifth determining unit is used for determining the mapping relation corresponding to the to-be-displayed orientation in the mapping relation corresponding to each to-be-displayed orientation, wherein the mapping relation comprises the mapping relation between the observation point position in the three-dimensional coordinate system and the toolbar position in the three-dimensional coordinate system;
and the storage unit is used for forming a corresponding table entry by the position of the observation point and the position of the tool column and storing the corresponding table entry in the mapping relation corresponding to the azimuth to be displayed.
13. The apparatus of claim 12, wherein the second determining module further comprises:
a sixth determining unit, configured to determine, in the mapping relationships corresponding to the respective orientations to be displayed, the mapping relationships corresponding to the orientations to be displayed;
and the searching unit is used for searching the position of the toolbar corresponding to the position of the observation point in the mapping relation corresponding to the position to be displayed.
14. The apparatus of claim 8, wherein the display module comprises:
the fourth acquisition unit is used for acquiring the corresponding position of the toolbar position on the display interface;
and the display unit is used for displaying the toolbar at a corresponding position on the display interface.
15. 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 7.
16. 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 7.
CN202011556784.8A 2020-12-24 2020-12-24 Information processing method and device Pending CN112596840A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011556784.8A CN112596840A (en) 2020-12-24 2020-12-24 Information processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011556784.8A CN112596840A (en) 2020-12-24 2020-12-24 Information processing method and device

Publications (1)

Publication Number Publication Date
CN112596840A true CN112596840A (en) 2021-04-02

Family

ID=75202014

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011556784.8A Pending CN112596840A (en) 2020-12-24 2020-12-24 Information processing method and device

Country Status (1)

Country Link
CN (1) CN112596840A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130027393A1 (en) * 2011-07-28 2013-01-31 Tatsuo Fujiwara Information processing apparatus, information processing method, and program
CN110456907A (en) * 2019-07-24 2019-11-15 广东虚拟现实科技有限公司 Control method, device, terminal device and the storage medium of virtual screen
CN110548289A (en) * 2019-09-18 2019-12-10 网易(杭州)网络有限公司 Method and device for displaying three-dimensional control
CN111784844A (en) * 2020-06-09 2020-10-16 当家移动绿色互联网技术集团有限公司 Method and device for observing virtual object, storage medium and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130027393A1 (en) * 2011-07-28 2013-01-31 Tatsuo Fujiwara Information processing apparatus, information processing method, and program
CN110456907A (en) * 2019-07-24 2019-11-15 广东虚拟现实科技有限公司 Control method, device, terminal device and the storage medium of virtual screen
CN110548289A (en) * 2019-09-18 2019-12-10 网易(杭州)网络有限公司 Method and device for displaying three-dimensional control
CN111784844A (en) * 2020-06-09 2020-10-16 当家移动绿色互联网技术集团有限公司 Method and device for observing virtual object, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
US11636653B2 (en) Method and apparatus for synthesizing virtual and real objects
US11315336B2 (en) Method and device for editing virtual scene, and non-transitory computer-readable storage medium
EP3173970A1 (en) Image processing method and apparatus
CN106791893A (en) Net cast method and device
CN105487805B (en) Object operation method and device
CN107977934B (en) Image processing method and device
EP3641295B1 (en) Shooting interface switching method and apparatus, and device and storage medium thereof
CN110782532B (en) Image generation method, image generation device, electronic device, and storage medium
CN107330868A (en) image processing method and device
CN110751707B (en) Animation display method, animation display device, electronic equipment and storage medium
CN115268817A (en) Screen-projected content display method, device, equipment and storage medium
US11600300B2 (en) Method and device for generating dynamic image
CN106773750B (en) Equipment image display method and device
CN111614910B (en) File generation method and device, electronic equipment and storage medium
CN107920015B (en) Method and device for publishing picture
CN112596840A (en) Information processing method and device
CN115100253A (en) Image comparison method, device, electronic equipment and storage medium
CN110312117B (en) Data refreshing 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
CN106598217B (en) Display method, display device and electronic equipment
CN109389547B (en) Image display method and device
CN113721874A (en) Virtual reality picture display method and electronic equipment
CN108717373B (en) Name display method and device of intelligent equipment and storage medium
CN108769513B (en) Camera photographing method and device

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