CN115830212A - Three-dimensional model display method and related equipment - Google Patents

Three-dimensional model display method and related equipment Download PDF

Info

Publication number
CN115830212A
CN115830212A CN202211471790.2A CN202211471790A CN115830212A CN 115830212 A CN115830212 A CN 115830212A CN 202211471790 A CN202211471790 A CN 202211471790A CN 115830212 A CN115830212 A CN 115830212A
Authority
CN
China
Prior art keywords
picture
dimensional model
pictures
view
specified
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211471790.2A
Other languages
Chinese (zh)
Inventor
那志成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Bilibili Technology Co Ltd
Original Assignee
Shanghai Bilibili Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Bilibili Technology Co Ltd filed Critical Shanghai Bilibili Technology Co Ltd
Priority to CN202211471790.2A priority Critical patent/CN115830212A/en
Publication of CN115830212A publication Critical patent/CN115830212A/en
Pending legal-status Critical Current

Links

Images

Abstract

The application provides a three-dimensional model display method and related equipment; the method comprises the following steps: acquiring three-dimensional model resources; rendering the three-dimensional model resource to generate a plurality of pictures, and storing the pictures to a file server; wherein the plurality of pictures correspond to a plurality of viewing angles of the three-dimensional model; responding to a browsing request, and determining a specified view angle corresponding to the browsing request; and acquiring the picture corresponding to the specified visual angle from the file server, and returning the picture to the terminal equipment. According to the embodiment of the application, the three-dimensional model is rendered through the service platform, a plurality of pictures are generated to be used as the display of the three-dimensional model, the uploading speed of the model can be increased, the occupation of broadband resources is reduced, and the enthusiasm of a manufacturer for sharing the three-dimensional model is improved.

Description

