Three-dimensional display method, device, electronic device and storage medium of virtual object

By acquiring and determining the target perspective and acquiring the target image data from the pre-stored image data, the problem of high efficiency of GPU computing in the prior art is solved, and more efficient data processing and cost reduction are achieved.

CN114399614BActive Publication Date: 2024-11-05HUALU NORTH CULTURAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111543763.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-16
Publication Date
2024-11-05
Estimated Expiration
2041-12-16

AI Technical Summary

Technical Problem

The existing three-dimensional digital display method of cultural resources requires high computing capabilities for computer GPUs, affects data processing efficiency, is expensive and difficult to integrate in a miniaturized manner.

Method used

By acquiring the viewing angle adjustment request, determining the target viewing angle, and obtaining the target image data from the image data corresponding to each viewing angle that is stored in advance, reducing the multi-camera acquisition requirement during each viewing angle adjustment and saving GPU computing.

Benefits of technology

It improves data processing efficiency, reduces the computer computing burden, and accurately determines the target perspective through the establishment of spatial viewing models and virtual observation points, reduces data processing volume and reduces system costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114399614B_ABST
    Figure CN114399614B_ABST
Patent Text Reader

Abstract

The present invention relates to a three-dimensional display method, device, electronic device and storage medium for a virtual object, the method comprising: obtaining a view angle adjustment request for an object to be displayed, the view angle adjustment request including an offset view angle relative to a current view angle; determining a target view angle of the object to be displayed according to the offset view angle and the current view angle; determining target image data corresponding to the target view angle according to the target view angle and pre-stored image data of the object to be displayed corresponding to each view angle; and performing three-dimensional display of the target image data. By using the method of the present invention, it is not necessary to collect an image of the object to be displayed once through multiple cameras each time the view angle is adjusted, which can save the computational workload of a computer GPU and improve data processing efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer and data processing technology, and in particular to a three-dimensional display method, device, electronic device and storage medium for a virtual object. Background Art

[0002] With the rapid development of technology, human society has entered the information society and knowledge society, which has brought with it a huge amount of information data. However, due to the continuous technological innovation of digital storage media, the long-term preservation of digital information has opened up a wide range of application fields compared to traditional physical preservation methods. The digital protection and application of cultural relics and cultural heritage has become a topic of increasing importance.

[0003] Cultural relics protection units and museums at all levels have successively carried out digital collection of cultural resources, and the application of digitized data has also been widely developed. The existing digital three-dimensional display of cultural resources usually uses terminals based on naked-eye three-dimensional technology for display. Before the display, it is necessary to arrange multiple cameras around the object to be displayed. During the display process, multiple cameras are set up to work simultaneously to collect multiple images of the object to be displayed, and then these multiple images are processed to make the object to be displayed present a three-dimensional effect through the terminal based on naked-eye three-dimensional technology. This three-dimensional display method has extremely high requirements on the computing power of the computer GPU, which affects the data processing efficiency. At the same time, due to the high requirements of the graphics card, the cost of the exhibition equipment is very high and it is difficult to integrate in a miniaturized manner. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a three-dimensional display method, device, electronic device and storage medium for virtual objects, aiming to solve the problem of how to improve data processing efficiency.

[0005] In a first aspect, the technical solution of the present invention to solve the above technical problem is as follows: a three-dimensional display method of a virtual object, the method comprising:

[0006] Obtaining a viewing angle adjustment request for an object to be displayed, wherein the viewing angle adjustment request includes an offset viewing angle of the object to be displayed relative to a current viewing angle;

[0007] Determine the target viewing angle of the object to be displayed according to the offset viewing angle and the current viewing angle;

[0008] Determine target image data corresponding to the target viewing angle according to the target viewing angle and pre-stored image data of the object to be displayed corresponding to each viewing angle;

[0009] Perform three-dimensional display of target image data.

[0010] The beneficial effect of the present invention is as follows: when a user wants to adjust the viewing angle of an object to be displayed, a view adjustment request is initiated, the view adjustment request includes an offset view of the object to be displayed relative to the current view, and the adjusted view (target view) can be determined based on the offset view and the current view. For different view angles, image data of the object to be displayed corresponding to each view angle is pre-stored, and based on the target view angle, target image data corresponding to the target view angle can be determined from the pre-stored image data corresponding to each view angle. Through the solution of the present invention, it is not necessary to capture an image of the object to be displayed through multiple cameras each time the view angle is adjusted, which can save the computing power of a computer GPU and improve data processing efficiency.

[0011] Based on the above technical solution, the present invention can also be improved as follows.

[0012] Furthermore, the method further comprises:

[0013] Establishing a spatial framing model corresponding to the object to be displayed, the spatial framing model is a sphere generated with the position of the object to be displayed as the center and the distance from the center to the set main observation point as the radius, each circle of the spatial framing model including the main observation point includes a plurality of virtual observation points, each observation point corresponds to a viewing angle, the viewing angle corresponding to the main observation point is the set viewing angle, and the current viewing angle includes the set viewing angle; the image data of the object to be displayed corresponding to each viewing angle stored in advance includes the image data of the object to be displayed corresponding to the position of each observation point;

[0014] The above-mentioned determining the target viewing angle of the object to be displayed according to the offset viewing angle and the current viewing angle includes:

[0015] Determine the position of the target virtual observation point according to the offset perspective and the position of the current observation point corresponding to the current perspective, and use the perspective corresponding to the target virtual observation point as the target perspective;

[0016] The above-mentioned determining the target image data corresponding to the target viewing angle according to the target viewing angle and the pre-stored image data of the to-be-displayed object corresponding to each viewing angle includes:

[0017] The image data corresponding to the target virtual observation point is determined according to the position of the target virtual observation point and the pre-stored image data of the to-be-displayed object corresponding to the positions of each observation point.

[0018] The beneficial effect of adopting the above further scheme is that multiple cameras are represented by the main observation point and multiple virtual observation points in the established spatial framing model, and the image data of different perspectives are the image data corresponding to different observation points. Then, when determining the target perspective, the determined perspective is converted into the position of the determined virtual observation point, and the target image data corresponding to the determined target perspective is converted into the image data corresponding to the determined target virtual observation point. In the scheme of the present invention, the target image data corresponding to the target perspective can also be accurately determined through the spatial framing model.

[0019] Further, the image data of the object to be displayed corresponding to each observation point includes image data without background and image data with background, and the viewing angle adjustment request includes an object viewing angle adjustment request or an overall viewing angle adjustment request, and the overall viewing angle adjustment request refers to a request for adjusting both the viewing angle of the object to be displayed and the viewing angle of the background of the object to be displayed;

[0020] If the viewing angle adjustment request is an object viewing angle adjustment request, the target image data is image data without background, and the target image data is displayed in three dimensions, including:

[0021] Perform three-dimensional display of background-free image data corresponding to the target perspective;

[0022] If the viewing angle adjustment request is an overall viewing angle adjustment request, the target image data includes image data without background and image data with background, and the target image data is displayed in three dimensions, including:

[0023] Fusing the image data without background and the image data with background corresponding to the target perspective to obtain fused image data;

[0024] The fused image data is displayed in three dimensions.

[0025] The beneficial effect of adopting the above further scheme is that, in the scheme of the present invention, only the viewing angle of the displayed object to be displayed itself can be adjusted, and the viewing angle of the background of the object to be displayed can remain unchanged and not be adjusted, or the viewing angle of the object to be displayed itself and the background of the object to be displayed can be adjusted together, which can meet different adjustment needs. When it is necessary to adjust the viewing angle of the display object itself and the background of the object to be displayed together, the image data without background and the image data with background corresponding to the target viewing angle can be fused first to obtain fused image data. The fused image data is the image data corresponding to the target viewing angle including the background and the object to be displayed, and the fused image data is displayed in three dimensions so that the displayed image includes the background and the object to be displayed under the target viewing angle.

[0026] Further, the above-mentioned determining the position of the target virtual observation point according to the position of the current observation point corresponding to the offset perspective and the current perspective includes:

[0027] Determine the position of the reference observation point according to the offset viewing angle and the position of the current observation point;

[0028] According to the position of the reference observation point, the virtual observation point closest to the reference observation point in the spatial framing model is determined, and the position of the virtual observation point closest to the reference observation point is used as the position of the target virtual observation point.

