Virtual model processing method, virtual model processing apparatus, electronic device, medium

By constructing virtual models in a virtual scene and removing invisible facial features, the problem of slow virtual model rendering speed is solved, rendering efficiency is improved, and limitations on size and precision are reduced.

CN116452782BActive Publication Date: 2026-11-27BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310383555.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-11
Publication Date
2026-11-27
Estimated Expiration
2043-04-11

AI Technical Summary

Technical Problem

Existing technologies for creating virtual models are slow and have significant limitations on the size and accuracy of the virtual models.

Method used

A virtual model is constructed in a virtual scene, the field of view is obtained, and the virtual model image is rendered from different perspectives. The invisible face elements are identified by traversing the identification information of the pixels, and the invisible face elements are deleted to reduce the number of face elements.

Benefits of technology

It improves the drawing speed and rendering efficiency of virtual models, avoiding limitations on size and precision.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116452782B_ABST
    Figure CN116452782B_ABST
Patent Text Reader

Abstract

The present disclosure relates to the technical field of computer, in particular to a virtual model processing method, a virtual model processing device, equipment and a storage medium. The method comprises: constructing a virtual model in a virtual scene; wherein the virtual model has a plurality of virtual model surface elements; obtaining a view angle range corresponding to the virtual model; rendering the virtual model to obtain a plurality of virtual model images when the virtual model is at a plurality of view angles respectively, and inputting identification information corresponding to the virtual model surface elements into pixel points in the virtual model images; traversing a plurality of pixel points in the plurality of virtual model images, and determining virtual model surface elements corresponding to the plurality of pixel points according to the identification information in the plurality of pixel points; determining invisible virtual model surface elements in the virtual model according to the virtual model surface elements corresponding to the plurality of pixel points; and deleting the invisible virtual model surface elements in the virtual model. Through the technical scheme of the embodiment of the present disclosure, the problem of slow drawing of virtual model surface elements in related technologies can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer technology, and in particular to a virtual model processing method, a virtual model processing apparatus, an electronic device, and a computer-readable storage medium. Background Technology

[0002] With the rapid development of software and hardware, the application fields of augmented reality technology have gradually become more widespread. Augmented reality technology refers to the technology that cleverly integrates virtual information with the real world. It widely uses various technical means such as multimedia, 3D modeling, real-time tracking and registration, intelligent interaction, and sensing to simulate and apply computer-generated virtual information such as text, images, 3D models, music, and videos to the real world. The two types of information complement each other, thereby achieving the "enhancement" of the real world.

[0003] However, in the process of implementing augmented reality technology, it is often done through terminals with low computing power. When drawing virtual models, the speed is slow, and there are significant limitations on the size and accuracy of the virtual models. Summary of the Invention

[0004] This disclosure provides a virtual model processing method, a virtual model processing apparatus, an electronic device, a computer-readable storage medium, and a computer program product, to at least solve the problem of slow speed in drawing virtual model elements in related technologies. The technical solution of this disclosure is as follows:

[0005] According to a first aspect of the present disclosure, a virtual model processing method is provided, comprising: constructing a virtual model in a virtual scene; wherein the virtual model has multiple virtual model facets; obtaining a viewpoint range corresponding to the virtual model; wherein the viewpoint range corresponding to the virtual model includes multiple viewpoints, and the position of the virtual model relative to the virtual camera is different when the virtual model is in different viewpoints; rendering the virtual model to obtain multiple virtual model images when the virtual model is in multiple viewpoints respectively, and inputting the identification information corresponding to the virtual model facets into the pixels of the virtual model images; wherein the virtual model images include multiple pixels; traversing the multiple pixels in the multiple virtual model images, determining the virtual model facets corresponding to the multiple pixels according to the identification information in the multiple pixels; determining invisible virtual model facets in the virtual model according to the virtual model facets corresponding to the multiple pixels; and deleting the invisible virtual model facets in the virtual model.

[0006] Optionally, the viewpoint range corresponding to the virtual model can be obtained, including: obtaining the horizontal rotation range of the virtual model and obtaining the vertical rotation range of the virtual model; and determining the viewpoint range corresponding to the virtual model based on the horizontal rotation range and the vertical rotation range of the virtual model.

[0007] Optionally, when the virtual model is in multiple viewpoints, the virtual model is rendered to obtain multiple virtual model images, including: randomly determining a first target viewpoint among the multiple viewpoints; wherein the multiple viewpoints include the first target viewpoint; rendering the virtual model to obtain multiple virtual model images when the virtual model is in multiple first target viewpoints; and stopping the rendering of the virtual model when the random termination condition is met.

[0008] Optionally, when the virtual model is in multiple viewpoints, the virtual model is rendered to obtain multiple virtual model images, including: determining a second target viewpoint sequentially in the multiple viewpoints according to a preset interval; wherein the multiple viewpoints include the second target viewpoint; and rendering the virtual model to obtain multiple virtual model images when the virtual model is in multiple second target viewpoints.

[0009] Optionally, inputting the identification information corresponding to the virtual model surface element into the pixels of the virtual model image includes: inputting the color information corresponding to the virtual model surface element into the pixels of the virtual model image; traversing multiple pixels in multiple virtual model images and determining the virtual model surface element corresponding to the multiple pixels based on the identification information in the multiple pixels includes: traversing multiple pixels in multiple virtual model images and determining the virtual model surface element corresponding to the multiple pixels based on the color information in the multiple pixels.

[0010] Optionally, determining invisible virtual model elements in the virtual model based on virtual model elements corresponding to multiple pixels includes: determining virtual model elements corresponding to multiple pixels as visible virtual model elements of the virtual model; and determining invisible virtual model elements of the virtual model based on multiple virtual model elements and visible virtual model elements.

[0011] Optionally, the invisible virtual model elements of the virtual model are determined based on multiple virtual model elements and visible virtual model elements, including: obtaining multiple target virtual model elements other than visible virtual model elements from the multiple virtual model elements, and determining the multiple target virtual model elements as invisible virtual model elements of the virtual model.