Three-dimensional model display method and related equipment
Technical Field
The application relates to the technical field of computers and model display, in particular to a three-dimensional model display method and related equipment.
Background
The three-dimensional model is a high-value digital asset due to the fact that the production threshold is high, and the demand is high in the scenes of game development, video production and virtual live broadcast. Based on the purposes of transmission, communication or transaction, a three-dimensional model making party can release the made three-dimensional model on an internet platform. However, if the three-dimensional model is released, other people can easily obtain model information related to the three-dimensional model, which is not beneficial for a producer to protect the value of the three-dimensional model.
Disclosure of Invention
The embodiment of the application provides a three-dimensional model display method and related equipment, which are used for solving the problems in the related technology, and the technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a three-dimensional model display method, including:
acquiring three-dimensional model resources;
rendering the three-dimensional model resource to generate a plurality of pictures, and storing the plurality of pictures to a file server; wherein the plurality of pictures correspond to a plurality of viewing angles of the three-dimensional model;
responding to the browsing request, and determining a specified view angle corresponding to the browsing request;
and acquiring the picture corresponding to the specified visual angle from the file server, and returning the picture to the terminal equipment.
In a second aspect, an embodiment of the present application provides a three-dimensional model display method, including:
sending the three-dimensional model resource to a service platform so that the service platform renders the three-dimensional model resource to generate a plurality of pictures, and storing the plurality of pictures to a file server;
receiving addresses of a plurality of pictures returned by the service platform;
sending a browsing request, wherein the browsing request comprises a specified viewing angle requested to be browsed;
and receiving a picture corresponding to the specified visual angle, and displaying the picture on a display interface.
In a third aspect, an embodiment of the present application provides a three-dimensional model display method, including:
sending a preview request, wherein the preview request comprises a three-dimensional model requesting browsing;
receiving a preview picture of the three-dimensional model, and displaying the preview picture to a display interface;
sending a visual angle instruction; the view angle instruction comprises a specified view angle for requesting browsing;
and receiving the picture corresponding to the appointed visual angle, and displaying the picture corresponding to the appointed visual angle to a display interface.
In a fourth aspect, an embodiment of the present application provides a three-dimensional model display platform, including:
the resource acquisition module is used for acquiring three-dimensional model resources;
the rendering module is used for rendering the three-dimensional model resource, generating a plurality of pictures and storing the pictures to the file server; wherein the plurality of pictures correspond to a plurality of viewing angles of the three-dimensional model;
the viewing angle determining module is used for responding to the browsing request and determining a specified viewing angle corresponding to the browsing request;
and the display module is used for acquiring the picture corresponding to the specified visual angle from the file server and returning the picture to the terminal equipment.
In a fifth aspect, an embodiment of the present application provides a terminal device, including:
the resource sending module is used for sending the three-dimensional model resources to the service platform so that the service platform renders the three-dimensional model resources to generate a plurality of pictures and stores the pictures to the file server;
the picture receiving module is used for receiving the addresses of the plurality of pictures returned by the service platform;
the first browsing module is used for sending a browsing request, and the browsing request comprises a specified view angle required to be browsed;
and the first display module is used for receiving the picture corresponding to the specified visual angle and displaying the picture on a display interface.
In a sixth aspect, an embodiment of the present application provides a terminal device, including:
the second browsing module is used for sending a preview request, and the preview request comprises a three-dimensional model requesting to browse;
the preview module is used for receiving a preview picture of the three-dimensional model and displaying the preview picture to a display interface;
the visual angle specifying module is used for sending a visual angle instruction; the view angle instruction comprises a specified view angle for requesting browsing;
and the second display module is used for receiving the picture corresponding to the appointed visual angle and displaying the picture corresponding to the appointed visual angle to the display interface.
In a seventh aspect, an embodiment of the present application provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method for three-dimensional model display.
In an eighth aspect, embodiments of the present application provide a computer-readable storage medium storing computer instructions that, when executed on a computer, perform a method in any one of the above-described aspects.
The advantages or beneficial effects in the above technical solution at least include:
according to the embodiment of the application, the rendering processing of the three-dimensional model is completed through the service platform, a plurality of pictures are generated to be used as the display of the three-dimensional model, the model uploading speed can be increased, the occupation of broadband resources is reduced, and the enthusiasm of a manufacturer for sharing the three-dimensional model is improved.
The foregoing summary is provided for the purpose of description only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments, and features described above, further aspects, embodiments, and features of the present application will be readily apparent by reference to the drawings and following detailed description.
Drawings
In the drawings, like reference characters designate like or similar parts or elements throughout the several views unless otherwise specified. The figures are not necessarily to scale. It is appreciated that these drawings depict only some embodiments in accordance with the disclosure and are therefore not to be considered limiting of its scope.
FIG. 1 shows an environmental application diagram according to an embodiment of the present application.
Fig. 2 shows a schematic flow chart of a three-dimensional model display method according to an embodiment of the present application.
Fig. 3 shows a schematic diagram of rendering a plurality of pictures generated according to an embodiment of the present application.
Fig. 4 shows a schematic flow chart of a three-dimensional model display method according to another embodiment of the present application.
Fig. 5 shows a flow diagram of the sub-steps according to step S220 in fig. 2.
Fig. 6 shows another flow diagram of a three-dimensional model display method according to an embodiment of the present application.
Fig. 7 shows a schematic flow chart of a three-dimensional model display method according to another embodiment of the present application.
Fig. 8 shows a schematic flow chart of a three-dimensional model display method according to a further embodiment of the present application.
Fig. 9 shows a schematic diagram of the truncated id according to step S440 in fig. 8.
Fig. 10 is a flowchart illustrating a three-dimensional model displaying method according to still another embodiment of the present application.
Fig. 11 is a schematic flowchart of a three-dimensional model display method according to still another embodiment of the present application.
Fig. 12 is a flowchart illustrating a three-dimensional model displaying method according to still another embodiment of the present application.
Fig. 13 is another flow chart diagram illustrating a three-dimensional model display method according to still another embodiment of the present application.
FIG. 14 shows a schematic block diagram of a three-dimensional model display platform according to an embodiment of the present application.
Fig. 15 shows a schematic block diagram of a terminal device according to an embodiment of the present application.
Fig. 16 shows a schematic block diagram of a terminal device according to an embodiment of the present application.
Fig. 17 is a block diagram of an electronic device for implementing the three-dimensional model display method according to the embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of and not restrictive on the broad application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the descriptions relating to "first", "second", etc. in the embodiments of the present application are only for descriptive purposes and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present application.
It is known that the display method of the three-dimensional model has the following defects:
firstly, the method comprises the following steps: a manufacturing party is required to process the three-dimensional model to obtain a plurality of pictures for displaying a plurality of visual angles of the three-dimensional model; the method leads to the fact that a producer needs to spend time on processing and uploading pictures, and the enthusiasm of the producer on displaying the three-dimensional model is easily influenced.
Secondly, the method comprises the following steps: the data volume of a plurality of pictures is large, and the pictures occupy more file storage and broadband resources during uploading, so that the limitation on the number of the pictures is easily caused, the display effect is discontinuous, and the browsing experience of a user is influenced.
The present application provides several embodiments to address the above-mentioned deficiencies, and reference is made in detail to the following.
In the description of the present application, it should be understood that the numerical references before the steps do not identify the order of performing the steps, but merely serve to facilitate the description of the present application and to distinguish each step, and therefore should not be construed as limiting the present application.
The following are the term explanations of the present application:
three-dimensional model: digital assets for the three-dimensional representation of real-life or fictional objects in a computer.
WebGL (Web Graphics Library ): the system is a JavaScript API (scripting language Application program Interface) and can render high-performance interactive 3D and 2D graphics in a compatible Web browser.
Fig. 1 schematically shows an environment application diagram according to an embodiment of the application. As shown in fig. 1:
the provider network 2 may be connected to a plurality of mobile terminals 6 through a network 4. The provider network 2 may provide content services.
The content services may include content streaming services such as internet protocol picture streaming services. Content streaming services may be configured to distribute content via various transmission techniques. The content service may be configured to provide content such as video, audio, pictures, or combinations thereof. The content may include content streams (e.g., video streams, audio streams, information streams), content files (e.g., video files, audio files, model files), and/or other data.
The provider network 2 may implement a model processing service configured to allow users to upload, browse, and/or download model content. The model content is a plurality of forms of content which can be used for representing a three-dimensional model or a two-dimensional model, and comprises pictures, videos, source files or texts and the like.
In an exemplary embodiment, the model content may be graphically presented on a screen for viewing by a user.
Provider network 2 may be located at a data center, such as a single site, or distributed in different geographic locations (e.g., at multiple sites). The provider network 2 may provide services via one or more networks 4. One or more of the networks 4 may include various network devices such as routers, switches, multiplexers, hubs, modems, bridges, repeaters, firewalls, proxy devices, and/or the like. The network 4 may include physical links such as coaxial cable links, twisted pair cable links, fiber optic links, combinations thereof, and the like. The network 4 may include wireless links such as cellular links, satellite links, wi-Fi links, and the like.
The provider network 2 may be configured to manage messages for various content items. The user can upload, browse or download content items related to the model content, and can also perform various operations on specific content items, such as rotating pictures to browse the picture content of another view angle of the model; for example, the original resource file from which the model content was obtained may also be clicked on.
The provider network 2 may be implemented by one or more computing nodes. One or more compute nodes may include virtualized compute instances. The virtualized compute instance may include an emulation of a virtual machine, such as a computer system, operating system, server, and the like. The computing node may load a virtual machine by the computing node based on the virtual image and/or other data defining the particular software (e.g., operating system, dedicated application, server) used for emulation. As the demand for different types of processing services changes, different virtual machines may be loaded and/or terminated on one or more compute nodes. A hypervisor may be implemented to manage the use of different virtual machines on the same compute node.
A plurality of mobile terminals 6 may be configured to access content and services of provider network 2. The plurality of mobile terminals 6 may include any type of electronic device, such as a mobile device, a tablet device, a laptop computer, a workstation, a virtual reality device, a gaming device, a set-top box, a digital streaming media device, a vehicle terminal, a smart television, a set-top box, and so forth.
The plurality of mobile terminals 6 may output (e.g., display, render, present) the content (video, etc.) to the user.
In an exemplary embodiment, the provider network 2 (or the mobile terminal 6) may upload the three-dimensional model resource, and display the three-dimensional model resource in the form of a picture on the plurality of mobile terminals 6, so that the user may browse the three-dimensional model, improve the sharing efficiency of the three-dimensional model, and protect the privacy of the three-dimensional model.
The three-dimensional model presentation scheme will be described below by way of various embodiments. The solution may be implemented by a computer device 1000, and the computer device 1000 may be the provider network 2 or a computing node thereof, or may be the mobile terminal 6.
FIG. 2 shows a flow diagram of a three-dimensional model presentation method according to an embodiment of the present application. As shown in fig. 2, the three-dimensional model displaying method may include:
and S210, acquiring three-dimensional model resources.
The three-dimensional model resources may include information such as a modeling concept, an internal core structure, and an external shape of the three-dimensional model. The external shape of the three-dimensional model is used as an expression form of the three-dimensional model, and the appearance effect of the three-dimensional model can be known by browsing the external shape of the three-dimensional model. However, the modeling concept and the internal core structure of the three-dimensional model are the essence of creating the external shape of the three-dimensional model, and the same three-dimensional model can be easily constructed by obtaining the modeling concept and the internal core structure of the three-dimensional model. Therefore, in order to share the three-dimensional model of the user and protect the created three-dimensional model from being stolen, only the external shape of the three-dimensional model can be displayed.
The external shape of a three-dimensional model is typically based on the software rendering that builds the three-dimensional model, i.e., it needs to be in a particular software environment to preview the three-dimensional model. In addition to this, by browsing pictures of a three-dimensional model from a plurality of different perspectives, the external shape of the three-dimensional model can be browsed indirectly.
The three-dimensional model resource may be a three-dimensional model file based on various file formats, such as an STL (stereolithography) format file, an OBJ (object) format file, and the like.
The three-dimensional model resources can be obtained by uploading by a producer, can be obtained from a buffer database, and can also be obtained by calling the three-dimensional model resources in a local database.
In the embodiment of the present application, the three-dimensional model may be obtained by a service platform provided by the provider network 2. Wherein the service platform may be a web application service platform.
In the embodiment of the application, webGL can be called to obtain three-dimensional model resources, so that points, lines and triangles can be drawn according to codes of the three-dimensional model resources, and therefore the external shape of the three-dimensional model can be obtained.
And S220, rendering the three-dimensional model resource, generating a plurality of pictures, and storing the pictures to a file server.
Wherein the plurality of pictures correspond to a plurality of viewing angles of the three-dimensional model.
In the embodiment of the application, the external shape of the three-dimensional model can be rendered through the rendering engine, the visual angles to be rendered are sequentially acquired, the projection corresponding to the visual angles to be rendered is acquired according to the visual angles to be rendered, and the projection is drawn on a canvas to generate a picture. Multiple pictures can be generated corresponding to multiple different visual angles to be rendered. The user can obtain the external shape of the three-dimensional model by browsing a plurality of pictures with different visual angles.
In one example, a user first views a picture at a first view angle, and then, as needed, converts the view angle and views a picture at a second view angle until the viewing is completed.
In the embodiment of the application, the plurality of viewing angles corresponding to the plurality of pictures can be determined according to the specific shape of the three-dimensional model. The multiple perspectives may be system defaults or may be obtained from the configuration of the producer.
In one example, the shape type of the three-dimensional model may be determined by system recognition, and a default plurality of perspectives may be determined based on the shape type.
In one specific example, where the shape type of the three-dimensional model is a human figure, the plurality of viewing angles may be determined as a default plurality of viewing angles between 0 ° to 360 ° for the corresponding side and 45 ° from top to bottom. And then determining the specific angles of the plurality of visual angles according to the default visual angle interval.
In one example, the producer may freely define the view angles of the plurality of pictures that need to be rendered by configuring the pitch view angle range, the side view angle range, and the view angle interval. The view angle interval may be configured as one view angle interval, or different view angle intervals may be configured for the side view angle and the pitch view angle, respectively.
It can be understood that the smaller the viewing angle interval is set, the more continuous the display effect is when the user browses the three-dimensional model, the closer the situation of browsing the real three-dimensional model is, and the better the browsing experience is.
In the embodiment of the present application, the viewing angle interval may be 15 °, 20 °, 25 °,30 °, 45 °, or the like, or may be any value between 15 ° and 45 °.
In one example, a plurality of pictures generated by rendering all have a view identifier corresponding to a view, so as to determine a picture corresponding to the view according to a view to be browsed.
According to the method and the device, after the picture rendering is completed, the generated multiple pictures are stored to the file server, and when the pictures are displayed, the pictures can be directly acquired from the file server to be displayed. The file server may be a server used by the service platform to store data information.
And S230, responding to the browsing request, and determining a specified view angle corresponding to the browsing request.
The user may send a browse request requesting to browse a website of the desired three-dimensional model. When browsing the three-dimensional model, a user may first return a preset preview picture, where the preview picture is a picture corresponding to a preset view angle, and the preview picture is usually a picture that can best embody the external shape characteristics of the three-dimensional model.
Besides browsing the preset pictures, the user also wants to know the pictures of the other multiple viewing angles. The operation of rotating the preview picture can be implemented by operating the mouse to drag or knocking the upper, lower, left and right keys on the keyboard so as to send a browsing request. According to the operation of the user, the rotating angle can be determined, and therefore the specified view angle which the user wants to browse is determined.
In one example, the view angle of the preview picture is (0 ° ), and the user turns 30 ° to the right, then the specified view angle is determined to be (0 °,30 °); the user turns up 30 deg., the specified viewing angle is determined to be (30 deg., 0 deg.).
In the embodiment of the application, the producer can also send a browsing request to request for browsing the address returned by the file server. When the producer browses the address returned by the file server, the producer can also configure the three-dimensional model, for example, configure a preview picture, configure a mode for acquiring the three-dimensional model resource, and the like.
S240, acquiring the picture corresponding to the specified view angle from the file server, and returning to the terminal equipment.
In the embodiment of the application, the image corresponding to the specified visual angle is acquired from the file server, so that the image acquisition speed can be increased. The multiple pictures stored in the file service are provided with view angle identifications corresponding to view angles, so that the pictures corresponding to the specified view angles can be conveniently determined according to the specified view angles.
In one example, the viewing angle interval is 15 °, the viewing angle of the preview picture is (0 ° ), the user turns 28 ° to the right, and the specified viewing angle is determined to be (0 °,30 °), and the picture corresponding to the viewing angle (0 °,30 °) is returned; or determining that the specified view angle is (0 degrees, 28 degrees), and returning to the picture, returning to the picture corresponding to the view angle (0 degrees, 30 degrees).
In one example, the viewing angle interval is 15 °, the viewing angle of the preview picture is (0 ° ), the user turns up and right 30 °, and the picture with the viewing angle is returned (30 ° ).
In an example, after the designated view angle is determined according to the rotation angle, a first weight value may be respectively calculated with respect to two or four adjacent pictures, and a picture corresponding to the designated view angle that needs to be returned is determined according to the first weight value.
For example, when the viewing angle interval is 15 °, it is determined that the specified viewing angle is (0 °,28 °), since 0 ° is at the standard position, two adjacent pictures are pictures of the viewing angle (0 °,15 °) and the viewing angle (0 °,30 °), respectively. A first weight value may be calculated with respect to the pictures of the view angle (0 °,15 °) and the view angle (0 °,30 °), and a picture corresponding to the specified view angle is determined according to the first weight value. The first weight value may be calculated in the following manner: view difference/view interval.
For example, specifying a view angle as (0 °,28 °), a first weight value for a picture relative to the view angle (0 °,15 °) may be (28-15)/15; a first weight value for a picture relative to a view angle (0 °,30 °) may be (28-30)/15; and the first weight value of the picture relative to the view angle (0 degrees and 30 degrees) is smaller, so that the picture of the view angle (0 degrees and 30 degrees) can be determined to be the picture corresponding to the specified view angle.
In other examples, it may also be determined that the picture with the higher first weight value is a picture corresponding to the specified view angle.
In the embodiment of the application, under the condition that a plurality of pictures are generated by rendering and stored as a picture list, a corresponding second weight value can be set for the picture at each view angle.
In one example, after determining the designated angle according to the rotation angle, the first weight value and the second weight value are integrated, for example, a picture corresponding to the designated angle is determined according to a product of the first weight value and the second weight value.
In an implementation manner, the picture corresponding to the displayed specified view angle can be determined according to an x-axis change value and a y-axis change value generated when a user drags a mouse or taps a keyboard.
In the embodiment of the application, a plurality of generated pictures are rendered, and a picture list is generated according to the view angle direction. For example, as shown in fig. 3, pictures of the lower side view angle range of the same pitch view angle are stored vertically, and pictures of the lower pitch view angle range of the same side view angle are stored horizontally.
Taking the picture list shown in fig. 3 as an example, the horizontal axis is an x axis, the vertical axis is a y axis, and it is assumed that when the user clicks and browses the three-dimensional model, an initial value of a displayed preview picture is x =0; y =0 position, x denotes the x-th column in the picture list, and y denotes the y-th row in the picture list. When detecting the operation of dragging a mouse or knocking a keyboard by a user, determining a target x value and a target y value according to the x change value and the y change value, wherein the target x value is as follows: (x initial value + x variation)/7, target y value: (y initial value + y variation)/24; and displaying the pictures corresponding to the target x value and the target y value. Where 7 indicates 7 pictures in each row and 24 indicates 24 pictures in each column.
According to the embodiment of the application, the rendering processing of the three-dimensional model is completed through the service platform, and a plurality of pictures are generated to be used as the display of the three-dimensional model, so that the uploading speed of the model can be increased, the occupation of broadband resources is reduced, and the enthusiasm of a manufacturer for sharing the three-dimensional model is improved; on the other hand, the picture corresponding to the specified view angle is obtained from the file server, so that the picture can be obtained in real time according to browsing requests of different view angles, the browsing speed is increased, and the browsing experience of the user is improved.
In one embodiment, as shown in fig. 4, step S230 further includes:
and S250, determining a preview picture from the plurality of pictures.
And determining a preview picture for the picture browsed first when the user browses the three-dimensional model. The preview picture is usually the picture which can best embody the external shape characteristics of the three-dimensional model.
The preview picture may be a picture corresponding to a default view angle of the system, for example, a picture corresponding to a view angle positioned by a side view angle of 0 ° and a pitch view angle of 0 °.
In one example, the view positioned by the side view angle 0 ° and the pitch view angle 0 ° may be a frontal view angle of the external shape of the acquired three-dimensional model.
In one example, the view angle at which the side view angle 0 ° and the pitch view angle 0 ° are positioned may be a view angle determined according to a shape type of the three-dimensional model. For example, if the shape type of the three-dimensional model is a human figure, the view angle at which the lateral view angle is 0 ° and the pitch view angle is 0 ° can be determined as the view angle at which the face is oriented in the forward direction.
The preview picture can also be determined as a preview picture after the producer receives a plurality of rendered pictures, so that the preview picture can be displayed according to the personalized requirements of the producer. Of course, the preview picture may also be randomly determined.
And S260, responding to the preview request, and returning the preview picture to the terminal equipment.
When the user wants to browse the three-dimensional model, a preview request is first sent by clicking or selecting to view or the like. The service platform acquires a preview picture corresponding to the three-dimensional model under the condition of receiving the preview request, namely responding to the preview request, and returns the preview picture to the terminal equipment; so that the user can preliminarily know the external shape of the three-dimensional model by browsing the preview picture.
In one embodiment, the three-dimensional model display method further comprises: and storing the plurality of pictures to a file server, and returning the addresses of the plurality of pictures to the terminal equipment.
According to the embodiment of the application, the plurality of rendered pictures are returned to the terminal equipment of the manufacturer in the form of the address, so that the manufacturer can browse the plurality of pictures and store the pictures.
In one example, a plurality of rendered pictures may be compressed and then stored in a file server, so as to reduce time and bandwidth consumption during file transmission.
In one example, the original model resource of the three-dimensional model resource may also be saved to a file server, and an address of the original model resource is returned to the terminal device, so that the producer may access the address at any time to obtain the original model resource. On the other hand, sharing of the original model resource can also be achieved, for example, after a user browses a plurality of pictures of the three-dimensional model and wants to acquire the original model resource, the original model resource can be acquired through a request.
In one embodiment, step S250 includes: receiving a specified instruction of previewing a picture; and determining the picture specified by the specified instruction as a preview picture based on the specified instruction.
In the embodiment of the application, the producer can obtain a plurality of pictures from the addresses of the received pictures, select one of the pictures and designate the selected picture as the preview picture, so that the preview picture can be displayed according to the personalized requirements of the producer.
In one embodiment, as shown in fig. 5, step S220 includes:
s221, rendering data is obtained, and the rendering data comprises parameter information of a plurality of visual angles.
The rendering data may be rendering data obtained according to configuration parameters of the producer. In the case where the producer does not configure the rendering data, system default rendering data may be employed.
According to the acquired rendering data, a plurality of visual angles to be rendered can be acquired, and a plurality of pictures corresponding to the plurality of visual angles are generated based on the picture information of the plurality of visual angles.
S222, a canvas is created.
For drawing picture information on the canvas to generate a picture. The Canvas may be a Canvas or the like.
In the embodiment of the application, a canvas can be created in response to the acquired three-dimensional model resources, that is, each received three-dimensional model resource is displayed in a picture mode; the canvas may also be created upon receiving rendering instructions. In case no rendering instructions are received, it is possible that the producer does not need to show the three-dimensional model in the form of pictures, i.e. does not need to protect the three-dimensional model resources. Thus, without receiving rendering instructions, it may be configured to issue an original model of the three-dimensional model resource. By creating the canvas upon receipt of the rendering instruction, multi-dimensional sharing of the three-dimensional model can be facilitated.
The canvas size created may be the size of one picture to be rendered, such that one canvas is used to generate one picture.
The size of the created canvas can also be the size capable of accommodating a plurality of pictures to be rendered, so that the picture information of the plurality of pictures is drawn on one canvas, and then the plurality of pictures are generated from one canvas.
The size of the created canvas can also be the size capable of accommodating a group of pictures in a plurality of pictures to be rendered, so that one group of pictures can be drawn on one canvas, and then a plurality of pictures of the group are generated from the canvas, so that the plurality of pictures can be conveniently stored in a list form to form a picture list.
The size of the picture to be rendered can be the size of the picture limited according to the display requirement of the service platform; or may be a selected one of several defined picture sizes.
S223, determining a to-be-rendered visual angle based on the rendering data, wherein the to-be-rendered visual angle is one of the multiple visual angles.
The rendering data may include an initial rendering perspective, and the calculation rules for the remaining rendering perspectives are determined from the initial rendering perspective; the remaining plurality of perspectives can thus be determined from the initial rendering perspective and the calculation rules. In the case where the rendering data includes only the initial rendering perspective, excluding the perspective range, a default 360 ° range rendering may be determined.
The rendering data may also include a rendering view range and a rendering view interval, so as to determine a plurality of views to be rendered according to the rendering view range and the view interval.
It will be appreciated that the rendering data may be represented in a variety of ways, as long as a plurality of perspectives to be rendered can be determined from the rendering data. And determining one of the multiple visual angles as a visual angle to be rendered to generate a picture for the picture information of the visual angle to be rendered, then determining the next visual angle as the visual angle to be rendered, and sequentially generating the pictures.
S224, drawing the picture information of the view angle to be rendered on the canvas, and generating a picture corresponding to the view angle to be rendered.
The rendering engine may be used to obtain the picture information of the view angle to be rendered, and to draw the picture information on the canvas. The picture information to be rendered is the picture information which can be seen by browsing the external shape of the three-dimensional model under the visual angle to be rendered; it can also be understood as a camera shot of the external shape of the three-dimensional model at the perspective to be rendered.
And generating a plurality of corresponding pictures based on the plurality of visual angles. Specifically, steps S223 and S224 may be looped to respectively use multiple views to be rendered as views to be rendered, and generate multiple pictures corresponding to the multiple views. It may also be a loop of steps S222 to S224, so that a canvas is created for each of the plurality of views to be rendered, and each canvas is used for generating a picture.
According to the method and the device, the picture information to be rendered is drawn on the canvas by creating the canvas, so that the picture is generated, the rendering of the three-dimensional model resource is completed on the service platform, and a plurality of pictures which can be used for displaying the external shape of the three-dimensional model are obtained.
In the embodiment of the application, as shown in fig. 6, rendering of the three-dimensional model resource is realized through WebGL, the WebGL acquires and loads the three-dimensional model resource, and then the canvas is created for drawing the picture. Based on the API context of WebGL, rendering data may be obtained. Determining a visual angle to be rendered according to rendering data, and drawing a picture corresponding to the visual angle to be rendered; and continuously updating the to-be-rendered view angles, drawing pictures for the to-be-rendered view angles to be rendered in sequence, and generating a plurality of pictures corresponding to the view angles, thereby finishing the picture rendering of the three-dimensional model. The service platform of the embodiment of the application realizes the rendering of the three-dimensional model by adopting the WebGL, makes full use of the image rendering function of the WebGL, and realizes the online rendering and real-time display of the three-dimensional model.
According to the method and the device, after the picture rendering is completed, the generated multiple pictures are stored to the file server, and when the pictures are displayed, the pictures can be directly acquired from the file server to be displayed.
According to the method and the device, the original model resources of the multiple pictures and the three-dimensional model resources generated by rendering can be stored in the file server, and the address returned by the file server is returned to the terminal equipment, so that a manufacturer can obtain the multiple pictures and the original model resources.
In one embodiment, rendering data includes: a lateral view range, a pitch view range, and a view interval.
Step S223 includes:
determining a first to-be-rendered view angle, wherein the first to-be-rendered view angle comprises a side view angle and a pitching view angle;
updating the side view based on the view interval, and determining the updated side view and the view positioned by the pitching view as a second view to be rendered until the rendering of the side view range is completed under the pitching view;
updating the pitch view based on the view interval;
and based on the updated pitching angle, rendering the side view range under the updated pitching angle.
The first perspective to be rendered may be a first side perspective of the range of side perspectives and a first tilt perspective positioned perspective of the range of tilt perspectives; for example, the range of the side view angle is 0 ° to 360 °, the range of the pitch view angle is-45 ° +45 °, the first to-be-rendered view angle is a view angle positioned at the side view angle of 0 °, and the pitch view angle is-45 °. Wherein "-" represents a top view and "+" represents a bottom view.
The first perspective to be rendered may also be a specified perspective, for example, a perspective of a side perspective 0 ° and a tilt perspective 0 °.
In one example, the side view angle range is 0 ° -360 °, the pitch view angle range is-45 °, the view angle interval is 15 °, the first to-be-rendered view angle is (0 °, -45 °), the second to-be-rendered view angle is (15 °, -45 °), and then sequentially is (30 °, -45 °, (45 °, -45 °), (60 °, -45 °), (75 °, -45 °), (8230; 345 °, -45 °), so that the side view angle range at the pitch view angle of-45 ° is rendered.
And updating the pitch viewing angle again, and finishing the rendering of the side viewing angle range under the pitch viewing angle of-30 degrees, wherein the viewing angles to be rendered are (0 degrees, -30 degrees), (15 degrees, -30 degrees), (30 degrees, -30 degrees, (45 degrees, -30 degrees), (60 degrees, -30 degrees), (8230; 345 degrees, -30 degrees), respectively.
Until the pitch angle range update is completed.
And when the rendering data is in the range of 0-360 degrees of side view angles, in the range of-45 degrees to +45 degrees of pitching view angles and in the interval of 15 degrees of view angles, generating 168 pictures by rendering, as shown in fig. 3, wherein the longitudinal list is pictures in the view angle range of the lower side of the same pitching view angle, and the transverse list is pictures in the pitching view angle range under the same side view angle.
In one embodiment, as shown in fig. 7, step S220 further includes:
and S310, dividing the plurality of pictures into a plurality of groups according to a preset rule.
A three-dimensional model is rendered with a large number of pictures, which may include nearly hundred or hundreds of pictures. In order to conveniently and quickly acquire the picture of the corresponding view angle, the picture needs to be managed. For example, each picture carries a view identifier to obtain a view corresponding to the picture; for another example, the plurality of pictures are arranged according to a preset rule so as to quickly query and obtain the picture of the corresponding view angle.
In the embodiment of the application, a plurality of pictures are grouped, the generated plurality of pictures are stored into a picture list, and the plurality of pictures are grouped, wherein one row or one column is divided into one group according to the picture list; or divide one row or column into two groups, or divide multiple rows or columns into one group, etc. The embodiment of the present application does not limit how to group.
And S330, splicing the multiple pictures of each group respectively to obtain spliced pictures.
The spliced pictures can be spliced pictures in a line form, namely, a plurality of pictures in the group are spliced after being arranged in a line; the method and the device can also be used for splicing pictures in a form of one column or in a form of multiple rows and multiple columns, and the splicing form for splicing multiple pictures is not limited in the embodiment of the application.
And S330, storing the spliced picture to a file server.
The number of pictures can be reduced by converting a plurality of pictures into spliced pictures; for example, the plurality of pictures obtained by rendering comprise 168 pictures, and after splicing, the pictures become 7 spliced pictures, so that the number of the pictures is greatly reduced.
After the plurality of pictures are converted into the spliced pictures, the pictures are transmitted and stored by the spliced pictures, so that the occupation of storage space can be effectively reduced, and the transmission speed is improved.
In one embodiment, step S224 further comprises:
s340, acquiring a spliced picture corresponding to the specified view angle, and acquiring the pointing position of the specified view angle in the spliced picture.
In one example, specifying the view angle as (0 °,30 °), a picture of the corresponding view angle (0 °,30 °) may be taken to be located at the coordinate position (0, 600) of the first stitched picture.
In the embodiment of the present application, the pointing position may be identified by coordinate values, or may also be identified by a matrix of columns, for example [3,5], which represents the third row and the fifth column of the pictures in the mosaic picture.
And S350, based on the pointing position, intercepting the picture of the pointing position according to the preset picture size.
The preset picture size can be the size of a picture generated by rendering, and when the picture is spliced, the picture is spliced according to the original size of the picture; or the size of one picture after the pictures are compressed when the pictures are spliced. The preset picture size is adapted to the size of the spliced picture. For example, the size of the stitched picture is 300 × 1800, including 6 pictures, and the preset picture size may be 300 × 300. For another example, the size of the spliced picture is 300 × 1860, including 6 pictures, and the preset picture size may also be 300 × 300, it can be understood that a blank region is provided between adjacent pictures during splicing.
The preset size of the picture may be a size determined according to a splicing rule when the picture is spliced. The preset picture size represents the size of each picture in the spliced pictures.
In the embodiment of the application, one point in the spliced picture is pointed through the pointing position, and then the required picture is intercepted based on the point and the preset picture size. The point to which the pointing position points may be any vertex of the picture, such as the top left vertex.
And S360, returning the intercepted picture to the terminal equipment.
And intercepting the picture corresponding to the specified view angle from the spliced pictures and returning the picture to the terminal equipment so that the user can browse the picture of the specified view angle.
According to the embodiment of the application, a plurality of pictures are spliced and stored to the file server in a picture splicing mode; and under the condition that the image needs to be called, calling the spliced image, and intercepting the image corresponding to the appointed view angle from the spliced image, so that the image is transmitted in a spliced image mode, and the image query speed and the file transmission efficiency are improved.
In one embodiment, step S310 includes: dividing a plurality of pictures obtained by rendering in a side view range under the same pitching view into a group; or dividing a plurality of pictures obtained by rendering within the range of the pitching angle of view under the same side angle of view into a group.
During rendering, a plurality of pictures can be stored in a list form according to the sequence of picture generation. For example, when rendering pictures of a plurality of side views at the same tilt view angle, the pictures are stored in the same column. When grouping, the plurality of pictures in the column may be grouped into one group. Referring to fig. 3, a column of pictures identified by a square frame is pictures of multiple side views at the same pitch view, and the column of pictures can be divided into a group.
In one embodiment, as shown in fig. 8, step S222 further includes:
and intercepting the mark of the spliced picture mark according to the preset picture size.
Step S224 further includes:
s440, acquiring a spliced picture corresponding to the specified visual angle based on the specified visual angle, and acquiring an intercepting identifier of the specified visual angle in the spliced picture.
And S450, intercepting the picture based on the intercepting identification.
And S460, returning the intercepted picture to the terminal equipment.
In one example, as shown in fig. 9, the size of the stitched picture is 300 × 1800, and includes 1 column of 6 pictures, and the 6 pictures are all marked with the clipping identifier. And when the picture corresponding to the appointed view angle is the 2 nd picture, acquiring the interception identification of the second picture, and intercepting the picture according to the interception identification.
The interception identifier may be generated and obtained according to a preset rule when the picture is spliced. It may be the edge of each picture when splicing.
Fig. 10 is a flow chart diagram illustrating a three-dimensional model display method according to an embodiment of the present application. As shown in fig. 10, the three-dimensional model display method according to the embodiment of the present application is applied to a terminal device. The method comprises the following steps:
s510, sending the three-dimensional model resource to a service platform so that the service platform renders the three-dimensional model resource to generate a plurality of pictures, and storing the plurality of pictures to a file server;
s520, receiving the addresses of the plurality of pictures returned by the service platform.
S530, sending a browsing request, wherein the browsing request comprises a specified view angle requested to be browsed;
and S540, receiving the picture corresponding to the specified visual angle, and displaying the picture on a display interface.
The three-dimensional model display method can be used for a manufacturer to display own three-dimensional model resources through the Internet by uploading the three-dimensional model resources to the service platform.
And the terminal equipment sends the three-dimensional model resources to the service platform, wherein the three-dimensional model resources can be the three-dimensional model resources uploaded by a producer in real time or the three-dimensional model resources stored in a local database by the producer. Therefore, after receiving the three-dimensional model resources, the service platform can render the three-dimensional model to generate a plurality of pictures.
And returning the plurality of pictures generated by the service platform to the terminal equipment, and receiving the plurality of pictures generated by rendering by the terminal equipment. The service platform returns to the address of the terminal equipment which can also be the address of the plurality of pictures, so that the producer can browse the appearance effect of the three-dimensional model by browsing the plurality of pictures.
In one example, the service platform may also return the address of the three-dimensional model resource to the terminal device.
In one embodiment, as shown in fig. 11, the three-dimensional model display method further includes:
s550, sending a specified instruction for specifying a preview picture of the three-dimensional model;
and S560, sending a configuration instruction for configuring the acquisition mode of the three-dimensional model.
After the terminal device receives the rendered multiple pictures, one of the pictures can be designated as a preview picture from the multiple pictures, and the preview picture is used for a picture displayed for the first time when other users browse the three-dimensional model.
The producer can also configure relevant information for configuring the obtaining mode of the three-dimensional model, for example, the three-dimensional model resource can be obtained from the service platform only under the condition of passing verification, so as to ensure the confidentiality of the three-dimensional model resource.
Fig. 12 is a flowchart illustrating a three-dimensional model displaying method according to an embodiment of the present application. As shown in fig. 13, the three-dimensional model display method according to the embodiment of the present application is applied to a terminal device. The method comprises the following steps:
s610, sending a preview request, wherein the preview request comprises a three-dimensional model which is requested to browse;
and S620, receiving the preview picture of the three-dimensional model, and displaying the preview picture to a display interface.
S630, sending a view angle instruction; the view angle instruction comprises a specified view angle for requesting browsing;
and S640, receiving the picture corresponding to the specified view angle, and displaying the picture corresponding to the specified view angle to a display interface.
The three-dimensional model method is used for the terminal equipment. The user can browse the three-dimensional model through the terminal equipment. And the user sends a preview request by clicking the operation of the corresponding three-dimensional model. And under the condition that the service platform receives the preview request, responding to the preview request, and returning a preview picture corresponding to the three-dimensional model. And the terminal equipment receives the preview picture and displays the preview picture on a display interface for a user to browse.
After browsing the preview picture of the three-dimensional model, the user wants to browse pictures of other viewing angles of the three-dimensional model, and can send a viewing angle instruction by dragging a mouse or clicking keys of a keyboard, such as up, down, left, right and the like, so as to request to acquire pictures corresponding to specified viewing angles of other viewing angles.
And the terminal equipment receives the picture corresponding to the appointed visual angle and displays the picture on a display interface for a user to browse.
In the embodiment of the present application, as shown in fig. 13, in a case that a user sends a preview request, a terminal device may obtain a preview picture of a three-dimensional model requested to be browsed, that is, a preview picture, from a service platform; and displaying the preview picture on a display interface, and the user can preview the three-dimensional model. The user can drag a mouse through operation or knock keys of a keyboard, such as up, down, left, right and the like, to request adjustment of a previewed view angle, and the service platform analyzes and determines a picture corresponding to a view angle specified by the view angle instruction and returns the picture to the terminal equipment under the condition that the view angle instruction is received. And the terminal equipment receives the returned picture corresponding to the specified visual angle and displays the picture on the display interface, so that the purpose that the visual angle displayed by the three-dimensional model can be adjusted according to the operation of a user can be realized. After the user browses the picture corresponding to the specified view angle, the angle can be adjusted again, and the updated picture corresponding to the specified view angle is requested from the service platform. The user browses the three-dimensional model by continuously changing the visual angle, so that the appearance effect of the three-dimensional model is comprehensively known.
Fig. 14 shows a block diagram of a three-dimensional model display platform 900 according to an embodiment of the present application. As shown in fig. 14, the three-dimensional model display platform 900 may include:
a resource obtaining module 910, configured to obtain a three-dimensional model resource;
the rendering module 920 is configured to render the three-dimensional model resource, generate a plurality of pictures, and store the plurality of pictures in the file server; wherein the plurality of pictures correspond to a plurality of viewing angles of the three-dimensional model;
a view angle determining module 930, configured to determine, in response to the browsing request, a specified view angle corresponding to the browsing request;
and a data returning module 940, configured to acquire the picture corresponding to the specified view from the file server, and return the picture to the terminal device.
In one embodiment, the three-dimensional model display platform 900 further comprises:
the preview picture determining module is used for determining a preview picture from a plurality of pictures;
the data returning module is also used for responding to the preview request and returning the preview picture to the terminal equipment.
In one embodiment, the data returning module 940 is further configured to return addresses of the multiple pictures to the terminal device;
the preview picture determining module comprises:
the appointed instruction receiving submodule is used for receiving an appointed instruction of the preview picture;
and the picture determining submodule is used for determining the picture specified by the specified instruction as a preview picture based on the specified instruction.
In one embodiment, rendering module 920 includes:
the data acquisition submodule is used for acquiring rendering data, and the rendering data comprises parameter information of a plurality of visual angles;
the canvas creation submodule is used for creating a canvas;
the to-be-rendered visual angle determining submodule is used for determining a to-be-rendered visual angle based on rendering data; the visual angle to be rendered is one of a plurality of visual angles;
and the picture generation submodule is used for drawing the picture information of the visual angle to be rendered on the canvas and generating a picture corresponding to the visual angle to be rendered.
In one embodiment, rendering data includes: a lateral view range, a pitch view range, and a view interval;
the to-be-rendered view angle determining submodule is used for:
determining a first to-be-rendered view angle, wherein the first to-be-rendered view angle comprises a side view angle and a pitching view angle;
updating the side view based on the view interval, and determining the updated side view and the view positioned by the pitching view as a second view to be rendered until the rendering of the side view range is completed under the pitching view;
updating the pitch view based on the view interval;
and rendering the side view angle range under the updated pitching view angle based on the updated pitching view angle.
In one embodiment, the rendering module 920 further comprises:
the grouping submodule is used for dividing a plurality of pictures into a plurality of groups according to a preset rule;
the splicing submodule is used for splicing the multiple pictures in each group respectively to obtain spliced pictures;
and the storage submodule is used for storing the spliced picture to a file server.
In one embodiment, the data return module 940 further includes:
the position sub-module is used for acquiring a spliced picture corresponding to the specified visual angle and acquiring the pointing position of the specified visual angle in the spliced picture;
the intercepting submodule is used for intercepting the picture of the pointing position according to the preset picture size based on the pointing position;
and the data return submodule is used for returning the intercepted picture to the terminal equipment.
In one embodiment, the grouping submodule is configured to:
dividing a plurality of pictures obtained by rendering in a side view range under the same pitching view into a group; alternatively, the first and second electrodes may be,
and dividing a plurality of pictures obtained by rendering within the range of the pitching visual angle under the same side visual angle into a group.
In one embodiment, the rendering module 920 further comprises:
the marking sub-module is used for marking and intercepting the mark of the spliced picture according to the preset picture size;
the data return module 940 further includes:
the position sub-module is used for acquiring a spliced picture corresponding to the specified visual angle based on the specified visual angle and acquiring an interception identifier of the specified visual angle in the spliced picture;
the intercepting submodule is used for intercepting the picture based on the intercepting identification;
and the data return submodule is used for returning the intercepted picture to the terminal equipment.
The functions of the modules in the apparatuses in the embodiment of the present application may refer to the corresponding descriptions in the above methods, and are not described herein again.
Fig. 15 shows a block diagram of a terminal apparatus 1500 according to an embodiment of the present application. The terminal device 1500 includes:
the resource sending module 1510 is configured to send the three-dimensional model resource to the service platform, so that the service platform renders the three-dimensional model resource, generates multiple pictures, and stores the multiple pictures in the file server;
a picture receiving module 1520, configured to receive addresses of multiple pictures returned by the service platform;
a first browsing module 1530, configured to send a browsing request, where the browsing request includes a specified view angle for requesting browsing;
the first display module 1540 is configured to receive a picture corresponding to the specified view angle, and display the picture on the display interface.
In one embodiment, the terminal device 1500 further comprises:
the preview picture specifying module is used for sending a specified instruction and specifying a preview picture of the three-dimensional model;
and the configuration module is used for sending a configuration instruction and configuring the acquisition mode of the three-dimensional model.
Fig. 16 shows a block diagram of a terminal device 1600 according to an embodiment of the present application. The terminal device 1600 includes:
a second browsing module 1610, configured to send a browsing request, where the browsing request includes a three-dimensional model requesting to browse;
the preview module 1620 is configured to receive a preview picture of the three-dimensional model, and display the preview picture to a display interface;
a view specifying module 1630, configured to send a view instruction; the view angle instruction comprises a specified view angle which is requested to browse;
the second display module 1640 is configured to receive the picture corresponding to the designated viewing angle, and display the picture corresponding to the designated viewing angle on the display interface.
Fig. 17 schematically shows a hardware architecture diagram of a computer device 1700 adapted to implement the three-dimensional model exhibition method according to an embodiment of the present application. In this embodiment, the computer device 1700 is a device capable of automatically performing numerical calculation and/or information processing in accordance with a command set in advance or stored. For example, the server may be a smart phone, a tablet computer, a notebook computer, a desktop computer, a rack server, a blade server, a tower server, or a rack server (including an independent server or a server cluster composed of a plurality of servers). As shown in fig. 17, computer device 1700 includes at least, but is not limited to: the memory 1710, processor 1720, and network interface 1730 may be communicatively linked to each other via a system bus. Wherein:
the memory 1710 includes at least one type of computer-readable storage medium including flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, memory 1710 may be an internal storage module of the computer device 1700, such as a hard disk or memory of the computer device 1700. In other embodiments, the memory 1710 may also be an external storage device of the computer device 1700, such as a plug-in hard disk provided on the computer device 1700, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like. Of course, memory 1710 may also include both internal and external memory modules for computer device 1700. In this embodiment, the memory 1710 is generally used for storing an operating system installed in the computer apparatus 1700 and various types of application software, such as program codes of a three-dimensional model presentation method. In addition, the memory 1710 can also be used to temporarily store various types of data that have been output or are to be output.
Processor 1720 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 1720 is generally configured to control overall operation of the computer device 1700, such as performing control and processing related to data interaction or communication with the computer device 1700. In this embodiment, processor 1720 is configured to execute program code stored in memory 1710 or to process data.
Network interface 1730 may include a wireless network interface or a wired network interface, and network interface 1730 is typically used to establish communication links between computer device 1700 and other computer devices. For example, the network interface 1730 is used to connect the computer device 1700 to an external terminal via a network, to establish a data transmission channel and a communication link between the computer device 1700 and the external terminal, and the like. The network may be an Intranet (Internet), the Internet (Internet), a Global System of Mobile communication (GSM), wideband Code Division Multiple Access (WCDMA), a 4G network, a 5G network, bluetooth (Bluetooth), wi-Fi, or other wireless or wired network.
It should be noted that FIG. 17 only shows a computer device having components 1710-1730, but it should be understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead.
In this embodiment, the three-dimensional model displaying method stored in the memory 1710 may be further divided into one or more program modules and executed by one or more processors (in this embodiment, the processor 1720) to complete the present embodiment.
The embodiments of the present application also provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the three-dimensional model displaying method in the embodiments are implemented.
In this embodiment, the computer-readable storage medium includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the computer readable storage medium may be an internal storage unit of the computer device, such as a hard disk or a memory of the computer device. In other embodiments, the computer readable storage medium may be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the computer device. Of course, the computer-readable storage medium may also include both internal and external storage devices of the computer device. In this embodiment, the computer-readable storage medium is generally used for storing an operating system and various types of application software installed in the computer device, for example, the program code of the three-dimensional model display method in the embodiment, and the like. Further, the computer-readable storage medium may also be used to temporarily store various types of data that have been output or are to be output.
It will be apparent to those skilled in the art that the modules or steps of the embodiments of the present application described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different from that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, embodiments of the present application are not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (17)

1. A three-dimensional model display method is characterized by comprising the following steps:
acquiring three-dimensional model resources;
rendering the three-dimensional model resource to generate a plurality of pictures, and storing the pictures to a file server; wherein the plurality of pictures correspond to a plurality of viewing angles of the three-dimensional model;
responding to a browsing request, and determining a specified view angle corresponding to the browsing request;
and acquiring the picture corresponding to the specified visual angle from the file server, and returning the picture to the terminal equipment.
2. The method of claim 1, wherein the determining, in response to the browsing request, the specified view angle corresponding to the browsing request further comprises:
determining a preview picture from the plurality of pictures;
and responding to the preview request, and returning the preview picture to the terminal equipment.
3. The method of claim 2, further comprising:
returning the addresses of the pictures to the terminal equipment;
the determining a preview picture from the plurality of pictures comprises:
receiving a specified instruction of previewing a picture;
and determining the picture specified by the specified instruction as a preview picture based on the specified instruction.
4. The method of claim 1, wherein the rendering the three-dimensional model resource to generate a plurality of pictures comprises:
acquiring rendering data, wherein the rendering data comprises parameter information of a plurality of visual angles;
creating a canvas;
determining a perspective to be rendered based on the rendering data; wherein the view to be rendered is one of the plurality of views;
and drawing the picture information of the view angle to be rendered on the canvas to generate a picture corresponding to the view angle to be rendered.
5. The method of claim 4, wherein the rendering data comprises: a lateral view range, a pitch view range, and a view interval;
the determining a perspective to be rendered based on the rendering data comprises:
determining a first perspective to be rendered, wherein the first perspective to be rendered comprises a side perspective and a pitch perspective;
updating a side view based on the view interval, and determining the updated side view and the view positioned by the pitching view as a second view to be rendered until the rendering of the side view range is completed under the pitching view;
updating a pitch view based on the view interval;
and based on the updated pitching angle, rendering the side view range under the updated pitching angle.
6. The method of claim 1, wherein storing the plurality of pictures to a file server comprises:
dividing the plurality of pictures into a plurality of groups according to a preset rule;
splicing the multiple pictures in each group respectively to obtain spliced pictures;
and storing the spliced picture to a file server.
7. The method according to claim 6, wherein the obtaining the picture corresponding to the specified view from the file server and returning the picture to the terminal device comprises:
acquiring a spliced picture corresponding to the specified visual angle, and acquiring the pointing position of the specified visual angle in the spliced picture;
based on the pointing position, intercepting a picture of the pointing position in a preset picture size;
and returning the intercepted picture to the terminal equipment.
8. The method according to claim 6, wherein the dividing the plurality of pictures into a plurality of groups according to a preset rule comprises:
dividing a plurality of pictures obtained by rendering in a side view range under the same pitching view into a group; alternatively, the first and second liquid crystal display panels may be,
and dividing a plurality of pictures obtained by rendering within the range of the pitching visual angle under the same side visual angle into a group.
9. The method of claim 6, wherein before storing the stitched picture to a file server, further comprising:
marking an intercepting mark for the spliced picture according to the size of a preset picture;
the acquiring the picture corresponding to the specified view angle from the file server and returning the picture to the terminal device comprises: acquiring a spliced picture corresponding to the specified view angle and acquiring an interception identifier of the specified view angle in the spliced picture;
intercepting a picture based on the intercepting identification;
and returning the intercepted picture to the terminal equipment.
10. A three-dimensional model display method is characterized by comprising the following steps:
sending the three-dimensional model resource to a service platform so that the service platform renders the three-dimensional model resource to generate a plurality of pictures, and storing the pictures to a file server;
receiving addresses of the plurality of pictures returned by the service platform;
sending a browsing request, wherein the browsing request comprises a specified view angle for requesting browsing;
and receiving the picture corresponding to the specified visual angle, and displaying the picture on a display interface.
11. The method of claim 10, further comprising:
sending a specified instruction, and specifying a preview picture of the three-dimensional model;
and sending a configuration instruction, and configuring the acquisition mode of the three-dimensional model resource.
12. A three-dimensional model display method is characterized by comprising the following steps:
sending a preview request, wherein the preview request comprises a three-dimensional model requesting browsing;
receiving a preview picture of the three-dimensional model, and displaying the preview picture to a display interface;
sending a visual angle instruction; the view angle instruction comprises a specified view angle which is requested to browse;
and receiving the picture corresponding to the specified visual angle, and displaying the picture corresponding to the specified visual angle to a display interface.
13. A three-dimensional model display platform, comprising:
the resource acquisition module is used for acquiring three-dimensional model resources;
the rendering module is used for rendering the three-dimensional model resource, generating a plurality of pictures and storing the pictures to a file server; wherein the plurality of pictures correspond to a plurality of viewing angles of the three-dimensional model;
the viewing angle determining module is used for responding to a browsing request and determining a specified viewing angle corresponding to the browsing request;
and the data returning module is used for acquiring the picture corresponding to the specified visual angle from the file server and returning the picture to the terminal equipment.
14. A terminal device, comprising:
the resource sending module is used for sending the three-dimensional model resources to a service platform so that the service platform renders the three-dimensional model resources to generate a plurality of pictures and stores the pictures to a file server;
the picture receiving module is used for receiving the addresses of the pictures returned by the service platform;
the first browsing module is used for sending a browsing request, wherein the browsing request comprises a specified view angle which is requested to be browsed;
and the first display module is used for receiving the picture corresponding to the specified visual angle and displaying the picture on a display interface.
15. A terminal device, comprising:
the second browsing module is used for sending a preview request, and the preview request comprises a three-dimensional model requesting to browse;
the preview module is used for receiving a preview picture of the three-dimensional model and displaying the preview picture to a display interface;
the visual angle specifying module is used for sending a visual angle instruction; the view angle instruction comprises a specified view angle which is requested to browse;
and the second display module is used for receiving the picture corresponding to the specified visual angle and displaying the picture corresponding to the specified visual angle to a display interface.
16. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-12.
17. A computer readable storage medium having stored therein computer instructions which, when executed by a processor, implement the method of any one of claims 1-12.
CN202211471790.2A 2022-11-23 2022-11-23 Three-dimensional model display method and related equipment Pending CN115830212A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211471790.2A CN115830212A (en) 2022-11-23 2022-11-23 Three-dimensional model display method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211471790.2A CN115830212A (en) 2022-11-23 2022-11-23 Three-dimensional model display method and related equipment

Publications (1)

Publication Number Publication Date
CN115830212A true CN115830212A (en) 2023-03-21

Family

ID=85530546

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211471790.2A Pending CN115830212A (en) 2022-11-23 2022-11-23 Three-dimensional model display method and related equipment

Country Status (1)

Country Link
CN (1) CN115830212A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117331470A (en) * 2023-10-24 2024-01-02 北京蜂鸟映像电子商务有限公司 Online virtual reality image display method and system, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117331470A (en) * 2023-10-24 2024-01-02 北京蜂鸟映像电子商务有限公司 Online virtual reality image display method and system, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US9396508B2 (en) Use of map data difference tiles to iteratively provide map data to a client device
CN103077239B (en) Based on the iFrame embedded Web 3D system that cloud is played up
US9424673B2 (en) Efficient composition and rendering of graphical elements
CN109671147B (en) Texture map generation method and device based on three-dimensional model
WO2008040123A1 (en) Method and system for delivering and interactively displaying three-dimensional graphics
CN114297206B (en) Refined efficient dynamic tile map service publishing method, medium and electronic equipment
US11119973B2 (en) Managing white space in a portal web page
WO2019228013A1 (en) Method, apparatus and device for displaying rich text on 3d model
CN104360847A (en) Method and equipment for processing image
CN114650434A (en) Cloud service-based rendering method and related equipment thereof
CN115830212A (en) Three-dimensional model display method and related equipment
CN111737618A (en) Vector diagram display method and device for Web end and computer equipment
CN112001018A (en) Efficient virtual simulation experiment platform testing method based on cloud rendering
CN113419806B (en) Image processing method, device, computer equipment and storage medium
CN116091672A (en) Image rendering method, computer device and medium thereof
CN114866801B (en) Video data processing method, device, equipment and computer readable storage medium
CN114913277A (en) Method, device, equipment and medium for three-dimensional interactive display of object
CN115641397A (en) Method and system for synthesizing and displaying virtual image
WO2022052729A1 (en) Display method and apparatus for virtual card, computer device, and storage medium
CN114035787A (en) Webpage construction method and device, electronic equipment, storage medium and product
CN115022726A (en) Surrounding information generation and barrage display method, device, equipment and storage medium
CN112328940A (en) Method and device for embedding transition page into webpage, computer equipment and storage medium
CN117311708B (en) Dynamic modification method and device for resource display page in 3D scene of webpage end
CN112307378B (en) Network view display method
CN116012561A (en) Method, apparatus, device and storage medium for content generation

Legal Events

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