[0029] The beneficial effect of adopting the above further scheme is that, according to the offset perspective and the position of the main observation point, the position of the reference observation point can be determined. The position of the reference observation point may not be the virtual observation point in the spatial framing model. Based on the distance between the position of the reference observation point and the positions of each virtual observation point in the spatial framing model, it can be determined which virtual observation point the offset perspective corresponds to, that is, the virtual observation point that is closest to the position of the reference observation point. The position of the target observation point can be accurately determined by means of distance.

[0030] Furthermore, the above-mentioned determining, according to the position of the reference observation point, the virtual observation point which is closest to the position of the reference observation point among the virtual observation points in the space framing model includes:

[0031] Determine the target normal vector according to the position of the reference observation point and the position of the object to be displayed;

[0032] Determine, from each virtual observation point of the spatial viewing model, each initial virtual observation point contained on a spherical surface perpendicular to the target normal vector;

[0033] A virtual viewpoint whose distance to the target normal vector is shortest is determined from among the initial virtual viewpoints.

[0034] The beneficial effect of adopting the above-mentioned further scheme is that, in the process of determining the position of the target observation point, taking into account that the plane corresponding to the observer's perspective is usually perpendicular to the ground, the target virtual observation point corresponding to the adjusted perspective is usually also a virtual observation point on the plane corresponding to the observer's perspective. Based on this, in the scheme of the present invention, the target normal vector can be first determined according to the position of the reference observation point and the position of the object to be displayed. The target normal vector is usually parallel to the ground. The spherical surface perpendicular to the target normal vector in the spatial framing model is the plane corresponding to the observer's perspective. Then, the virtual observation point with the closest distance to the target normal vector is determined from the initial virtual observation points. This not only ensures the accuracy of the determination of the target virtual observation point, but also reduces the amount of data processing.

[0035] Furthermore, the target virtual observation point includes at least two target virtual observation points, and according to the positions of the target virtual observation points and the image data of the to-be-displayed object corresponding to the positions of the pre-stored observation points, the target image data corresponding to the target virtual observation points is determined, including:

[0036] Determine the image data corresponding to each target virtual observation point according to the position of each target virtual observation point of at least two target virtual observation points and the image data of the to-be-displayed object corresponding to the position of each observation point stored in advance;

[0037] Splitting the image data corresponding to each of the target virtual observation points into a plurality of sub-images;

[0038] The sub-images corresponding to the target virtual observation points are cross-joined to obtain image data to be displayed, and the image data to be displayed is used as the target image data.

[0039] The beneficial effect of adopting the above further scheme is that, when there are at least two target virtual observation points, the image data corresponding to each of the target virtual observation points can be divided into multiple sub-images, and then the sub-images corresponding to each of the target virtual observation points are cross-spliced ​​to obtain the image data to be displayed, so that the final three-dimensional display can present a better three-dimensional display effect.

[0040] Furthermore, the above-mentioned fusion of the image data without background and the image data with background corresponding to the target perspective to obtain fused image data includes:

[0041] The image data without background and the image data with background are superimposed to obtain fused image data.

[0042] The beneficial effect of adopting the above further scheme is that when it is necessary to adjust the perspective of the display object itself and the background of the object to be displayed together, the image data without background and the image data with background corresponding to the target perspective can be superimposed first, and the superimposed image data contains both the object to be displayed and the background.

[0043] In a second aspect, in order to solve the above technical problems, the present invention further provides a three-dimensional display device for virtual objects, the device comprising:

[0044] In a third aspect, in order to solve the above-mentioned technical problems, the present invention also provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the three-dimensional display method of the virtual object of the present application is implemented.

[0045] In a fourth aspect, in order to solve the above-mentioned technical problem, the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the three-dimensional display method of the virtual object of the present application is implemented.

[0046] Additional aspects and advantages of the present application will be partially given in the following description, which will become apparent from the following description, or will be understood through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for describing the embodiments of the present invention are briefly introduced below.

[0048] Figure 1 A schematic flow chart of a three-dimensional display method of a virtual object provided by an embodiment of the present invention;

[0049] Figure 2 A schematic diagram of a spatial framing model provided by an embodiment of the present invention;

[0050] Figure 3 A schematic diagram of a sweet corner provided by one embodiment of the present invention;

[0051] Figure 4 A schematic diagram of a flow chart of a method for displaying a virtual object provided by an embodiment of the present invention;

[0052] Figure 5 A schematic diagram of a structure of feedback information provided by an embodiment of the present invention;

[0053] Figure 6 A schematic diagram of the structure of a digital information resource provided by an embodiment of the present invention;

[0054] Figure 7 A schematic diagram of the structure of an environmental resource provided by an embodiment of the present invention;

[0055] Figure 8 A schematic diagram of the structure of a three-dimensional display system for virtual objects provided by an embodiment of the present invention;

[0056] Fig. 9 A schematic diagram of observation points corresponding to an initial moment and interactions provided by an embodiment of the present invention;

[0057] Fig.10 A schematic structural diagram of a three-dimensional display device for a virtual object provided by an embodiment of the present invention;

[0058] Fig.11 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0059] The principles and features of the present invention are described below. The examples given are only used to explain the present invention and are not used to limit the scope of the present invention.

[0060] The technical solution of the present invention and how the technical solution of the present invention solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will be described below in conjunction with the accompanying drawings.

[0061] The solution provided by the embodiment of the present invention can be applied to any application scenario where digital resources of virtual objects need to be displayed on a terminal. The solution provided by the embodiment of the present invention can be executed by any electronic device, for example, it can be a display terminal for displaying virtual objects, and an application can be installed and run on the terminal.

[0062] The embodiment of the present invention provides a possible implementation method, such as Figure 1 As shown, a flowchart of a method for three-dimensional display of a virtual object is provided. The solution can be executed by any electronic device, for example, a terminal device, or a terminal device and a server (for example, a GPU) together. For the convenience of description, the method provided by the embodiment of the present invention will be described below by taking the server as the execution subject as an example. Figure 1 The method may include the following steps:

[0063] Step S110: obtaining a viewing angle adjustment request for the object to be displayed, wherein the viewing angle adjustment request includes an offset viewing angle of the object to be displayed relative to the current viewing angle.

[0064] Step S120: determining a target viewing angle of the object to be displayed according to the offset viewing angle and the current viewing angle.

[0065] Step S130 , determining target image data corresponding to the target viewing angle according to the target viewing angle and pre-stored image data of the to-be-displayed object corresponding to each viewing angle.

[0066] Step S140: display the target image data in three dimensions.

[0067] According to the method of the present invention, when a user wants to adjust the viewing angle of an object to be displayed, a view adjustment request is initiated. The view adjustment request includes an offset view of the object to be displayed relative to the current view. According to the offset view and the current view, the adjusted view (target view) can be determined. For different view angles, image data of the object to be displayed corresponding to each view angle is pre-stored. Based on the target view angle, target image data corresponding to the target view angle can be determined from the pre-stored image data corresponding to each view angle. According to the solution of the present invention, it is not necessary to collect an image of the object to be displayed through multiple cameras each time the view angle is adjusted, which can save the computing power of the computer GPU and improve the data processing efficiency.

[0068] The solution of the present invention is further described below in conjunction with the following specific embodiments. In this embodiment, the three-dimensional display method of a virtual object may include the following steps:

[0069] Step S110: obtaining a viewing angle adjustment request for the object to be displayed, wherein the viewing angle adjustment request includes an offset viewing angle of the object to be displayed relative to the current viewing angle.

[0070] The viewing angle adjustment request refers to a user's request to adjust the current viewing angle. The request may be generated based on a trigger operation of the user on the client interface of the terminal device. The specific form of the trigger operation is configured as needed. For example, it may be a trigger action of a specific operation position of the user on the interface of the application of the terminal device. In actual use, the trigger operation may be a trigger selection operation for a related trigger identifier. The specific form of the trigger identifier may be configured according to actual needs. For example, it may be a designated virtual button or input box on the client interface. Specifically, for example, it may be a virtual button "XXX" displayed on the client interface. "XXX" may represent an offset viewing angle. The user clicking the virtual button indicates that the user wants to adjust the current viewing angle.