[0012] According to a second aspect of the present disclosure, a virtual model processing apparatus is provided. The apparatus includes: a virtual model construction unit configured to construct a virtual model in a virtual scene; wherein the virtual model has multiple virtual model facets; a viewpoint range acquisition unit configured to acquire a viewpoint range corresponding to the virtual model; wherein the viewpoint range corresponding to the virtual model includes multiple viewpoints, and the position of the virtual model relative to the virtual camera is different when the virtual model is in different viewpoints; an identification information input unit configured to render the virtual model to obtain multiple virtual model images when the virtual model is in multiple viewpoints respectively, and input the identification information corresponding to the virtual model facets into pixels in the virtual model images; wherein the virtual model images include multiple pixels; a pixel traversal unit configured to traverse the multiple pixels in the multiple virtual model images and determine the virtual model facets corresponding to the multiple pixels based on the identification information in the multiple pixels; an invisible facet determination unit configured to determine invisible virtual model facets in the virtual model based on the virtual model facets corresponding to the multiple pixels; and an invisible facet deletion unit configured to delete invisible virtual model facets in the virtual model.

[0013] Optionally, to obtain the viewing angle range corresponding to the virtual model, the device further includes: a rotation range acquisition unit, configured to acquire the horizontal rotation range of the virtual model and the vertical rotation range of the virtual model; and a viewing angle range determination unit, configured to determine the viewing angle range corresponding to the virtual model based on the horizontal rotation range and the vertical rotation range of the virtual model.

[0014] Optionally, when the virtual model is in multiple viewpoints, the virtual model is rendered to obtain multiple virtual model images. The device further includes: a first target viewpoint determination unit, configured to randomly determine a first target viewpoint among the multiple viewpoints; wherein the multiple viewpoints include the first target viewpoint; a first target viewpoint rendering unit, configured to render the virtual model to obtain multiple virtual model images when the virtual model is in multiple first target viewpoints; and a stop rendering unit, used to stop rendering the virtual model when a random termination condition is met.

[0015] Optionally, when the virtual model is in multiple viewpoints, the virtual model is rendered to obtain multiple virtual model images. The device further includes: a second target viewpoint determination unit, configured to determine the second target viewpoint sequentially at a preset interval among the multiple viewpoints; wherein the multiple viewpoints include the second target viewpoint; and a first target viewpoint rendering unit, configured to render the virtual model to obtain multiple virtual model images when the virtual model is in multiple second target viewpoints.

[0016] Optionally, the device further includes a color information input unit configured to input color information corresponding to virtual model facets into pixels in a virtual model image; and a color information determination unit configured to traverse multiple pixels in multiple virtual model images and determine virtual model facets corresponding to multiple pixels based on the identification information in the multiple pixels.

[0017] Optionally, the apparatus further includes: a visible virtual model surface determining unit configured to determine the virtual model surface corresponding to the multiple pixels as visible virtual model surface of the virtual model; and a first invisible virtual model surface determining unit configured to determine the invisible virtual model surface of the virtual model based on the multiple virtual model surface and the visible virtual model surface.

[0018] Optionally, the device further includes a second invisible virtual model surface determination unit, configured to perform the following: obtaining multiple target virtual model surfaces excluding the visible virtual model surfaces from the multiple virtual model surfaces, and determining the multiple target virtual model surfaces as invisible virtual model surfaces of the virtual model.

[0019] According to a third aspect of the present disclosure, an electronic device is provided, comprising:

[0020] processor;

[0021] Memory used to store processor-executable instructions;

[0022] The processor is configured to execute executable instructions to implement the virtual model processing method described above.

[0023] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, which, when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, enables the electronic device to perform the virtual model processing method described above.

[0024] According to a fifth aspect of the present disclosure, a computer program product is provided, a computer program / instruction, characterized in that the computer program / instruction implements the above-described virtual model processing method when executed by a processor.

[0025] The technical solutions provided by the embodiments of this disclosure have at least the following beneficial effects:

[0026] In one embodiment of the virtual model processing method disclosed herein, a virtual model can be constructed in a virtual scene, the viewpoint range corresponding to the virtual model can be obtained, and when the virtual model is in multiple viewpoints, the virtual model is rendered to obtain multiple virtual model images. The identification information corresponding to the virtual model facets is input into the pixels of the virtual model images. Multiple pixels in multiple virtual model images are traversed, and the virtual model facets corresponding to the multiple pixels are determined according to the identification information in the multiple pixels. The invisible virtual model facets in the virtual model are determined according to the virtual model facets corresponding to the multiple pixels. The solution disclosed herein can reduce the number of virtual model facets drawn without affecting the display of the virtual model, thereby improving the drawing speed of the virtual model and thus improving the rendering efficiency of the virtual model. In addition, reducing the number of virtual model facets can avoid limitations on the size and accuracy of the virtual model.

[0027] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0028] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure, and are not intended to unduly limit this disclosure.

[0029] Figure 1 This schematic diagram illustrates an exemplary system architecture for implementing the virtual model processing method in an exemplary embodiment of the present disclosure;

[0030] Figure 2 This is a flowchart illustrating a virtual model processing method according to an exemplary embodiment;

[0031] Figure 3 This is a flowchart illustrating, according to an exemplary embodiment, a method for determining the viewpoint range of a virtual model based on its horizontal and vertical rotation ranges.

[0032] Figure 4 This is a schematic diagram illustrating a method for determining the field of view corresponding to a virtual model, according to an exemplary embodiment.

[0033] Figure 5 This is a flowchart illustrating, according to an exemplary embodiment, a method for stopping the rendering of a virtual model when a random termination condition is met;

[0034] Figure 6 This is a flowchart illustrating, according to an exemplary embodiment, a process of rendering a virtual model to obtain multiple virtual model images when the virtual model is in multiple second target viewpoints;

[0035] Figure 7 This is a flowchart illustrating, according to an exemplary embodiment, a method for determining invisible virtual model elements of a virtual model based on multiple virtual model elements and visible virtual model elements;

[0036] Figure 8 This is a flowchart illustrating another virtual model processing method according to an exemplary embodiment;

[0037] Figure 9 This is a schematic diagram illustrating the composition of a virtual model processing apparatus according to an exemplary embodiment;

[0038] Figure 10 This is a schematic diagram illustrating the structure of an electronic device suitable for implementing exemplary embodiments of the present disclosure, according to an exemplary embodiment. Detailed Implementation

