CN114863004A - Three-dimensional model shoe and clothes cloud ray tracing rendering system and method - Google Patents
Three-dimensional model shoe and clothes cloud ray tracing rendering system and method Download PDFInfo
- Publication number
- CN114863004A CN114863004A CN202210528462.5A CN202210528462A CN114863004A CN 114863004 A CN114863004 A CN 114863004A CN 202210528462 A CN202210528462 A CN 202210528462A CN 114863004 A CN114863004 A CN 114863004A
- Authority
- CN
- China
- Prior art keywords
- ray
- light
- shoe
- model
- intersection
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T15/00—3D [Three Dimensional] image rendering
- G06T15/06—Ray-tracing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T15/00—3D [Three Dimensional] image rendering
- G06T15/50—Lighting effects
- G06T15/506—Illumination models
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T15/00—3D [Three Dimensional] image rendering
- G06T15/50—Lighting effects
- G06T15/60—Shadow generation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2210/00—Indexing scheme for image generation or computer graphics
- G06T2210/62—Semi-transparency
Landscapes
- Engineering & Computer Science (AREA)
- Computer Graphics (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Image Generation (AREA)
Abstract
The invention discloses a three-dimensional model shoe and clothes cloud ray tracing rendering system and method, which comprises the following steps: the system comprises a WEB terminal, a 3D shoe and clothes fabric input and effect generation module, a shoe and clothes 3D style model making module and a cloud three-dimensional light sensation effect generation server; the WEB end is used for uploading the shoe and clothes three-dimensional model to the cloud server; the 3D shoe and garment fabric input and effect generation module comprises: scanning and inputting the fabric through 3D fabric scanning and inputting equipment, and performing light sensation effect generation processing on the fabric by using software; the shoe and clothes 3D style model making module comprises: 3D modeling generation is carried out on the styles, and the styles are subjected to layering processing; the cloud three-dimensional light sensation effect generation server is used for: ray generation, scene traversal, model intersection, illumination calculation and ray derivation. The invention has the advantages that: the rendering effect of combining the fabric light sensation effect and the environment light is clear in details, higher in fidelity, outstanding in model light sensation effect, and wider in application, and the remote collaborative rendering internet form is realized.
Description
Technical Field
The invention relates to the technical field of three-dimensional model cloud rendering, in particular to a three-dimensional model shoe and clothes cloud ray tracing rendering system and method.
Background
In the computer field, ray tracing is widely used in computer games and animation, television and movie production.
Rendering is to select one or more visual angles, to calculate a data model describing a three-dimensional scene, to give effects such as material and light and shadow, and then to output a three-dimensional effect giving texture. Rendering is an important step in "visualization" in computer graphics. Rendering is a process of obtaining a pixel array by calculating input three-dimensional model data.
At present, the three-dimensional model shoes and clothes have the defects of unclear details and unobtrusive model light sensation effect in the display process. A typical rendering model is direct lighting, using rasterization rendering, often requires additional lighting to be added to the scene to achieve the desired shading effect, since the light does not actively rasterize the bounce light source of the objects in the shader (light bounces in the real world). Thus, the light sensation of the object is not really reflected, and the effect is not distorted.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides a three-dimensional model shoe and clothes cloud ray tracing and rendering system and a method.
In order to realize the purpose, the technical scheme adopted by the invention is as follows:
a three-dimensional model shoes clothes high in clouds ray tracing rendering system includes: the system comprises a WEB terminal, a 3D shoe and clothes fabric input and effect generation module, a shoe and clothes 3D style model making module and a cloud three-dimensional light sensation effect generation server;
the WEB end is used for uploading the shoe and clothes three-dimensional model to the cloud server and displaying the rendering effect;
the 3D shoe and garment fabric input and effect generation module comprises: scanning and recording the fabric through 3D fabric scanning and recording equipment, and performing diffuse reflection, concave-convex effect, roughness and transparent effect generation processing on the fabric by using software to endow the fabric with a light sensation effect characteristic label;
the shoe and clothes 3D style model making module comprises: 3D modeling generation is carried out on the styles, and the styles are subjected to layering processing;
cloud three-dimensional light sensation effect generation server includes: the system comprises a ray generation module, a scene traversal module, a model intersection module, an illumination calculation module and a ray derivation module;
the light ray generation module: for generating the starting point and direction of the initial ray.
A scene traversal module: the method is used for searching model surface primitives which possibly need light intersection in a space subdivision structure of the whole scene by utilizing light information, and organizing the scene by using a binary tree-like structure.
A model intersection module: for the detection and intersection calculation of the intersection points.
The illumination calculation module: illumination calculations are performed using the illumination model and the obtained values are accumulated in the frame buffer related pixels.
The light ray derivation module: if the rays have intersection, the intersection information is used for generating corresponding reflection or refraction rays. Shadow test rays are also generated, if necessary.
The cloud three-dimensional light sensation effect generation server is used for storing a rendering program with the functional modules, and the rendering program can be executed by one or more processors so as to realize a three-dimensional model shoe garment cloud light tracking rendering method.
The processor is used for executing a rendering program stored in the cloud server so as to realize a three-dimensional model shoe-uniform cloud ray tracing rendering method.
The invention also discloses a three-dimensional model shoe and clothes cloud ray tracing and rendering method, which comprises the following steps:
s1: a WEB side prepares a shoe and clothes three-dimensional model to a cloud server;
s2, the 3D shoe and garment fabric input and effect generation module scans and inputs the fabric through the 3D fabric input equipment, and application software generates and processes diffuse reflection, concave-convex effect, roughness and transparent effect of light sensation effect to the fabric, so as to endow a characteristic label of light sensation effect;
s3: and 3D style model generation: generating a 3D style model through modeling software, wherein the format comprises the following steps: OBJ, FBX, etc.;
s4: and the cloud three-dimensional light sensation effect generation server performs light ray generation, scene traversal, model intersection, illumination calculation and light ray derivation on the three-dimensional model.
S5: and after traversing and intersection are carried out for multiple times, obtaining a corresponding three-dimensional array, combining the three-dimensional array again, generating a new model and presenting the new model at a web end.
S6, effect generation: ray tracing rendering generation.
Furthermore, in the light derivation technology, two sets of reflected and refracted light are obtained, which is a multi-path calculation process for an object, and the object control is required for switching among multiple paths. The object computes these rays simultaneously, i.e., as rays are generated and ray-derived, the generated rays are pushed onto the stack.
Furthermore, the scene traversal and model intersection take the space of the scene as the center, a BSP-like algorithm is constructed, and a mode of parallel stacking of a group of rays is adopted.
Further, there are two different states of rendering and completing for the ray that has been computed. Four states are marked on the ray: traversing, intersecting, rendering and completing. The switching of the light among the four states is controlled by a finite automaton, and the switching conditions are as follows:
traverse- > finish: the ray has no next leaf node to traverse, and there is no intersection at the current leaf node.
Traverse- > traverse: there are no surface primitives in the current leaf node traversed by the ray.
Traverse- > intersection: there are surface primitives in the current leaf node traversed by the ray.
Cross- > cross: the ray does not intersect the current surface primitive, but there are non-intersecting surface primitives in the current leaf node.
Intersection- > traverse: the ray does not intersect the current surface primitive and there are no non-intersecting surface primitives in the current leaf node.
Intersection- > rendering: the ray intersects the current surface primitive. The tasks for each state are as follows:
traversing: and the system is responsible for searching the next leaf node to be traversed by utilizing the information of the ray.
Intersection is carried out: and the responsible ray and the current surface element are subjected to intersection calculation.
Rendering: is responsible for calculating the light illumination contribution of the current light.
Compared with the prior art, the invention has the advantages that: the rendering effect of combining the fabric light sensation effect and the environment light is achieved, the details are clear, the fidelity is higher, and the model light sensation effect is prominent. And an internet form of remote collaborative rendering is realized. The application is wider.
Drawings
FIG. 1 is a flowchart of a three-dimensional model footwear cloud ray tracing rendering method according to an embodiment of the present invention;
FIG. 2 is a diagram of an effect of a rendered three-dimensional model according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail below with reference to the accompanying drawings by way of examples.
A three-dimensional model shoe and clothes cloud ray tracing rendering system comprises a WEB end, a cloud server and a processor;
and the WEB end is used for uploading the shoe and clothes three-dimensional model to the cloud server.
The 3D shoe and garment fabric input and effect generation module comprises: scanning and inputting the fabric through 3D fabric input equipment, and performing diffuse reflection, concave-convex effect, roughness and transparent effect generation processing on the fabric by using software to endow a label with light sensation effect characteristic;
and 3D style model generation: generating style model formats of OBJ, FBX and the like through modeling software;
the cloud server includes: ray generation module, scene traversal module, model intersection module, illumination calculation module and ray derivation module
The light ray generation module: for generating the starting point and direction of the initial ray.
A scene traversal module: the method is used for searching model surface elements which possibly need to be subjected to ray intersection in a space subdivision structure of the whole scene by utilizing the information of the rays. The present invention uses a binary tree-like structure to organize the scenes.
A model intersection module: for the detection and intersection calculation of the intersection points.
The illumination calculation module: illumination calculations are performed using the illumination model and the obtained values are accumulated in the frame buffer related pixels.
The light ray derivation module: if the rays have intersection, the intersection information is used for generating corresponding reflection or refraction rays. Shadow test rays are also generated, if necessary.
The cloud server is used for storing a rendering program with the functional modules, and the rendering program can be executed by one or more processors to realize a three-dimensional model shoe-clothes cloud ray tracing rendering method.
The processor is used for executing a rendering program stored in the cloud server so as to realize a three-dimensional model shoe-uniform cloud ray tracing rendering method.
As shown in fig. 1, a three-dimensional model shoe-wear cloud ray tracing rendering method includes the following steps:
s1: a WEB side prepares a shoe and clothes three-dimensional model to a cloud server;
s2, a 3D shoe and garment fabric input and effect generation module: scanning and inputting the fabric through 3D fabric input equipment, and performing diffuse reflection, concave-convex effect, roughness and transparent effect generation processing on the fabric by using software to endow a label with light sensation effect characteristic;
and S3, generating a 3D style model: generating style model formats of OBJ, FBX and the like through modeling software;
s4: and the cloud three-dimensional light sensation effect generation server performs light ray generation, scene traversal, model intersection, illumination calculation and light ray derivation on the three-dimensional model.
S5: and after traversing and intersection are carried out for multiple times, obtaining a corresponding three-dimensional array, combining the three-dimensional array again, generating a new model and presenting the new model at a web end.
S6, effect generation: ray tracing rendering generation.
When the light derivation is carried out on the three-dimensional model by the light derivation technology, two groups of reflected and refracted light rays are obtained, the process is a multi-path calculation process of an object, and the object is required to be controlled when the paths are switched. The object computes these rays simultaneously, i.e., as rays are generated and ray-derived, the generated rays are pushed onto the stack.
On the other hand, traversing and intersecting the ray become a challenge in algorithm implementation due to the limitation of access to the memory space. To do this, a suitable traversal acceleration structure must be designed to organize the geometric primitive data in the scene. In the classical acceleration structure, there are two main organization modes. One centered on the geometric primitives of the scene and one centered on the space of the scene. The latter is used here to build a BSP-like algorithm and to improve efficiency, a set of rays are pushed in parallel.
To speed up the process of ray intersection with the scene, a spatial subdivision structure is applied here. The process of ray-scene intersection can be broken down into two major steps: and traversing and intersecting.
Having computed the completed ray, there are two different states of rendering and completing. The invention marks four states on the light: traversing, intersecting, rendering and completing. The ray is either in the traversal state or in the completion state at the start. The switching of the light between the four states is controlled by a finite automaton.
The respective conditions for switching are as follows:
traverse- > finish: the ray has no next leaf node to traverse, and there is no intersection at the current leaf node.
Traverse- > traverse: there are no surface primitives in the current leaf node traversed by the ray.
Ergodic- > intersection: there are surface primitives in the current leaf node traversed by the ray.
Cross- > cross: the ray does not intersect the current surface primitive, but there are non-intersecting surface primitives in the current leaf node.
Intersection- > traverse: the ray does not intersect the current surface primitive and there are no non-intersecting surface primitives in the current leaf node.
Intersection- > rendering: the ray intersects the current surface primitive. The tasks for each state are as follows:
traversing: and the system is responsible for searching the next leaf node to be traversed by utilizing the information of the ray.
Intersection: and the light ray is responsible for performing intersection calculation with the current surface element.
Rendering: is responsible for calculating the light illumination contribution of the current light.
Rendering and completing tasks are relatively simple, and problems and solutions in traversal and intersection are analyzed in a centralized manner.
As shown in FIG. 2, it can be seen that the 3D model rendered by the method is clear in details, higher in fidelity and prominent in model light sensation effect.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of clearly illustrating the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, a software module executed by a processor, or a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The examples described herein are intended to aid the reader in understanding the practice of the invention and it is to be understood that the scope of the invention is not limited to such specific statements and examples. Those skilled in the art can make various other specific changes and combinations based on the teachings of the present invention without departing from the spirit of the invention, and these changes and combinations are within the scope of the invention.
Claims (5)
1. The utility model provides a three-dimensional model shoes clothes high in clouds ray tracing rendering system which characterized in that includes: the system comprises a WEB terminal, a 3D shoe and clothes fabric input and effect generation module, a shoe and clothes 3D style model making module and a cloud three-dimensional light sensation effect generation server;
the WEB end is used for uploading the shoe and clothes three-dimensional model to the cloud server and displaying the rendering effect;
the 3D shoe and garment fabric input and effect generation module comprises: scanning and recording the fabric through 3D fabric scanning and recording equipment, and performing diffuse reflection, concave-convex effect, roughness and transparent effect generation processing on the fabric by using software to endow the fabric with a light sensation effect characteristic label;
the shoe and clothes 3D style model making module comprises: 3D modeling generation is carried out on the styles, and the styles are subjected to layering processing;
cloud three-dimensional light sensation effect generation server includes: the system comprises a ray generation module, a scene traversal module, a model intersection module, an illumination calculation module and a ray derivation module;
the light ray generation module: a starting point and a direction for generating an initial ray;
a scene traversal module: the method comprises the steps of searching model surface elements which possibly need light intersection in a space subdivision structure of an overall scene by utilizing light information, and organizing the scene by using a class binary tree structure;
a model intersection module: detecting and calculating intersection points;
the illumination calculation module: performing illumination calculation by using the illumination model, and accumulating the obtained value into the frame buffer related pixel;
the light ray derivation module: if the light rays have intersection, generating corresponding reflection or refraction light rays by using intersection point information; shadow test rays are also generated when necessary;
the cloud three-dimensional light sensation effect generation server is used for storing a rendering program with the functional modules, and the rendering program can be executed by one or more processors so as to realize a three-dimensional model shoe garment cloud light ray tracing rendering method;
the processor is used for executing a rendering program stored in the cloud server so as to realize a three-dimensional model shoe-uniform cloud ray tracing rendering method.
2. A three-dimensional model shoe and clothes cloud ray tracing rendering method is characterized by comprising the following steps: the method is realized on the basis of the system of claim 1, and comprises the following steps:
s1: a WEB side prepares a shoe and clothes three-dimensional model to a cloud server;
s2, the 3D shoe garment fabric input and effect generation module scans and inputs the fabric through 3D fabric input equipment, and application software generates diffuse reflection, concave-convex effect, roughness and transparent effect of light sensation effect to the fabric, so as to endow a characteristic label of light sensation effect;
s3: and 3D style model generation: generating a 3D style model through modeling software, wherein the format comprises the following steps: OBJ, FBX, etc.;
s4: the cloud three-dimensional light sensation effect generation server performs light ray generation, scene traversal, model intersection, illumination calculation and light ray derivation on the three-dimensional model;
s5: after traversing and intersection are carried out for multiple times, a corresponding three-dimensional array is obtained, the three-dimensional array is combined again, and a new model is generated and presented at a web end;
s6, effect generation: ray tracing rendering generation.
3. The cloud ray tracing rendering method for the three-dimensional model shoe and clothes as claimed in claim 2, wherein: when the light ray derivation technology is carried out, two groups of reflected and refracted light rays can be obtained, the process is a multi-path calculation process of an object, and the object is required to be controlled when the paths are switched; the object computes these rays simultaneously, i.e., as rays are generated and ray-derived, the generated rays are pushed onto the stack.
4. The cloud ray tracing rendering method for the three-dimensional model shoe and clothes as claimed in claim 2, wherein: the scene traversal and model intersection take the space of the scene as the center, a BSP-like algorithm is constructed, and a mode of parallel stacking of a group of rays is adopted.
5. The cloud ray tracing rendering method for the three-dimensional model shoe and clothes as claimed in claim 2, wherein: if the calculated light is finished, two different states of rendering and finishing exist; four states are marked on the ray: traversing, intersecting, rendering and completing; the switching of the light among the four states is controlled by a finite automaton, and the switching conditions are as follows:
traverse- > finish: the ray does not need to traverse the next leaf node, and the current leaf node also does not have an intersection point;
traverse- > traverse: surface primitives do not exist in the current leaf node traversed by the ray;
traverse- > intersection: surface elements exist in the current leaf nodes traversed by the ray;
cross- > cross: the light ray does not intersect with the current surface element, but the current leaf node has an intersection-free surface element;
intersection- > traverse: the light rays do not intersect with the current surface primitive, and no un-intersected surface primitive exists in the current leaf node;
intersection- > rendering: the light ray intersects with the current surface element; the tasks for each state are as follows:
traversing: the system is responsible for searching the next leaf node to be traversed by utilizing the information of the ray;
intersection: the light ray and the current surface element are in charge of intersection calculation;
rendering: is responsible for calculating the light illumination contribution of the current light.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210528462.5A CN114863004A (en) | 2022-05-16 | 2022-05-16 | Three-dimensional model shoe and clothes cloud ray tracing rendering system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210528462.5A CN114863004A (en) | 2022-05-16 | 2022-05-16 | Three-dimensional model shoe and clothes cloud ray tracing rendering system and method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114863004A true CN114863004A (en) | 2022-08-05 |
Family
ID=82638263
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210528462.5A Pending CN114863004A (en) | 2022-05-16 | 2022-05-16 | Three-dimensional model shoe and clothes cloud ray tracing rendering system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114863004A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150091894A1 (en) * | 2013-10-02 | 2015-04-02 | Samsung Electronics Co., Ltd. | Method and apparatus for tracing ray using result of previous rendering |
CN109118567A (en) * | 2018-08-16 | 2019-01-01 | 郑州云海信息技术有限公司 | A kind of ray trace method, system, equipment and computer readable storage medium |
CN112116693A (en) * | 2020-08-20 | 2020-12-22 | 中山大学 | Biomolecule visualization ray tracing rendering method based on CPU |
-
2022
- 2022-05-16 CN CN202210528462.5A patent/CN114863004A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150091894A1 (en) * | 2013-10-02 | 2015-04-02 | Samsung Electronics Co., Ltd. | Method and apparatus for tracing ray using result of previous rendering |
CN109118567A (en) * | 2018-08-16 | 2019-01-01 | 郑州云海信息技术有限公司 | A kind of ray trace method, system, equipment and computer readable storage medium |
CN112116693A (en) * | 2020-08-20 | 2020-12-22 | 中山大学 | Biomolecule visualization ray tracing rendering method based on CPU |
Non-Patent Citations (2)
Title |
---|
叶纪委: "适于移动端的三维鞋款选配展示App开发与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》, vol. 2018, no. 1, pages 3 * |
王碧薇: "基于GPU的光线跟踪算法的分析", 《科技资讯》, no. 23, pages 1 - 2 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7940265B2 (en) | Multiple spacial indexes for dynamic scene management in graphics rendering | |
US11804002B2 (en) | Techniques for traversing data employed in ray tracing | |
CN112755535B (en) | Illumination rendering method and device, storage medium and computer equipment | |
Ernst et al. | Early split clipping for bounding volume hierarchies | |
US20100289799A1 (en) | Method, system, and computer program product for efficient ray tracing of micropolygon geometry | |
KR102604737B1 (en) | METHOD AND APPARATUS for generating acceleration structure | |
KR102242566B1 (en) | Apparatus and method for processing ray tracing | |
CN111127615A (en) | Data scheduling method and device of three-dimensional model and electronic equipment | |
CN113658316B (en) | Rendering method and device of three-dimensional model, storage medium and computer equipment | |
CN112734892A (en) | Real-time global illumination rendering method for virtual cable tunnel scene model | |
CN113034657B (en) | Rendering method, device and equipment for illumination information in game scene | |
KR102193683B1 (en) | Apparatus and method for traversing acceleration structure in a ray tracing system | |
CN114863004A (en) | Three-dimensional model shoe and clothes cloud ray tracing rendering system and method | |
Tatzgern et al. | Stochastic substitute trees for real-time global illumination | |
Mateo et al. | Hierarchical, Dense and Dynamic 3D Reconstruction Based on VDB Data Structure for Robotic Manipulation Tasks | |
CN112002019B (en) | Method for simulating character shadow based on MR mixed reality | |
Kunert et al. | Efficient point cloud rasterization for real time volumetric integration in mixed reality applications | |
KR20130002780A (en) | Ray tracing core and ray tracing method | |
WILLCOCKS | Sparse volumetric deformation | |
CN110738719A (en) | Web3D model rendering method based on visual range hierarchical optimization | |
CN109934900A (en) | Real-time global illumination solution based on VR hardware structure | |
Ahmed et al. | Cone Based Tree to Improve Ray Tracing | |
CN107346527B (en) | Hierarchical bounding box construction method based on dynamic task scheduling | |
CN111243077B (en) | Real transition shadow realization method based on space pre-exploration | |
CN117058301B (en) | Knitted fabric real-time rendering method based on delayed coloring |
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 |