[0071] The current viewing angle may be a default viewing angle, that is, a set viewing angle mentioned below, and the set viewing angle indicates an initial viewing angle corresponding to when an object is displayed through a terminal.

[0072] The offset perspective refers to the angle adjusted based on the current perspective. The offset includes adjusting the object to be displayed at different angles, for example, turning 30 degrees to the left along the Y axis (vertical to the ground) of the object to be displayed, turning 60 degrees to the right along the Y axis of the object to be displayed, etc.

[0073] The objects to be displayed refer to virtual objects to be displayed, which may include cultural relics, handicrafts, etc.

[0074] Step S120: determining a target viewing angle of the object to be displayed according to the offset viewing angle and the current viewing angle.

[0075] The target viewing angle is the viewing angle adjusted according to the viewing angle adjustment request.

[0076] Step S130 , determining target image data corresponding to the target viewing angle according to the target viewing angle and pre-stored image data of the to-be-displayed object corresponding to each viewing angle.

[0077] The image data of the object to be displayed corresponding to each viewing angle is stored in advance, and when the viewing angle needs to be adjusted, it can be directly queried from the stored image data, thereby reducing the amount of data processing. It should be noted that for different objects to be displayed, each object to be displayed stores image data corresponding to each viewing angle, and the image data is two-dimensional image data, which can be captured at each viewing angle by an image acquisition device to obtain image data corresponding to each viewing angle.

[0078] In an optional solution of the present invention, when storing image data corresponding to each viewing angle, each viewing angle and the image data corresponding to each viewing angle may be stored in an indexed manner.

[0079] Step S140: display the target image data in three dimensions.

[0080] The target image data can be displayed in three dimensions by naked eye three-dimensional technology, and how to achieve it is a prior art and will not be described here. The target terminal is a terminal that can display three-dimensional data. For example, the target terminal is equipped with a glass grating type naked eye 3D display for three-dimensional image display, and a three-dimensional effect can be presented through the glass grating.

[0081] In an optional embodiment of the present invention, the method may further include:

[0082] Establishing a spatial framing model corresponding to the object to be displayed, the spatial framing model is a sphere generated with the position of the object to be displayed as the center and the distance from the center to the set main observation point as the radius, each circle of the spatial framing model including the main observation point includes a plurality of virtual observation points, each observation point corresponds to a viewing angle, the viewing angle corresponding to the main observation point is the set viewing angle, and the current viewing angle includes the set viewing angle; the image data of the object to be displayed corresponding to each viewing angle stored in advance includes the image data of the object to be displayed corresponding to the position of each observation point;

[0083] According to the offset perspective and the current perspective, the target perspective of the object to be displayed is determined, including:

[0084] Determine the position of the target virtual observation point according to the offset perspective and the position of the current observation point corresponding to the current perspective, and use the perspective corresponding to the target virtual observation point as the target perspective;

[0085] Determining target image data corresponding to the target perspective according to the target perspective and pre-stored image data of the to-be-displayed object corresponding to each perspective includes:

[0086] The image data corresponding to the target virtual observation point is determined according to the position of the target virtual observation point and the pre-stored image data of the to-be-displayed object corresponding to the positions of each observation point.

[0087] In the solution of the present invention, before displaying the object to be displayed, a spatial framing model of the object to be displayed is pre-established, the main observation point is a reference observation point, and the viewing angle corresponding to the main observation point can be the viewing angle corresponding to the main view of the object to be displayed by the observer. The viewing angle corresponding to the main observation point can be used as the default viewing angle, that is, the set viewing angle. When the object to be displayed is displayed for the first time through the terminal, the set viewing angle can be used to display the object to be displayed, and the above-mentioned current viewing angle can be the set viewing angle.

[0088] In the spatial framing model, there are multiple observation points (one main observation point and multiple virtual observation points), and the position of each observation point corresponds to a viewing angle. The image data of the object to be displayed corresponding to each viewing angle stored in advance can be represented by the image data corresponding to the position of each observation point. When determining the target viewing angle and target image data of the object to be displayed, they can be determined based on the position of each observation point in the spatial framing model. The position of each observation point can correspond to an image acquisition device, and the image data of the object to be displayed corresponding to each observation point can be obtained through the image acquisition device corresponding to each observation point.

[0089] When storing the image data of the object to be displayed corresponding to the position of each observation point, the position of each observation point can be numbered, and the position numbering can be performed in the order of polar coordinates corresponding to each observation point or in the order of xyz coordinates. For each observation point, the position number represents the position of the observation point. When storing the image data corresponding to the position number of each observation point in an indexed manner, each position number can be used as an index number in the index to store the image data corresponding to each position number.

[0090] As an example, see Figure 2 The schematic diagram of the spatial framing model shown in Figure 2 In the embodiment, the spatial view model is a sphere, and the spatial view model includes a plurality of virtual observation points, and the distance between every two virtual observation points is the same, and each observation point corresponds to a position number.

[0091] In an optional solution of the present invention, the distance between every two observation points can be the same. The smaller the distance, the finer the division of the viewing angle. The distance between every two observation points is not greater than the sweet angle spacing, where the "sweet angle" can be understood as a viewing angle, which can be understood as the maximum angle that an observer can move when watching the image output by the grating filter in the naked eye 3D display (the naked eye 3D display is a display configured by the target terminal, through which the 3D display effect can be achieved) while watching the image remain unchanged. For details, please refer to Figure 3 The sweet angle diagram is shown. The sweet angle spacing refers to the distance between two positions corresponding to the maximum angle that the viewer can move while the image remains unchanged.

[0092] In an optional solution of the present invention, the image data of the object to be displayed corresponding to each observation point includes image data without background and image data with background, and the viewing angle adjustment request includes an object viewing angle adjustment request or an overall viewing angle adjustment request, and the overall viewing angle adjustment request refers to a request for adjusting both the viewing angle of the object to be displayed and the viewing angle of the background of the object to be displayed;

[0093] If the viewing angle adjustment request is an object viewing angle adjustment request, the target image data is image data without background, and the target image data is displayed in three dimensions, including:

[0094] Perform three-dimensional display of background-free image data corresponding to the target perspective;

[0095] If the viewing angle adjustment request is an overall viewing angle adjustment request, the target image data includes image data without background and image data with background, and the target image data is displayed in three dimensions, including:

[0096] Fusing the image data without background and the image data with background corresponding to the target perspective to obtain fused image data;

[0097] The fused image data is displayed in three dimensions.

[0098] The image data of the object to be displayed corresponding to each of the above observation points include image data without background and image data with background, wherein the image data with background does not include the object to be displayed. When collecting image data corresponding to the object to be displayed, it is necessary to collect image data without background and image data with background. When storing the image data with background and image data without background, they can be stored according to the position number of each observation point. Then, the image data without background and the image data with background corresponding to the target perspective are fused to obtain fused image data, and the fused image data is displayed in three dimensions.

[0099] In an optional solution of the present invention, the above-mentioned fusion of the image data without background and the image data with background corresponding to the target perspective to obtain the fused image data includes:

[0100] The image data without background and the image data with background are superimposed to obtain fused image data.

[0101] Among them, superimposing two different types of image data can make the superimposed image data still the corresponding image data in the target scene, and the superimposed image data includes both the object to be displayed and the background.

[0102] In an optional solution of the present invention, determining the position of the target virtual observation point according to the position of the observation point corresponding to the offset viewing angle and the current viewing angle includes:

[0103] Determine the position of the reference observation point according to the offset viewing angle and the position of the current observation point;

[0104] According to the position of the reference observation point, the virtual observation point closest to the reference observation point in the spatial framing model is determined, and the position of the virtual observation point closest to the reference observation point is used as the position of the target virtual observation point.

[0105] The reference observation point is an observation point determined based on the offset perspective, and the reference observation point may not be any of the observation points in the spatial view model, but may be one of the observation points in the spatial view model. The reference observation point and the current observation point may be on the same circle.

[0106] Optionally, the distance between each virtual observation point in the spatial viewing model and the reference observation point may be a Euclidean distance.