[0039] To enable those skilled in the art to better understand the technical solutions of this disclosure, the technical solutions in the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings.

[0040] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0041] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software, or in one or more software-hardened modules, or in different network and / or processor devices and / or microcontroller devices.

[0042] Figure 1 A schematic diagram of an exemplary system architecture to which the virtual model processing method of embodiments of the present disclosure can be applied is shown.

[0043] like Figure 1As shown, system architecture 1000 may include one or more of terminal devices 1001, 1002, and 1003, network 1004, and server 1005. Network 1004 is used as a medium to provide a communication link between terminal devices 1001, 1002, and 1003 and server 1005. Network 1004 may include various connection types, such as wired or wireless communication links or fiber optic cables, etc.

[0044] It should be understood that Figure 1 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included. For example, server 1005 could be a server cluster composed of multiple servers.

[0045] Users can use terminal devices 1001, 1002, and 1003 to interact with server 1005 via network 1004 to receive or send messages, etc. Terminal devices 1001, 1002, and 1003 can be various electronic devices with displays, including but not limited to smartphones, tablets, laptops, and desktop computers. Additionally, server 1005 can be a server providing various services.

[0046] In one embodiment, the execution entity of the virtual model processing method disclosed herein may be a server 1005. The server 1005 can obtain virtual models sent by terminal devices 1001, 1002, and 1003, construct virtual models in virtual scenes, obtain the view range corresponding to the virtual models, render the virtual models to obtain multiple virtual model images when the virtual models are in multiple view ranges, input the identification information corresponding to the virtual model elements into the pixels of the virtual model images, traverse the multiple pixels in the multiple virtual model images, determine the virtual model elements corresponding to the multiple pixels based on the identification information in the multiple pixels, determine the invisible virtual model elements in the virtual model based on the virtual model elements corresponding to the multiple pixels, and delete the invisible virtual model elements in the virtual model.

[0047] In addition, the virtual model processing method disclosed herein can be executed through terminal devices 1001, 1002, 1003, etc., to realize the construction of virtual models in virtual scenes, obtain the view range corresponding to the virtual models, render the virtual models to obtain multiple virtual model images when the virtual models are in multiple viewpoints, input the identification information corresponding to the virtual model elements into the pixels of the virtual model images, traverse the multiple pixels in the multiple virtual model images, determine the virtual model elements corresponding to the multiple pixels based on the identification information in the multiple pixels, determine the invisible virtual model elements in the virtual model based on the virtual model elements corresponding to the multiple pixels, and delete the invisible virtual model elements in the virtual model.

[0048] Furthermore, the implementation process of the virtual model processing method disclosed herein can also be jointly implemented by terminal devices 1001, 1002, and 1003 and server 1005. For example, terminal devices 1001, 1002, and 1003 can construct a virtual model in a virtual scene, obtain the viewpoint range corresponding to the virtual model, render the virtual model to obtain multiple virtual model images when the virtual model is in multiple viewpoints, input the identification information corresponding to the virtual model elements into the pixels of the virtual model images, traverse multiple pixels in multiple virtual model images, determine the virtual model elements corresponding to the multiple pixels based on the identification information in the multiple pixels, determine the invisible virtual model elements in the virtual model based on the virtual model elements corresponding to the multiple pixels, delete the invisible virtual model elements in the virtual model, and return the virtual model with the invisible virtual model elements deleted to server 1005.

[0049] With the rapid development of software and hardware, the application fields of augmented reality technology have gradually become more widespread. Augmented reality technology refers to the technology that cleverly integrates virtual information with the real world. It widely uses various technical means such as multimedia, 3D modeling, real-time tracking and registration, intelligent interaction, and sensing to simulate and apply computer-generated virtual information such as text, images, 3D models, music, and videos to the real world. The two types of information complement each other, thereby achieving the "enhancement" of the real world.

[0050] However, in the process of implementing augmented reality technology, it is often done through terminals with low computing power. When drawing virtual models, the speed is slow, and there are significant limitations on the size and accuracy of the virtual models.

[0051] Figure 2 This is a flowchart illustrating a virtual model processing method according to an exemplary embodiment, such as... Figure 2 As shown, the virtual model processing method may include the following steps.

[0052] In step S210, a virtual model is constructed in the virtual scene; wherein the virtual model has multiple virtual model elements;

[0053] In step S220, the view range corresponding to the virtual model is obtained; wherein, the view range corresponding to the virtual model includes multiple viewpoints, and the position of the virtual model relative to the virtual camera is different when the virtual model is in different viewpoints;

[0054] In step S230, when the virtual model is in multiple viewpoints, the virtual model is rendered to obtain multiple virtual model images, and the identification information corresponding to the virtual model facets is input into the pixels of the virtual model images; wherein, the virtual model images include multiple pixels;

[0055] In step S240, multiple pixels in multiple virtual model images are traversed, and the virtual model elements corresponding to the multiple pixels are determined according to the identification information in the multiple pixels.

[0056] In step S250, invisible virtual model elements in the virtual model are determined based on the virtual model elements corresponding to multiple pixels.

[0057] In step S260, invisible virtual model elements in the virtual model are deleted.

[0058] In one embodiment of this disclosure, a virtual model processing method is provided. A virtual model can be constructed in a virtual scene, and the viewpoint range corresponding to the virtual model can be obtained. When the virtual model is in multiple viewpoints, multiple virtual model images are rendered. The identification information corresponding to the virtual model facets is input into the pixels of the virtual model images. Multiple pixels in the multiple virtual model images are traversed, and the virtual model facets corresponding to the multiple pixels are determined based on the identification information. Invisible virtual model facets in the virtual model are determined based on the virtual model facets corresponding to the multiple pixels, and then deleted. This solution reduces the number of virtual model facets drawn without affecting the display of the virtual model, thereby improving the rendering speed and efficiency of the virtual model. Furthermore, reducing the number of virtual model facets avoids limitations on the size and accuracy of the virtual model.

[0059] Below, we will combine Figure 2 The embodiments will provide a more detailed description of steps S210 to S240 of the virtual model processing method in this exemplary embodiment.

[0060] Step S210: Construct a virtual model in the virtual scene; wherein the virtual model has multiple virtual model elements;