[0107] Optionally, one implementation method of determining the position of the reference observation point according to the offset view angle and the position of the current observation point is: determining a posture offset vector according to the offset view angle and the position of the current observation point, and taking the position of the intersection of the posture offset vector and the spatial framing model as the position of the reference observation point. The posture offset vector is a vector determined according to the offset view angle with the position of the current observation point as the starting point.

[0108] In an optional solution of the present invention, the above-mentioned determining, according to the position of the reference observation point, the virtual observation point which is closest to the position of the reference observation point among the virtual observation points in the spatial framing model comprises:

[0109] Determine the target normal vector according to the position of the reference observation point and the position of the object to be displayed;

[0110] Determine, from each virtual observation point of the spatial viewing model, each initial virtual observation point contained on a spherical surface perpendicular to the target normal vector;

[0111] A virtual viewpoint whose distance to the target normal vector is shortest is determined from among the initial virtual viewpoints.

[0112] Among them, the target normal vector is the vector between the position of the object to be displayed and the position of the reference observation point, and the spherical surface perpendicular to the target normal vector is the field of view plane corresponding to the observer under the target viewing angle. In the process of determining the position of the target observation point, considering that the plane corresponding to the observer's viewing angle is usually perpendicular to the ground, the target virtual observation point corresponding to the adjusted viewing angle is usually also a virtual observation point on the plane corresponding to the observer's viewing angle. Based on this, in the scheme of the present invention, the target normal vector can be first determined according to the position of the reference observation point and the position of the object to be displayed. The target normal vector is usually parallel to the ground. The spherical surface perpendicular to the target normal vector in the spatial framing model is the plane corresponding to the observer's viewing angle. Then, the virtual observation point with the closest distance to the target normal vector is determined from each initial virtual observation point. This can not only ensure the accuracy of the determination of the target virtual observation point, but also reduce the amount of data processing.

[0113] In an optional solution of the present invention, the target virtual observation point includes at least two target virtual observation points, and according to the positions of the target virtual observation points and the image data of the object to be displayed corresponding to the positions of the pre-stored observation points, the target image data corresponding to the target virtual observation points is determined, including:

[0114] Determine the image data corresponding to each target virtual observation point according to the position of each target virtual observation point of at least two target virtual observation points and the image data of the to-be-displayed object corresponding to the position of each observation point stored in advance;

[0115] Splitting the image data corresponding to each of the target virtual observation points into a plurality of sub-images;

[0116] The sub-images corresponding to the target virtual observation points are cross-joined to obtain image data to be displayed, and the image data to be displayed is used as the target image data.

[0117] Wherein, the determined target virtual observation point may be more than one, that is, the target perspective corresponds to the perspectives corresponding to multiple target virtual observation points, and the image data corresponding to each of the target virtual observation points can be divided into multiple sub-images, and the sub-images corresponding to each of the target virtual observation points are cross-spliced ​​to obtain the target image data corresponding to the target perspective. Wherein, the number of sub-images corresponding to each target virtual observation point can be the same or different. The above-mentioned cross-splicing of the sub-images refers to mixing the sub-images together to splice them into one image.

[0118] As an example, assume that there are two target virtual observation points, namely target virtual observation point A and target virtual observation point B, and each target virtual observation point corresponds to a complete image of the exhibit. The image corresponding to the target virtual observation point A is divided into multiple sub-images, such as 10 sub-images from a1 to a10, and the image corresponding to the target virtual observation point B is divided into multiple sub-images, such as 10 sub-images from b1 to b10. One implementation method of cross-stitching the 10 sub-images a1 to a10 and the 10 sub-images b1 to b10 is: stitch these 20 sub-images together in the order of a1, b1, a2, b2,... to obtain target image data. The target image data displayed under the action of the grating filter is the three-dimensional display effect of the target image data corresponding to the target perspective. It should be noted that the implementation method of cross-splicing in the above example is only an example, and the solution of the present invention is not limited to this implementation method. For example, cross-splicing can also be performed in the manner of a1, a2, b1, b2, a3, a4, b3, b4,...

[0119] After determining the target image data corresponding to the target viewing angle, it is necessary to display it in three dimensions through the terminal device, for example, based on naked eye three-dimensional technology. In the prior art, the digital display of the target image data requires the use of specific display devices and control devices, which have high requirements on the devices and poor universality.

[0120] Based on this, see Figure 4 The present invention provides the following technical solution, so that the target image data can be applied to ordinary terminal devices, and the solution specifically includes:

[0121] Step S210, obtaining a target terminal and terminal parameters of the target terminal;

[0122] Step S220, determining a target application corresponding to the target terminal according to the terminal parameters of the target terminal;

[0123] Step S230, obtaining configuration resources of the object to be displayed corresponding to the terminal parameters, wherein the configuration resources include digital information resources and display parameter resources corresponding to the object to be displayed;

[0124] Step S240: sending the configuration resources and the target application to the target terminal, so that the target terminal displays the object to be displayed according to the configuration resources through the target application.

[0125] The digital information resources of the object to be displayed may include target image data of the object to be displayed.

[0126] The following is a detailed description of the scheme:

[0127] Step S210, obtaining a target terminal and terminal parameters of the target terminal.

[0128] The target terminal refers to a terminal used to display an object to be displayed, and the target terminal may be one or more. A target terminal may be used to display digital information of a virtual object. The virtual object may be a cultural relic, a handicraft, etc.

[0129] The terminal parameters of the target terminal are parameters that reflect the terminal's display capabilities, such as screen size, resolution, refresh rate, power requirements, operating system, hardware processing capabilities, whether it is possible to interact with virtual objects, how it is possible to interact (for example, interacting with displayed virtual objects through a handle configured on the terminal, etc.), and other parameters.

[0130] The target terminal may be selected by the server or by the user, and the step of obtaining the target terminal may include: obtaining a deployment request from an administrator, wherein the deployment request includes a first terminal identifier of the target terminal; determining the target terminal according to the first terminal identifier;

[0131] Alternatively, sending a broadcast message; receiving feedback information sent by at least one terminal based on the broadcast message, the feedback information including a second terminal identifier of each terminal in at least one terminal; determining a target terminal according to each second terminal identifier, the at least one terminal including the target terminal.

[0132] Among them, the deployment request refers to the administrator's request to display the object to be displayed on a certain terminal. The request can be generated based on the administrator's trigger operation on the client interface of the terminal device. The specific form of the trigger operation is configured according to needs. For example, it can be a trigger action of the administrator at a specific operation position on the interface of the application of the terminal device. In actual use, the trigger operation can be a trigger selection operation for the relevant trigger identifier. Among them, the specific form of the trigger identifier can be configured according to actual needs. For example, it can be a designated virtual button or input box on the client interface. Specifically, for example, it can be a virtual button of "XXX" displayed on the client interface. The administrator's operation of clicking the virtual button indicates that the administrator wants to view the digital resources of the virtual object corresponding to "XXX".

[0133] Among them, each terminal corresponds to a terminal identifier, and each terminal is distinguished by different terminal identifiers. The first terminal identifier is the terminal identifier corresponding to the target terminal. The terminal identifier can be at least one of text, numbers or characters. The specific form of the terminal identifier is not limited in the present invention.

[0134] The broadcast message may be a message without actual meaning, and is used to determine whether each terminal connected to the server is working properly, for example, whether the communication connection with the server is maintained. If the server can receive feedback information from the terminal based on the broadcast message, it proves that the terminal is working properly, and the terminal can be used as the target terminal. The second terminal identifier is used to identify the identity of the terminal that can return feedback information to the server.

[0135] If the server does not receive feedback information from the terminal, it may indicate that the terminal is working abnormally. For example, abnormal reminder information may be generated and sent to the administrator's terminal device. The abnormal reminder information includes the terminal identifier of the terminal that did not send feedback information.

[0136] In an optional solution of the present invention, each terminal is checked in rotation via broadcast messages, that is, a broadcast message is sent once at set time intervals. If feedback information sent by any one of the terminals based on the broadcast message is not received within the set time, an abnormal reminder message is generated and sent to the administrator's terminal device. The abnormal reminder message includes the terminal identification of any terminal, the set time is greater than the set time interval, and at least one terminal is a terminal in the activation list.

[0137] The setting time length being greater than the setting time interval indicates that the feedback information has not been received at least once within the setting time. As an example, if the setting time is 3 minutes and the setting time interval is 2 minutes, a broadcast message can be sent to the terminal once within the setting time. If the setting time is 2 minutes and the time interval is 1 minute, a broadcast message can be sent to the terminal twice within the setting time.

[0138] In an optional solution of the present invention, when no feedback information is received after sending two broadcast messages, that is, when the server does not receive feedback information twice, it can be determined that the terminal is abnormal, so that whether the terminal is working abnormally can be determined more accurately.

[0139] In an optional solution of the present invention, the terminals with abnormal operation may be marked so as to distinguish which terminals can work normally and which terminals have abnormal operation.

[0140] In an optional solution of the present invention, it is also possible to detect whether a new terminal has been added through a broadcast message, and the specific implementation method is: at least one terminal includes a terminal in an activation list and a terminal in an inactivation list, the terminal in the activation list indicates a terminal that has been used before, that is, a terminal that has displayed a digital resource of a virtual object, and the terminal in the inactivation list indicates a new terminal. After the server sends a broadcast message to at least one terminal, if feedback information from a terminal in the inactivation list is received, the terminal can be put into the activation list and marked as a terminal that is working normally.

[0141] In an optional solution of the present invention, for each terminal that receives feedback information, each feedback information includes a feedback information type identifier (hereinafter referred to as a feedback information type identifier number), through which it can be characterized whether the feedback information is valid feedback information, valid feedback information refers to feedback information containing terminal parameters, invalid feedback information refers to feedback information not containing terminal parameters, the terminal corresponding to the valid feedback information is used as the target terminal, and the terminal corresponding to the invalid feedback information is not used as the target terminal. By further judging the feedback information, the accuracy of determining the target terminal can be improved.

[0142] In an optional solution of the present invention, information sent by the terminal to the server is processed by the first thread and stored in the message receiving queue, information sent by the user to the server is processed by the second thread and stored in the signaling control queue, information sent by the server to the terminal is processed by the third thread, and information sent to the terminal is stored in the message sending queue. Then, in the solution of the present invention, the above-mentioned receiving feedback information sent by at least one terminal based on the broadcast message includes: receiving feedback information of at least one terminal through the first thread, and storing each feedback information in the message receiving queue;

[0143] The obtaining of the user's deployment request includes: obtaining the administrator's deployment request through a second thread, and storing the deployment request in a signaling control queue;

[0144] The sending of the configuration resources and the target application to the target terminal includes: sending the configuration resources and the target application to the target terminal through a third thread;

[0145] The sending of the broadcast message includes: sending the broadcast message through a third thread, and storing the configuration resources, the target application and the broadcast message in a message sending queue.

[0146] In an optional solution of the present invention, if the target terminal is obtained based on a deployment request, the terminal parameters of the target terminal can be determined by the deployment request. If the target terminal is determined based on a broadcast message, the above feedback information can also include terminal parameters, that is, the terminal informs the server of the terminal parameters of the terminal through the feedback information.

[0147] In an optional solution of the present invention, if the target terminal is determined based on a broadcast message, the broadcast message includes protocol header information, the type of terminals allowed to respond, a broadcast response time limit, and an encryption method identification number.

[0148] The protocol header information refers to the protocol header information of the communication protocol between the server and the terminal, the terminal type allowed to respond refers to the type of terminal that allows the three-dimensional display of virtual objects, and the broadcast response time limit refers to the time limit for the terminal to send feedback information to the server. The encryption method identification number refers to the encryption method of the broadcast message.

[0149] After receiving the broadcast message sent by the server, the terminal will send feedback information to the server based on the broadcast message, see Figure 5 The structural diagram of the feedback information (also referred to as reporting information) shown in Figure 5 The feedback information includes at least one of a feedback information type identification number, an exhibition terminal identification number, an exhibition terminal type, a screen size identification number, a screen resolution identification number, and a human-computer interaction identification number.

[0150] In the optional solution of the present invention, if the server receives the feedback information fed back by the terminal as described above, it indicates that the terminal is working normally, and if the feedback information is not received, it indicates that the terminal is working abnormally. Another way to determine whether the terminal is working normally can be used. Specifically, whether the terminal is working normally can be determined according to the feedback information type identification number in the feedback information. Different feedback information type identification numbers represent different working states. For example, the feedback information type identification number is 1 or 0, 1 indicates that the terminal is working normally, and 0 indicates that the terminal is working abnormally, wherein each feedback information type identification number can correspond to a field frame format.

[0151] Among them, the exhibition terminal identification number refers to the terminal identification of the terminal that feeds back the feedback information, which is used to ensure the identity of the terminal. The exhibition terminal type represents the terminal type of the terminal that feeds back the feedback information. For example, it can be divided according to the operating system. The terminal corresponding to system A is one type, and the terminal corresponding to system B is another type. The screen size identification number represents the size of the screen of the terminal that feeds back the feedback information. The screen resolution identification number represents the screen resolution of the terminal that feeds back the feedback information. The human-computer interaction identification number represents the human-computer interaction accessories equipped with the terminal that feeds back the feedback information, such as a handle, a light controller, a somatosensory sensor, a photoelectric sensor, etc. The human-computer interaction identification number can be used to inform the server or user of what kind of human-computer interaction capabilities and corresponding devices the terminal that feeds back the feedback information has.

[0152] Step S220: determining a target application corresponding to the target terminal according to the terminal parameters of the target terminal.

[0153] Among them, according to the terminal parameters of the target terminal, the display capability of the target terminal can be known. Different terminal parameters correspond to different configured applications. In the optional scheme of the present invention, a first corresponding relationship between each terminal parameter and each application can be established. Based on the first relationship and the terminal parameters of the target terminal, the target application corresponding to the target terminal can be determined.

[0154] As an example, for example, the terminal parameter is the operating system, the application corresponding to operating system A is application A, and the application corresponding to operating system B is application B. If the operating system of the target terminal is operating system A, the target application is application A.

[0155] It should be noted that in actual applications, the same application may also correspond to different types of terminal parameters. For example, if the terminal parameters of the target terminal include screen size and operating system, the determined target application may be an application corresponding to the screen size and operating system. The target application must be able to run on the target terminal.

[0156] Step S230: acquiring configuration resources of the object to be displayed corresponding to the terminal parameters, wherein the configuration resources include digital information resources and display parameter resources corresponding to the object to be displayed.

[0157] Among them, the object to be displayed refers to the virtual object to be displayed, which may include cultural relics, handicrafts and other objects, the digital information resources refer to the digital information resources of the object to be displayed, and the display parameter resources include at least one of the environmental resources, the spatial attribute information of the resources, and the terminal layout framework information indicators. Among them, the terminal layout framework information refers to the layout information corresponding to the display of the object to be displayed on the target terminal, for example, the position of the object to be displayed on the target terminal. The spatial attribute information of the resource refers to the position, size, posture and other information of the display object in the three-dimensional space when the display object is displayed on the exhibition terminal. Environmental resources refer to the corresponding display background, special effects, lighting and other environmental information when the display object is displayed on the terminal. The configuration resources correspond to the terminal parameters of the target terminal, that is, the configuration resources can be displayed on the target terminal.

[0158] Different display objects correspond to different digital information resources. Different display objects may correspond to different display parameter resources or the same display parameter resources. The display parameter resources may be selected by the user or configured by the server (i.e., using the default display parameter resources). If selected by the user, the configuration resource identifier of the display parameter resource may be included in the deployment request. In an optional solution of the present invention, the step of obtaining the configuration resource corresponding to the object to be displayed includes: obtaining the display parameter resource corresponding to the object to be displayed according to the configuration resource identifier.

[0159] Among them, different configuration resource identifiers correspond to different display parameter resources. A second corresponding relationship between each configuration resource identifier and each display parameter resource can be established in advance. Based on the second corresponding relationship and the configuration resource identifier corresponding to the object to be displayed, the display parameter resource corresponding to the object to be displayed can be determined.

[0160] See also Figure 6 The structural diagram of the digital information resource (also called the digital information resource package of the exhibit item (object to be displayed)) shown in the figure, wherein the digital information resource includes ownership identification, resource number identification, keywords, terminal adaptability identification, exhibition digital element package, exhibit item interactive application package and extension identification.