[0061] In one example embodiment of this disclosure, a virtual model can be constructed in a virtual scene. The virtual model has multiple virtual model elements. Specifically, the virtual model can be a virtual model created through a 3D interactive content creation platform. For example, the virtual model can be created using Unity3D; or, it can be created using UX / UX. It should be noted that this disclosure does not impose any specific limitations on the specific method of constructing the virtual model in a virtual scene.

[0062] In one example embodiment of this disclosure, the virtual model has multiple virtual model facets. Specifically, the virtual model may include multiple vertices and multiple virtual model facets obtained by connecting the multiple vertices. For example, the virtual model facets may be triangular facets, quadrilateral facets, or polygonal facets.

[0063] It should be noted that this disclosure does not impose any special limitation on the specific number of edges of the virtual model face elements.

[0064] Step S220: Obtain the view range corresponding to the virtual model;

[0065] In one example embodiment of this disclosure, after constructing a virtual model in a virtual scene through the above steps, the viewpoint range corresponding to the virtual model can be obtained. The viewpoint range corresponding to the virtual model includes multiple viewpoints; the virtual model's position relative to the virtual camera differs depending on the viewpoint. Specifically, the virtual model can rotate or move within the virtual scene. When the virtual model rotates or moves, its viewpoint changes; that is, the set of viewpoints of the virtual model constitutes the viewpoint range corresponding to the virtual model.

[0066] For example, the virtual model is the head model of a virtual object. The head model of the virtual object can be rotated in the virtual scene. The head model of the virtual object has a limit range for horizontal rotation and a limit range for vertical rotation. At this time, the viewpoint range corresponding to the virtual model can be determined based on the limit range of horizontal rotation and the limit range of vertical rotation of the head model of the virtual object.

[0067] It should be noted that this disclosure does not impose any special restrictions on the specific method for obtaining the viewpoint range corresponding to the virtual model.

[0068] In one example embodiment of this disclosure, the horizontal rotation range of the virtual model and the vertical rotation range of the virtual model can be obtained, and the corresponding viewpoint range of the virtual model can be determined based on the horizontal and vertical rotation ranges of the virtual model. (Refer to...) Figure 3 As shown, determining the corresponding viewpoint range of the virtual model based on its horizontal and vertical rotation range can include the following steps S310 to S320:

[0069] Step S310: Obtain the horizontal rotation range of the virtual model and the vertical rotation range of the virtual model;

[0070] Step S320: Determine the viewing angle range corresponding to the virtual model based on the horizontal rotation range and the vertical rotation range of the virtual model.

[0071] In one example embodiment of this disclosure, after constructing a virtual model in a virtual scene through the above steps, the horizontal rotation range and the vertical rotation range of the virtual model can be obtained. Specifically, the horizontal and vertical rotation ranges of the virtual model can be preset values. For example, if the virtual model is the head model of a virtual object, and the head model of the virtual object can rotate 60° horizontally (30° to the left and right), then the horizontal rotation range of the virtual model is 60°. Similarly, the head model of the virtual object can rotate 60° vertically (30° up and down), meaning the vertical rotation range of the virtual model is 60°.

[0072] In one example embodiment of this disclosure, after obtaining the horizontal rotation range and the vertical rotation range of the virtual model, the corresponding viewpoint range of the virtual model can be determined based on these ranges. Specifically, the surface formed by the horizontal and vertical rotation ranges of the virtual model can be defined as the corresponding viewpoint range of the virtual model.

[0073] It should be noted that this disclosure does not impose any special limitations on the specific method of determining the viewpoint range of the virtual model based on the horizontal rotation range and the vertical rotation range of the virtual model.

[0074] For example, such as Figure 4 As shown, the viewing angle range of the virtual model can be determined based on the horizontal rotation range 401 of the virtual model 400 and the vertical rotation range of the virtual model (not shown in the figure).

[0075] Through the above steps S310-S320, the horizontal rotation range and the vertical rotation range of the virtual model can be obtained. Based on these two ranges, the corresponding viewpoint range of the virtual model can be determined. Through the embodiments of this disclosure, the horizontal and vertical rotation ranges can be determined first, and then the viewpoint range corresponding to the virtual model can be constructed based on these two ranges.

[0076] Step S230: When the virtual model is in multiple viewpoints, render the virtual model to obtain multiple virtual model images, and input the identification information corresponding to the virtual model facets into the pixels of the virtual model images.

[0077] In one example embodiment of this disclosure, after obtaining the viewpoint range corresponding to the virtual model through the above steps, multiple virtual model images can be rendered when the virtual model is in multiple viewpoints. Each virtual model image includes multiple pixels. Specifically, a first viewpoint can be determined first. When the virtual model is in the first viewpoint, a virtual model image is rendered. Then, a second viewpoint can be determined, and when the virtual model is in the second viewpoint, a virtual model image is rendered, and so on, until multiple virtual model images are obtained when the virtual model is in multiple viewpoints. Specifically, because the virtual model is in different viewpoints, the virtual model images captured by the virtual lens used to capture the scene in the virtual scene are also different.

[0078] Specifically, when rendering a virtual model to obtain multiple virtual model images, or after rendering multiple virtual model images, the identification information corresponding to the virtual model facets can be input into the pixels of the virtual model images. Specifically, different virtual model facets have different identification information, which can be used to uniquely identify a virtual model facet. For example, the identification information corresponding to a virtual model facet can be a facet ID, color information, or floating-point number information.

[0079] It should be noted that this disclosure does not impose any special restrictions on the specific type of identification information corresponding to the virtual model facets.

[0080] In one example embodiment of this disclosure, a first target viewpoint can be randomly determined from multiple viewpoints; wherein, the multiple viewpoints include the first target viewpoint, and when the virtual model is in multiple first target viewpoints respectively, the virtual model is rendered to obtain multiple virtual model images, and rendering of the virtual model stops when a random termination condition is met. (Refer to...) Figure 5 As shown, stopping the rendering of the virtual model when the random termination condition is met may include the following steps S510 to S530:

[0081] Step S510: Randomly determine the first target viewpoint from multiple viewpoints;

[0082] Step S520: When the virtual model is in multiple first target viewpoints, render the virtual model to obtain multiple virtual model images;