[0161] Among them, the ownership identifier refers to the identifier of ownership, that is, it indicates the owner of the property rights of this digital information resource. When multiple venues are jointly operated, the ownership identifier is used to indicate whether the digital information resource can be displayed across venues or regions. The resource number identifier refers to the identifier of the digital information resource, and the identity of the digital information resource is represented by this identifier. The keyword refers to the keyword used for conditional search. When searching for the digital information resources of the display object, this keyword can be retrieved. The terminal adaptability identifier refers to the type of terminal on which the digital information resource can run, which is related to the terminal type and terminal parameters. If the digital information resource of the object to be displayed is obtained above, it can be a digital information resource corresponding to the terminal adaptability identifier, so that the obtained digital information resource can be displayed through the target terminal. The exhibition digital element package refers to the display content of the object to be displayed. The exhibition digital element package can be composed of at least one of text, voice, picture, video, and three-dimensional model, that is, the object to be displayed can be displayed in at least one form of text, voice, picture, video, and three-dimensional model.

[0162] The interactive application package of an exhibit item refers to the target application corresponding to the target terminal, and the interactive application package of an exhibit item can be directly run on the target terminal. The above-mentioned interactive application package of an exhibit item can be included in a digital information resource. When the digital information resource is determined according to the terminal parameters of the target terminal, the target application corresponding to the target terminal can be determined. The interactive application package of an exhibit item can also be stored in a database. According to the terminal parameters, the target application corresponding to the terminal parameters can be directly determined from the database. Among them, one implementable method of directly determining the target application corresponding to the terminal parameters from the database according to the terminal parameters is to pre-establish a third correspondence between each resource number identifier and each interactive application package of an exhibit item. After the digital information resource is determined according to the terminal parameters of the target terminal, the target application (interactive application package of an exhibit item) of the target terminal can be determined from the database according to the resource number identifier of the digital information resource and the third correspondence.

[0163] The extension identifier is an extended indicator field that indicates whether there are new fields behind the digital information resource, which facilitates the later expansion of the digital information resource. For example, after the system or program is upgraded, it is hoped to add new fields. At this time, with this identifier, it indicates that the digital information resource can be expanded to achieve compatibility between the old and new versions.

[0164] Optionally, the display parameter resource may further include a display mode, which includes at least one of a three-dimensional display mode and a two-dimensional display mode. Different display modes may be used to display the display object to meet different display requirements. When the display mode is a three-dimensional display, the target image data may be displayed in three dimensions through the target terminal.

[0165] See also Figure 7 The schematic diagram of the structure of the environment resource (also called environment resource package) shown in FIG. Figure 7 In the environment resource package, the resource number identifier, keyword, terminal adaptability identifier, environment digital element package, and extension identifier are included.

[0166] Among them, the resource number identifier represents the identifier of the environmental resource package, and the identity of the environmental resource package is characterized by the identifier. The keyword is a keyword used for conditional search. When searching for the environmental resource package of each display object, this keyword can be retrieved. The terminal adaptability identifier refers to what kind of terminal the environmental resource package can run on, which is related to the terminal type and terminal parameters. If the environmental resource package of the object to be displayed is obtained as described above, it can be an environmental resource package corresponding to the terminal adaptability identifier, so that the obtained environmental resource package can be displayed through the target terminal. The environmental digital element package refers to the specific content of the environmental parameters of the object to be displayed. The environmental parameters can be at least one of the parameters such as background, special effects, and lighting. The extension identifier is an extended indication field, indicating whether there are new fields behind the environmental resource package, which is convenient for the later expansion of the environmental resource package. For example, after the system or program is upgraded, it is hoped to add new fields. At this time, with this identifier, it indicates that the environmental resource package can be expanded to achieve compatibility between the old and new versions.

[0167] Step S240: sending the configuration resources and the target application to the target terminal, so that the target terminal displays the object to be displayed according to the configuration resources through the target application.

[0168] Among them, the configuration resources and the target application can be packaged into a data packet and sent to the target terminal. The target terminal parses the data packet to obtain the configuration resources and the target application. Then, the target terminal runs the target application and displays the object to be displayed according to the configuration resources, that is, displays the object to be displayed according to the display parameter resources in the configuration resources that are adapted to the target terminal.

[0169] In an optional embodiment of the present invention, the method may further include:

[0170] Receive a search request from an administrator for digital information resources or environmental resources, where the search request includes keywords. If it is a search request for digital information resources, the keywords included in the search request are keywords corresponding to the digital information resources; if it is a search request for environmental resources, the keywords included in the search request are keywords corresponding to the environmental resources.

[0171] According to the keywords in the search request, the digital information resources or environmental resources corresponding to the keywords are retrieved from the database storing the digital information resources or environmental resources, and the retrieved digital information resources or environmental resources are sent to the administrator's terminal device.

[0172] In an optional embodiment of the present invention, the method may further include:

[0173] Receive storage requests from administrators for digital information resources and / or environmental resources; store the digital information resources and / or environmental resources in corresponding databases according to the storage requests, wherein the digital information resources and environmental resources can be stored in the same database or in different databases.

[0174] Based on Figure 4 Based on the same principle as the method shown in , the embodiment of the present invention also provides a three-dimensional display system for virtual objects, such as Figure 8 As shown, the three-dimensional display system of the virtual object includes:

[0175] Management Server ( Figure 8 The exhibition management server shown in Figure 8 The exhibition storage server shown in Figure 8 The exhibition terminal 1 to the exhibition terminal N shown in the figure); at least one terminal, the management server and the storage server are connected via a network ( Figure 8 IP network) connection shown in;

[0176] The management server is used to obtain the target terminal and terminal parameters for the target terminal; determine the target application corresponding to the target terminal according to the terminal parameters of the target terminal; obtain the configuration resources corresponding to the object to be displayed from the storage server, the configuration resources including the digital information resources and display parameter resources corresponding to the object to be displayed; send the configuration resources and the target application to the target terminal, so that the target terminal displays the object to be displayed according to the configuration resources through the target application;

[0177] The storage server is used to store the configuration resources corresponding to each object to be displayed.

[0178] The implementation principle of the three-dimensional display system of the virtual object is the same as that of the three-dimensional display method of the virtual object described above, which will not be repeated here.

[0179] In order to better illustrate and understand the principle of the method provided by the present invention, the scheme of the present invention is described below in conjunction with an optional specific embodiment. It should be noted that the specific implementation of each step in the specific embodiment should not be understood as a limitation to the scheme of the present invention. On the basis of the principle of the scheme provided by the present invention, other implementations that can be thought of by those skilled in the art should also be considered within the scope of protection of the present invention.

[0180] In this example, it is necessary to first establish a spatial view model corresponding to the object to be displayed. The spatial view model is a sphere generated with the position of the object to be displayed as the center and the distance from the center to the set main observation point as the radius. Each circle containing the main observation point in the spatial view model includes multiple virtual observation points, each observation point corresponds to a viewing angle, and the viewing angle corresponding to the main observation point is the set viewing angle. According to the position of each observation point, a position number is set for each observation point.

[0181] Then, according to the position of each observation point in the spatial framing model, the image data corresponding to the object to be displayed at different viewing angles are collected, including image data with background and image data without background. According to the position number of each observation point and the image data corresponding to each observation point, an index is established, and the index number in the index is the position number of each observation point. The image data and index corresponding to each observation point are stored in the local storage space.