[0083] Step S530: When the random termination condition is met, stop rendering the virtual model.

[0084] In one example embodiment of this disclosure, after obtaining the viewpoint range corresponding to the virtual model through the above steps, a first target viewpoint can be randomly determined from multiple viewpoints. Specifically, the viewpoint range corresponding to the virtual model includes multiple viewpoints. In this case, a first target viewpoint can be determined within the virtual model using a random algorithm. When the virtual model is within the first target viewpoint, the virtual model is rendered to obtain a virtual model image. After obtaining the virtual model image under this viewpoint, another first target viewpoint can be randomly determined, and when the virtual model is within this first target viewpoint, the virtual model is rendered to obtain a virtual model image. This process continues, allowing for the random determination of multiple first target viewpoints, and the rendering of the virtual model when it is within each of the multiple first target viewpoints to obtain multiple virtual model images.

[0085] In one example embodiment of this disclosure, the random termination condition means that, after the random termination condition is met, the determination of the first target viewpoint among multiple viewpoints stops, and the rendering of the virtual model stops. For example, the random termination condition can be a random number of times, that is, when the number of times the first target viewpoint is randomly determined reaches a preset number, the random termination condition is met, and the rendering of the virtual model stops; or, the random termination condition can be: when the virtual model is in the first target viewpoint, no new pixels with different identification information are generated in the virtual model image obtained by rendering the virtual model while the virtual model is in the first target viewpoint.

[0086] It should be noted that this disclosure does not impose any special restrictions on the specific type of random termination condition.

[0087] Through the above steps S510 to S530, a first target viewpoint can be randomly determined from multiple viewpoints. The multiple viewpoints include the first target viewpoint. When the virtual model is in multiple first target viewpoints, multiple virtual model images are rendered. Rendering of the virtual model stops when a random termination condition is met. Through the embodiments of this disclosure, the first target viewpoint can be determined from multiple viewpoints in a random manner. When the virtual model is in multiple first target viewpoints, multiple virtual model images are rendered, avoiding viewpoint omissions and obtaining more complete virtual model images.

[0088] In one example embodiment of this disclosure, second target viewpoints can be sequentially determined at preset intervals from multiple viewpoints. When the virtual model is positioned within multiple second target viewpoints, multiple virtual model images are rendered. (Refer to...) Figure 6 As shown, when the virtual model is in multiple second target viewpoints, rendering the virtual model to obtain multiple virtual model images may include the following steps S610 to S620:

[0089] Step S610: Determine the second target viewpoint sequentially from multiple viewpoints according to a preset interval;

[0090] Step S620: When the virtual model is in multiple second target viewpoints, render the virtual model to obtain multiple virtual model images.

[0091] In one example embodiment of this disclosure, after obtaining the viewpoint range corresponding to the virtual model through the above steps, a second target viewpoint can be sequentially determined among multiple viewpoints at preset intervals. Specifically, the viewpoint range corresponding to the virtual model includes multiple viewpoints. In this case, a second target viewpoint can be determined first among the multiple viewpoints. When the virtual model is in the second target viewpoint, the virtual model is rendered to obtain a virtual model image. After obtaining the virtual model image under this viewpoint, it can be offset by a preset interval, and the viewpoint after the offset can be determined as the second target viewpoint. When the virtual model is in this second target viewpoint, the virtual model is rendered to obtain a virtual model image. Similarly, a second target viewpoint can be sequentially determined among multiple viewpoints at preset intervals, and when the virtual model is in each of the multiple second target viewpoints, multiple virtual model images can be rendered.

[0092] In one example embodiment of this disclosure, when the virtual model exceeds the viewpoint range corresponding to the virtual model after being offset again by a preset interval, the rendering of the virtual model is stopped.

[0093] Through the above steps S610-S620, second target viewpoints can be sequentially determined at preset intervals from multiple viewpoints. When the virtual model is in multiple second target viewpoints, multiple virtual model images are rendered. Through the embodiments of this disclosure, multiple virtual model images can be rendered when the virtual model is in multiple second target viewpoints, avoiding viewpoint omissions and making the acquired multiple virtual model images more complete.

[0094] In one example embodiment of this disclosure, the color information corresponding to a virtual model facet can be input into the pixels of a virtual model image, and multiple pixels in multiple virtual model images can be traversed. The virtual model facet corresponding to the multiple pixels is determined based on the color information in the multiple pixels. Specifically, each virtual model facet has corresponding color information. When rendering a virtual model to obtain a virtual model image, the color information corresponding to the virtual model facet can be input into the pixels of the virtual model image. Since the color information corresponding to each facet is different, the color information in the pixels corresponding to the virtual model is also different. At this time, the virtual model facet corresponding to the pixel can be uniquely determined based on the color information in the pixel.

[0095] In one example embodiment of this disclosure, a standard rendering pipeline can be used to render a virtual model. The color information corresponding to the virtual model facet is the color value corresponding to the virtual model facet. The color value corresponding to the virtual model facet can be input into the pixel point corresponding to the virtual model.

[0096] In one example embodiment of this disclosure, virtual model facets and color information can be stored correspondingly, and the number of bits stored is the same. For example, a virtual model facet can be represented by its ID. When storing, the ID of the virtual model facet is 32 bits, and the color value is also 32 bits.

[0097] It should be noted that this disclosure does not impose any special limitations on the specific method for determining the virtual model elements corresponding to multiple pixels based on the color information in multiple pixels.

[0098] Step S240: Traverse multiple pixels in multiple virtual model images and determine the virtual model elements corresponding to multiple pixels based on the identification information in the multiple pixels;

[0099] In one example embodiment of this disclosure, after obtaining multiple virtual model images rendered from different perspectives through the above steps, multiple pixels in the multiple virtual model images can be traversed, and the virtual model facets corresponding to the multiple pixels can be determined based on the identification information in the multiple pixels. Specifically, the virtual model image includes multiple pixels, which can be traversed. Since the pixels contain the identification information of virtual model facets, the identification information of virtual model facets can be obtained from the pixels, and the identification information of virtual model facets can be used to indicate the unique corresponding virtual model facet, that is, the virtual model facets corresponding to the pixels can be determined based on the identification information in the pixels.

[0100] Specifically, pixels in different virtual model images can have the same identifier information. In this case, only one set of pixels with the same identifier information can be retained, and the corresponding virtual model element can be determined through the identifier information of this retained pixel. Alternatively, different virtual model images can have different pixels. After traversing multiple pixels in multiple virtual model images, the corresponding virtual model elements of multiple pixels can be determined based on their identifier information (which is different for each pixel).

[0101] It should be noted that this disclosure does not impose any special limitations on the specific method for determining the virtual model elements corresponding to multiple pixels based on the identification information in multiple pixels.

[0102] Step S250: Determine the invisible virtual model elements in the virtual model based on the virtual model elements corresponding to multiple pixels;

[0103] In one example embodiment of this disclosure, after obtaining the virtual model facets corresponding to pixels through the above steps, invisible virtual model facets in the virtual model can be determined based on the virtual model facets corresponding to multiple pixels. Specifically, invisible virtual model facets in the virtual model refer to those that will not be captured by the virtual camera in the virtual scene when the virtual model is in any viewpoint within the viewing range. Specifically, since the virtual model has multiple virtual model facets, the virtual model facets excluding those corresponding to multiple pixels can be determined as invisible virtual model facets.

[0104] It should be noted that this disclosure does not impose any special limitations on the specific method for determining the invisible virtual model elements in the virtual model based on the virtual model elements corresponding to multiple pixels.

[0105] In one example embodiment of this disclosure, virtual model facets corresponding to multiple pixels can be determined as visible virtual model facets of the virtual model, and invisible virtual model facets of the virtual model can be determined based on the multiple virtual model facets and the visible virtual model facets. (Refer to...) Figure 7 As shown, the invisible virtual model elements of a virtual model can be determined based on multiple virtual model elements and visible virtual model elements, which may include the following steps S710 to S720:

[0106] Step S710: Determine the virtual model elements corresponding to multiple pixels as visible virtual model elements of the virtual model;

[0107] Step S720: Determine the invisible virtual model elements of the virtual model based on multiple virtual model elements and visible virtual model elements.

[0108] In one example embodiment of this disclosure, after obtaining virtual model facets corresponding to multiple pixels through the above steps, the virtual model facets corresponding to the multiple pixels can be determined as visible virtual model facets of the virtual model, and invisible virtual model facets of the virtual model can be determined based on the multiple virtual model facets and the visible virtual model facets. Specifically, the visible virtual model facets of the virtual model refer to those visible virtual model facets in the virtual model that will be captured by the virtual camera in the virtual scene when the virtual model is within a certain viewpoint of the viewing angle. The virtual model facets corresponding to these pixels can be determined as visible virtual model facets of the virtual model, and multiple virtual model facets corresponding to the virtual model can be obtained. Invisible virtual model facets of the virtual model can be determined based on the multiple virtual model facets and the visible virtual model facets.

[0109] It should be noted that this disclosure does not impose any special limitations on the specific method of determining the invisible virtual model elements of a virtual model based on multiple virtual model elements and visible virtual model elements.

[0110] In one example embodiment of this disclosure, multiple target virtual model elements other than visible virtual model elements can be obtained from a plurality of virtual model elements, and the plurality of target virtual model elements can be determined as invisible virtual model elements of the virtual model.

[0111] Through the above steps S710 to S720, the virtual model elements corresponding to multiple pixels can be determined as the visible virtual model elements of the virtual model, and the invisible virtual model elements of the virtual model can be determined based on the multiple virtual model elements and the visible virtual model elements.

[0112] Step S260: Delete the invisible virtual model elements in the virtual model.

[0113] In one example embodiment of this disclosure, after determining the invisible virtual model elements in the virtual model through the above steps, these invisible virtual model elements can be deleted. Specifically, invisible virtual model elements refer to those that will not be captured by the virtual camera in the virtual scene when the virtual model is at any viewpoint within the viewing range. Therefore, these invisible virtual model elements can be deleted from the virtual model, thereby reducing the number of rendered elements, increasing rendering speed, and removing limitations on the size and accuracy of the virtual model.

[0114] In one example embodiment of this disclosure, a virtual model element set (visible virtual model element set) can be created. In this virtual model element set (which can be implemented in the form of a hash table, binary tree, etc.), the IDs of the virtual model elements are stored. The IDs of the virtual model elements can be used to uniquely identify the virtual model elements. Figure 8 This is a flowchart illustrating another virtual model processing method according to an exemplary embodiment, such as... Figure 8 As shown, the virtual model processing method may include the following steps:

[0115] S810, Obtain the constructed virtual model and the corresponding view range of the virtual model; S820, Sample the view range (random sampling or regular sampling) within the view range corresponding to the virtual model; S830, When the virtual model is in the view range, render the virtual model to obtain multiple virtual model images, traverse multiple pixels in the multiple virtual model images, and determine the virtual model facets corresponding to the multiple pixels based on the identification information in the multiple pixels; S840, Determine the virtual model facets corresponding to the multiple pixels as the visible virtual model facets of the virtual model, and add the visible virtual model facets of the virtual model to the virtual model facet set; S850, Determine whether the sampling is complete; If not, return to continue sampling; If complete, S860, Delete the virtual model facets that are not in the virtual model facet set (the invisible virtual model facets in the virtual model).

[0116] In one embodiment of this disclosure, a virtual model processing method is provided. A virtual model can be constructed in a virtual scene, and the viewpoint range corresponding to the virtual model can be obtained. When the virtual model is in multiple viewpoints, multiple virtual model images are rendered. The identification information corresponding to the virtual model facets is input into the pixels of the virtual model images. Multiple pixels in the multiple virtual model images are traversed, and the virtual model facets corresponding to the multiple pixels are determined based on the identification information. Invisible virtual model facets in the virtual model are determined based on the virtual model facets corresponding to the multiple pixels, and then deleted. This solution reduces the number of virtual model facets drawn without affecting the display of the virtual model, thereby improving the rendering speed and efficiency of the virtual model. Furthermore, reducing the number of virtual model facets avoids limitations on the size and accuracy of the virtual model.