[0182] Set the view as the current view, see Fig. 9 The location diagram of each observation point shown on the left is Fig. 9 On the right, the current perspective is the main observation point ( Fig. 9 The current observation point is the main observation point. Fig. 9 As can be seen on the left, at the initial moment (the moment corresponding to the setting of the viewing angle), the current viewing angle is the viewing angle of the exhibit from the position of the main observation point. Fig. 9 The initial normal vector shown on the left is the vector between the position of the object to be displayed and the position of the main observation point. The plane corresponding to the current viewing angle (virtual viewing plane) is perpendicular to the initial normal vector. The set viewing angle corresponding to the main observation point is the viewing angle corresponding to each virtual observation point contained in the spherical surface where the virtual viewing plane intersects the spatial framing model.

[0183] Get a view adjustment request for the object to be displayed. The view adjustment request includes an offset view relative to the current view. Fig. 9 The schematic diagram of the positions of the observation points shown on the right shows that at the interaction moment (the moment corresponding to the current perspective after adjustment), the current perspective has changed. Based on the offset perspective and the position of the main observation point, the posture offset vector can be determined, and the position of the intersection of the posture offset vector and the spatial framing model is used as the position of the reference observation point.

[0184] According to the position of the reference observation point and the position of the object to be displayed, the target normal vector ( Fig. 9 The temporary normal vector is shown on the right).

[0185] From each virtual observation point of the spatial framing model, each initial virtual observation point included in the sphere perpendicular to the target normal vector is determined. From each initial virtual observation point, the virtual observation point closest to the target normal vector is determined, and the position of the initial virtual observation point closest to the target normal vector is used as the position of the target virtual observation point. The viewing angle corresponding to the position of the target virtual observation point is the target viewing angle, that is, the viewing angle corresponding to the current viewing angle after adjustment.

[0186] According to the target viewing angle and the pre-stored image data of the to-be-displayed object corresponding to each viewing angle, the target image data corresponding to the target viewing angle is determined; and the target image data is displayed in three dimensions.

[0187] Through the solution of the present invention, on the one hand, it supports multiple two-dimensional and three-dimensional display modes to meet different display requirements. On the other hand, the solution of the present invention transmits the resource package of the object to be displayed together with the application to the target terminal, making the system more flexible, easier to deploy, and more diverse in display form. On the third hand, it provides a graphics engine optimization method for display applications for naked-eye three-dimensional display devices, which can greatly reduce the amount of calculation, system cost and energy consumption.

[0188] Based on Figure 1 Based on the same principle as the method shown in , the embodiment of the present invention also provides a three-dimensional display device 20 for virtual objects, such as Fig.10 As shown in , the three-dimensional display device 20 of the virtual object may include a request acquisition module 210, a target viewing angle determination module 220, a target image data determination module 230 and a display module 240, wherein:

[0189] A request acquisition module 210 is used to acquire a view angle adjustment request for an object to be displayed, wherein the view angle adjustment request includes an offset view angle relative to a current view angle;

[0190] A target viewing angle determination module 220, for determining a target viewing angle of an object to be displayed according to an offset viewing angle and a current viewing angle;

[0191] The target image data determination module 230 is used to determine the target image data corresponding to the target perspective according to the target perspective and the image data of the to-be-displayed object corresponding to each perspective stored in advance;

[0192] The display module 240 is used to display the target image data in three dimensions.

[0193] Optionally, the device further comprises:

[0194] A spatial framing model establishment module is used to establish a spatial framing model corresponding to the object to be displayed. The spatial framing model is a sphere generated with the position of the object to be displayed as the center and the distance from the center to the set main observation point as the radius. Each circular ring of the spatial framing model including the main observation point includes multiple virtual observation points, each observation point corresponds to a viewing angle, the viewing angle corresponding to the main observation point is the set viewing angle, and the current viewing angle includes the set viewing angle; the image data of the object to be displayed corresponding to each viewing angle stored in advance includes the image data of the object to be displayed corresponding to the position of each observation point;

[0195] When determining the target viewing angle of the object to be displayed according to the offset viewing angle and the current viewing angle, the target viewing angle determination module 220 is specifically used to: determine the position of the target virtual viewing point according to the position of the current viewing point corresponding to the offset viewing angle and the current viewing angle, and use the viewing angle corresponding to the target virtual viewing point as the target viewing angle;

[0196] When the target image data determination module 230 determines the target image data corresponding to the target perspective based on the target perspective and the image data of the object to be displayed corresponding to each pre-stored perspective, it is specifically used to: determine the image data corresponding to the target virtual observation point based on the position of the target virtual observation point and the image data of the object to be displayed corresponding to the position of each pre-stored observation point.

[0197] Optionally, the image data of the object to be displayed corresponding to each observation point includes image data without background and image data with background, and the view angle adjustment request includes an object view angle adjustment request or an overall view angle adjustment request, and the overall view angle adjustment request refers to a request for adjusting both the view angle of the object to be displayed and the view angle of the background of the object to be displayed;

[0198] If the viewing angle adjustment request is an object viewing angle adjustment request, the target image data is image data without background, and the display module 240 is specifically used to perform three-dimensional display on the target image data:

[0199] Perform three-dimensional display of background-free image data corresponding to the target perspective;

[0200] If the above-mentioned perspective adjustment request is an overall perspective adjustment request, the above-mentioned target image data includes image data without background and image data with background. When the above-mentioned display module 240 performs three-dimensional display on the target image data, it is specifically used to: fuse the image data without background and the image data with background corresponding to the target perspective to obtain fused image data; and perform three-dimensional display on the fused image data.

[0201] Optionally, when the target perspective determination module 220 determines the position of the target virtual observation point according to the position of the observation point corresponding to the offset perspective and the current perspective, it is specifically used to: determine the position of the reference observation point according to the offset perspective and the position of the current observation point; determine the virtual observation point that is closest to the position of the reference observation point among the virtual observation points in the spatial framing model according to the position of the reference observation point, and use the position of the virtual observation point that is closest to the position of the reference observation point as the position of the target virtual observation point.

[0202] Optionally, when the target viewing angle determination module 220 determines the virtual viewing point that is closest to the position of the reference viewing point among the virtual viewing points in the spatial viewing model according to the position of the reference viewing point, it is specifically used to: determine the target normal vector according to the position of the reference viewing point and the position of the object to be displayed; determine, from the virtual viewing points of the spatial viewing model, each initial virtual viewing point contained on the spherical surface perpendicular to the target normal vector; and determine, from each initial virtual viewing point, the virtual viewing point that is closest to the target normal vector.

[0203] Optionally, the target virtual observation point includes at least two target virtual observation points. When the target image data determination module 230 determines the target image data corresponding to the target virtual observation point according to the position of the target virtual observation point and the image data of the object to be displayed corresponding to the position of each observation point stored in advance, it is specifically used to: determine the image data corresponding to each target virtual observation point according to the position of each target virtual observation point among the at least two target virtual observation points and the image data of the object to be displayed corresponding to the position of each observation point stored in advance; divide the image data corresponding to each of the target virtual observation points into multiple sub-images; cross-splice the sub-images corresponding to each of the target virtual observation points to obtain the image data to be displayed, and use the image data to be displayed as the target image data.

[0204] Optionally, when the display module 240 fuses the image data without background and the image data with background corresponding to the target perspective to obtain the fused image data, it is specifically used to: superimpose the image data without background and the image data with background to obtain the fused image data.

[0205] The three-dimensional display device of virtual objects in the embodiment of the present invention can execute the three-dimensional display method of virtual objects provided in the embodiment of the present invention, and the implementation principle is similar. The actions performed by each module and unit in the three-dimensional display device of virtual objects in each embodiment of the present invention correspond to the steps in the three-dimensional display method of virtual objects in each embodiment of the present invention. For the detailed functional description of each module of the three-dimensional display device of virtual objects, please refer to the description in the corresponding three-dimensional display method of virtual objects shown in the previous text, which will not be repeated here.

[0206] Among them, the three-dimensional display device of the above-mentioned virtual object can be a computer program (including program code) running in a computer device, for example, the three-dimensional display device of the virtual object is an application software; the device can be used to execute the corresponding steps in the method provided in an embodiment of the present invention.

[0207] In some embodiments, the three-dimensional display device of the virtual object provided by the embodiment of the present invention can be implemented by a combination of software and hardware. As an example, the three-dimensional display device of the virtual object provided by the embodiment of the present invention can be a processor in the form of a hardware decoding processor, which is programmed to execute the three-dimensional display method of the virtual object provided by the embodiment of the present invention. For example, the processor in the form of a hardware decoding processor can adopt one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field programmable gate arrays (FPGAs) or other electronic components.

[0208] In other embodiments, the three-dimensional display device of the virtual object provided by the embodiment of the present invention can be implemented by software. Fig.10 A three-dimensional display device of a virtual object stored in a memory is shown, which may be software in the form of a program and a plug-in, and includes a series of modules, including a request acquisition module 210, a target viewing angle determination module 220, a target image data determination module 230 and a display module 240, for implementing a three-dimensional display method of a virtual object provided in an embodiment of the present invention.

[0209] The modules involved in the embodiments of the present invention may be implemented by software or hardware, wherein the name of a module does not limit the module itself in some cases.

[0210] Based on the same principle as the method shown in the embodiments of the present invention, an electronic device is also provided in the embodiments of the present invention, which may include but is not limited to: a processor and a memory; the memory is used to store a computer program; the processor is used to execute the method shown in any embodiment of the present invention by calling the computer program.

[0211] In an alternative embodiment, an electronic device is provided, such as Fig.11 As shown, Fig.11 The electronic device 30 shown includes: a processor 310 and a memory 330. The processor 310 and the memory 330 are connected, such as through a bus 320. Optionally, the electronic device 30 may also include a transceiver 340, which may be used for data interaction between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the transceiver 340 is not limited to one, and the structure of the electronic device 30 does not constitute a limitation on the embodiments of the present invention.

[0212] The processor 310 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of the present invention. The processor 310 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0213] The bus 320 may include a path to transmit information between the above components. The bus 320 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 320 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.11 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0214] The memory 330 can be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to this.

[0215] The memory 330 is used to store application code (computer program) for executing the solution of the present invention, and is controlled to be executed by the processor 310. The processor 310 is used to execute the application code stored in the memory 330 to implement the contents shown in the above method embodiment.

[0216] The electronic device may also be a terminal device. Fig.11 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0217] An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer can execute the corresponding contents of the aforementioned method embodiment.

[0218] According to another aspect of the present invention, a computer program product or a computer program is also provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in the implementation modes of the above-mentioned various embodiments.

[0219] Computer program code for performing the operations of the present invention may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0220] It should be understood that the flow charts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the module, the program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0221] The computer-readable storage medium provided by the embodiment of the present invention may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device, or device.

[0222] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.

[0223] The above description is only a preferred embodiment of the present invention and an explanation of the technical principles used. Those skilled in the art should understand that the disclosure scope involved in the present invention is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present invention (but not limited to) by each other.

Claims

1. A three-dimensional display method for a virtual object, characterized in that: The following steps are involved: Obtaining a viewing angle adjustment request for an object to be displayed, wherein the viewing angle adjustment request includes an offset viewing angle relative to a current viewing angle; Determining a target viewing angle of the object to be displayed according to the offset viewing angle and the current viewing angle; Determining target image data corresponding to the target viewing angle according to the target viewing angle and pre-stored image data of the object to be displayed corresponding to each viewing angle; Performing three-dimensional display on the target image data; The method further comprises: Establishing a spatial framing model corresponding to the object to be displayed, the spatial framing model is a sphere generated with the position of the object to be displayed as the center and the distance from the center to a set main observation point as the radius, each circular ring of the spatial framing model including the main observation point includes a plurality of virtual observation points, each observation point corresponds to a viewing angle, the viewing angle corresponding to the main observation point is a set viewing angle, and the current viewing angle includes the set viewing angle; the image data of the object to be displayed corresponding to each pre-stored viewing angle includes the image data of the object to be displayed corresponding to the position of each observation point; The step of determining a target viewing angle of the object to be displayed according to the offset viewing angle and the current viewing angle includes: Determine the position of the target virtual observation point according to the offset viewing angle and the position of the current viewing point corresponding to the current viewing angle, and use the viewing angle corresponding to the target virtual observation point as the target viewing angle; The step of determining target image data corresponding to the target viewing angle according to the target viewing angle and pre-stored image data of the object to be displayed corresponding to each viewing angle includes: The image data corresponding to the target virtual observation point is determined according to the position of the target virtual observation point and the image data of the object to be displayed corresponding to the positions of each observation point stored in advance.

2. The method according to claim 1, characterized in that The image data of the object to be displayed corresponding to each observation point includes image data without background and image data with background, the viewing angle adjustment request includes an object viewing angle adjustment request or an overall viewing angle adjustment request, and the overall viewing angle adjustment request refers to a request for adjusting both the viewing angle of the object to be displayed and the viewing angle of the background of the object to be displayed; If the viewing angle adjustment request is the object viewing angle adjustment request, the target image data is image data without background, and the three-dimensional display of the target image data includes: Performing three-dimensional display of the background-free image data corresponding to the target viewing angle; If the viewing angle adjustment request is the overall viewing angle adjustment request, the target image data includes image data without background and image data with background, and the three-dimensional display of the target image data includes: Fusing the image data without background and the image data with background corresponding to the target viewing angle to obtain fused image data; The fused image data is displayed in three dimensions.

3. The method according to claim 1, characterized in that The step of determining the position of the target virtual observation point according to the position of the observation point corresponding to the offset viewing angle and the current viewing angle comprises: Determining the position of a reference observation point according to the offset viewing angle and the position of the current observation point; According to the position of the reference observation point, the virtual observation point closest to the position of the reference observation point is determined among the virtual observation points in the spatial framing model, and the position of the virtual observation point closest to the position of the reference observation point is used as the position of the target virtual observation point.

4. The method according to claim 3, characterized in that The step of determining, according to the position of the reference observation point, a virtual observation point in the space viewing model that is closest to the position of the reference observation point comprises: Determining a target normal vector according to the position of the reference observation point and the position of the object to be displayed; Determine, from each virtual observation point of the spatial viewing model, each initial virtual observation point contained on a spherical surface perpendicular to the target normal vector; A virtual observation point whose distance to the target normal vector is shortest is determined from each of the initial virtual observation points.

5. The method according to claim 1, characterized in that The target virtual observation points include at least two target virtual observation points, and determining the target image data corresponding to the target virtual observation points according to the positions of the target virtual observation points and the image data of the object to be displayed corresponding to the positions of the pre-stored observation points includes: Determine the image data corresponding to each of the at least two target virtual observation points according to the position of each of the target virtual observation points and the pre-stored image data of the object to be displayed corresponding to the position of each observation point; Splitting the image data corresponding to each of the target virtual observation points into a plurality of sub-images; The sub-images corresponding to the target virtual observation points are cross-joined to obtain image data to be displayed, and the image data to be displayed is used as the target image data.

6. The method according to claim 2, characterized in that The step of fusing the image data without background and the image data with background corresponding to the target viewing angle to obtain fused image data includes: The image data without background and the image data with background are superimposed to obtain the fused image data.

7. A three-dimensional display device for a virtual object, characterized in that: include: A request acquisition module, used to acquire a viewing angle adjustment request for an object to be displayed, wherein the viewing angle adjustment request includes an offset viewing angle relative to a current viewing angle; A target viewing angle determination module, used to determine a target viewing angle of the object to be displayed according to the offset viewing angle and the current viewing angle; A target image data determination module, configured to determine target image data corresponding to the target viewing angle according to the target viewing angle and pre-stored image data of the object to be displayed corresponding to each viewing angle; A display module, used for displaying the target image data in three dimensions; The device also includes: A spatial framing model establishment module is used to establish a spatial framing model corresponding to the object to be displayed, wherein the spatial framing model is a sphere generated with the position of the object to be displayed as the center and the distance from the center to a set main observation point as the radius, and each circular ring of the spatial framing model including the main observation point includes a plurality of virtual observation points, each observation point corresponds to a viewing angle, the viewing angle corresponding to the main observation point is a set viewing angle, and the current viewing angle includes the set viewing angle; the image data of the object to be displayed corresponding to each pre-stored viewing angle includes the image data of the object to be displayed corresponding to the position of each observation point; When the target viewing angle determining module determines the target viewing angle of the object to be displayed according to the offset viewing angle and the current viewing angle, it is specifically used to: determine the position of the target virtual viewing point according to the offset viewing angle and the position of the current viewing point corresponding to the current viewing angle, and use the viewing angle corresponding to the target virtual viewing point as the target viewing angle; When the target image data determination module determines the target image data corresponding to the target perspective based on the target perspective and the image data of the object to be displayed corresponding to each pre-stored perspective, it is specifically used to: determine the image data corresponding to the target virtual observation point based on the position of the target virtual observation point and the image data of the object to be displayed corresponding to the positions of each pre-stored observation point.

8. An electronic device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 6 when executing the computer program.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.