[0117] Figure 9 This is a block diagram illustrating a virtual model processing apparatus according to an exemplary embodiment. (Refer to...) Figure 9 The virtual model processing device 900 includes a virtual model construction unit 910, a view range acquisition unit 920, an identification information input unit 930, a pixel traversal unit 940, an invisible element determination unit 950, and an invisible element deletion unit 960.

[0118] The system includes the following components: a virtual model construction unit, configured to construct a virtual model in a virtual scene, wherein the virtual model has multiple virtual model faces; a viewpoint range acquisition unit, configured to acquire the viewpoint range corresponding to the virtual model, wherein the viewpoint range corresponding to the virtual model includes multiple viewpoints, and the position of the virtual model relative to the virtual camera is different when the virtual model is in different viewpoints; an identification information input unit, configured to render the virtual model to obtain multiple virtual model images when the virtual model is in multiple viewpoints, and input the identification information corresponding to the virtual model faces into the pixels of the virtual model images, wherein the virtual model images include multiple pixels; a pixel traversal unit, configured to traverse multiple pixels in multiple virtual model images, and determine the virtual model faces corresponding to the multiple pixels based on the identification information in the multiple pixels; an invisible face determination unit, configured to determine the invisible virtual model faces in the virtual model based on the virtual model faces corresponding to the multiple pixels; and an invisible face deletion unit, configured to delete the invisible virtual model faces in the virtual model.

[0119] Optionally, to obtain the viewing angle range corresponding to the virtual model, the device further includes: a rotation range acquisition unit, configured to acquire the horizontal rotation range of the virtual model and the vertical rotation range of the virtual model; and a viewing angle range determination unit, configured to determine the viewing angle range corresponding to the virtual model based on the horizontal rotation range and the vertical rotation range of the virtual model.

[0120] Optionally, when the virtual model is in multiple viewpoints, the virtual model is rendered to obtain multiple virtual model images. The device further includes: a first target viewpoint determination unit, configured to randomly determine a first target viewpoint among the multiple viewpoints; wherein the multiple viewpoints include the first target viewpoint; a first target viewpoint rendering unit, configured to render the virtual model to obtain multiple virtual model images when the virtual model is in multiple first target viewpoints; and a stop rendering unit, used to stop rendering the virtual model when a random termination condition is met.

[0121] Optionally, when the virtual model is in multiple viewpoints, the virtual model is rendered to obtain multiple virtual model images. The device further includes: a second target viewpoint determination unit, configured to determine the second target viewpoint sequentially at a preset interval among the multiple viewpoints; wherein the multiple viewpoints include the second target viewpoint; and a first target viewpoint rendering unit, configured to render the virtual model to obtain multiple virtual model images when the virtual model is in multiple second target viewpoints.

[0122] Optionally, the device further includes a color information input unit configured to input color information corresponding to virtual model facets into pixels in a virtual model image; and a color information determination unit configured to traverse multiple pixels in multiple virtual model images and determine virtual model facets corresponding to multiple pixels based on the identification information in the multiple pixels.

[0123] Optionally, the apparatus further includes: a visible virtual model surface determining unit configured to determine the virtual model surface corresponding to the multiple pixels as visible virtual model surface of the virtual model; and a first invisible virtual model surface determining unit configured to determine the invisible virtual model surface of the virtual model based on the multiple virtual model surface and the visible virtual model surface.

[0124] Optionally, the device further includes a second invisible virtual model surface determination unit, configured to perform the following: obtaining multiple target virtual model surfaces excluding the visible virtual model surfaces from the multiple virtual model surfaces, and determining the multiple target virtual model surfaces as invisible virtual model surfaces of the virtual model.

[0125] One embodiment of this disclosure provides a virtual model processing apparatus that can construct a virtual model in a virtual scene, obtain the viewpoint range corresponding to the virtual model, render the virtual model to obtain multiple virtual model images when the virtual model is in multiple viewpoints, input the identification information corresponding to the virtual model facets into the pixels of the virtual model images, traverse the multiple pixels in the multiple virtual model images, determine the virtual model facets corresponding to the multiple pixels based on the identification information in the multiple pixels, determine the invisible virtual model facets in the virtual model based on the virtual model facets corresponding to the multiple pixels, and delete the invisible virtual model facets in the virtual model. This disclosed solution can reduce the number of virtual model facets drawn without affecting the display of the virtual model, thereby improving the rendering speed of the virtual model and thus improving the rendering efficiency of the virtual model. Furthermore, reducing the number of virtual model facets can avoid limitations on the size and accuracy of the virtual model.

[0126] Regarding the virtual model processing device in the above embodiments, the specific manner in which each module performs its operations has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0127] The following reference Figure 10 To describe an electronic device 10000 according to such an embodiment of the present disclosure. Figure 10 The electronic device 10000 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments disclosed herein.

[0128] like Figure 10 As shown, the electronic device 10000 is manifested in the form of a general-purpose computing device. The components of the electronic device 10000 may include, but are not limited to: at least one processing unit 1010, at least one storage unit 1020, a bus 1030 connecting different system components (including storage unit 1020 and processing unit 1010), and a display unit 1040.

[0129] The storage unit stores program code, which can be executed by the processing unit 1010 to perform the steps described in the "Exemplary Methods" section of this specification according to various exemplary embodiments of this disclosure. For example, the processing unit 1010 can perform actions such as... Figure 2 Step S210, as shown, involves constructing a virtual model in a virtual scene; wherein the virtual model has multiple virtual model facets; Step S220, obtaining the view range corresponding to the virtual model; wherein the view range corresponding to the virtual model includes multiple viewpoints, and the position of the virtual model relative to the virtual camera is different when the virtual model is in different viewpoints; Step S230, rendering the virtual model to obtain multiple virtual model images when the virtual model is in multiple viewpoints respectively, and inputting the identification information corresponding to the virtual model facets into the pixels of the virtual model images; wherein the virtual model images include multiple pixels; Step S240, traversing the multiple pixels in the multiple virtual model images, and determining the virtual model facets corresponding to the multiple pixels according to the identification information in the multiple pixels; Step S250, determining the invisible virtual model facets in the virtual model according to the virtual model facets corresponding to the multiple pixels; Step S260, deleting the invisible virtual model facets in the virtual model.

[0130] Storage unit 1020 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 1021 and / or a cache memory unit 1022, and may further include a read-only memory unit (ROM) 1023.

[0131] Storage unit 1020 may also include a program / utility 1024 having a set (at least one) program module 1025, such program module 1025 including but not limited to: operating system, one or more application programs, other program modules and program data, each or some combination of these examples may include an implementation of a network environment.

[0132] Bus 1030 can represent one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of the multiple bus structures.

[0133] Electronic device 10000 can also communicate with one or more external devices 1070 (e.g., keyboard, pointing device, Bluetooth device, etc.), one or more devices that enable a user to interact with electronic device 10000, and / or any device that enables electronic device 10000 to communicate with one or more other computing devices (e.g., router, modem, etc.). This communication can be performed via input / output (I / O) interface 1050. Furthermore, electronic device 10000 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 1060. As shown, network adapter 1060 communicates with other modules of electronic device 10000 via bus 1030. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with electronic device 10000, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0134] From the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, terminal device, or network device, etc.) to execute the methods according to the embodiments of this disclosure.

[0135] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory including instructions that can be executed by a processor of the device to perform the described method. Optionally, the computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0136] In an exemplary embodiment, a computer program product is also provided, including a computer program / instructions, which, when executed by a processor, implement the virtual model processing method in the above embodiments.

[0137] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0138] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A virtual model processing method, characterized in that, include: A virtual model is constructed in a virtual scene; wherein the virtual model has multiple virtual model elements; Obtain the field of view range corresponding to the virtual model; wherein, the field of view range corresponding to the virtual model includes multiple viewpoints, and the position of the virtual model relative to the virtual camera is different when the virtual model is in different viewpoints; When the virtual model is in multiple viewpoints, the virtual model is rendered to obtain multiple virtual model images, and the identification information corresponding to the virtual model facets is input into the pixels of the virtual model images; wherein, the virtual model images include multiple pixels; Traverse multiple pixels in multiple virtual model images, and determine the virtual model elements corresponding to the multiple pixels based on the identification information in the multiple pixels; Determining invisible virtual model elements in the virtual model based on the virtual model elements corresponding to the plurality of pixels; the step of determining invisible virtual model elements in the virtual model based on the virtual model elements corresponding to the plurality of pixels includes: determining the virtual model elements corresponding to the plurality of pixels as visible virtual model elements of the virtual model; obtaining a plurality of target virtual model elements excluding the visible virtual model elements from the plurality of virtual model elements, and determining the plurality of target virtual model elements as invisible virtual model elements of the virtual model; Delete the invisible virtual model elements in the virtual model.

2. The virtual model processing method according to claim 1, characterized in that, The step of obtaining the viewpoint range corresponding to the virtual model includes: Obtain the horizontal rotation range of the virtual model, and obtain the vertical rotation range of the virtual model; The viewing angle range corresponding to the virtual model is determined based on the horizontal rotation range and the vertical rotation range of the virtual model.

3. The virtual model processing method according to claim 1, characterized in that, The step of rendering the virtual model to obtain multiple virtual model images when the virtual model is in multiple viewpoints includes: A first target viewpoint is randomly determined from among the plurality of viewpoints; wherein the plurality of viewpoints includes the first target viewpoint; When the virtual model is in multiple first target viewpoints, the virtual model is rendered to obtain multiple virtual model images; When the random termination condition is met, the rendering of the virtual model is stopped.

4. The virtual model processing method according to claim 1, characterized in that, The step of rendering the virtual model to obtain multiple virtual model images when the virtual model is in multiple viewpoints includes: A second target viewpoint is determined sequentially from among the multiple viewpoints according to a preset interval; wherein, the multiple viewpoints include the second target viewpoint; When the virtual model is in multiple second target viewpoints, the virtual model is rendered to obtain multiple virtual model images.

5. The virtual model processing method according to claim 1, characterized in that, The step of inputting the identification information corresponding to the virtual model surface element into the pixels of the virtual model image includes: Input the color information corresponding to the virtual model facet into the pixels of the virtual model image; The step of traversing multiple pixels in multiple virtual model images and determining the virtual model elements corresponding to the multiple pixels based on the identification information in the multiple pixels includes: Traverse multiple pixels in multiple virtual model images, and determine the virtual model facets corresponding to the multiple pixels based on the color information in the multiple pixels.

6. A virtual model processing device, characterized in that, include: A virtual model construction unit is configured to construct a virtual model in a virtual scene; wherein the virtual model has multiple virtual model elements; The viewpoint range acquisition unit is configured to acquire the viewpoint range corresponding to the virtual model; wherein, the viewpoint range corresponding to the virtual model includes multiple viewpoints, and the position of the virtual model relative to the virtual camera is different when the virtual model is in different viewpoints; The identification information input unit is configured to render the virtual model to obtain multiple virtual model images when the virtual model is in multiple viewpoints, and input the identification information corresponding to the virtual model facets into the pixels of the virtual model images; wherein, the virtual model images include multiple pixels; The pixel traversal unit is configured to traverse multiple pixels in multiple virtual model images and determine the virtual model elements corresponding to the multiple pixels based on the identification information in the multiple pixels. An invisible virtual model surface determination unit is configured to determine invisible virtual model surfaces in the virtual model based on the virtual model surfaces corresponding to the plurality of pixels; the step of determining invisible virtual model surfaces in the virtual model based on the virtual model surfaces corresponding to the plurality of pixels includes: determining the virtual model surfaces corresponding to the plurality of pixels as visible virtual model surfaces of the virtual model; obtaining a plurality of target virtual model surfaces excluding the visible virtual model surfaces from the plurality of virtual model surfaces, and determining the plurality of target virtual model surfaces as invisible virtual model surfaces of the virtual model; The invisible virtual model cell deletion unit is configured to delete invisible virtual model cells in the virtual model.

7. An electronic device, characterized in that, include: processor; Memory used to store the processor's executable instructions; The processor is configured to execute the executable instructions to implement the virtual model processing method as described in any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that, When the instructions in the computer-readable storage medium are executed by the processor of the electronic device, the electronic device is able to perform the virtual model processing method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Visibility data processing method of virtual scene and rendering method of virtual scene

    CN111080798A

  • Picture display method and device, information generation method and device, equipment and storage medium

    CN113457161A