WO2023005757A1 - 一种透明多面体的渲染方法及装置 - Google Patents
一种透明多面体的渲染方法及装置 Download PDFInfo
- Publication number
- WO2023005757A1 WO2023005757A1 PCT/CN2022/106692 CN2022106692W WO2023005757A1 WO 2023005757 A1 WO2023005757 A1 WO 2023005757A1 CN 2022106692 W CN2022106692 W CN 2022106692W WO 2023005757 A1 WO2023005757 A1 WO 2023005757A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- transparent polyhedron
- color
- transparent
- polyhedron
- reflected light
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T15/00—Three-dimensional [3D] image rendering
- G06T15/10—Geometric effects
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T15/00—Three-dimensional [3D] image rendering
- G06T15/04—Texture mapping
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T15/00—Three-dimensional [3D] image rendering
- G06T15/50—Lighting effects
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T15/00—Three-dimensional [3D] image rendering
- G06T15/50—Lighting effects
- G06T15/506—Illumination models
Definitions
- the invention relates to the technical field of image rendering, in particular to a rendering method and device for a transparent polyhedron.
- Augmented reality (Augmented Reality, AR) technology is a technology used to integrate virtual information and the real world.
- the embodiment of the present invention provides a transparent polyhedron rendering method and device, and the technical solution provided by the embodiment of the present invention is as follows:
- embodiments of the present invention provide a rendering method for a transparent polyhedron, including:
- the background image is image acquisition of a real scene
- the image of the background image is opposite to the back side of the transparent polyhedron
- the transparent polyhedron is rendered according to the rendering color of each position of the transparent polyhedron.
- the acquisition of the reflected light color at each position on the back of the transparent polyhedron includes:
- the outer product of the first color component and the second color component at each position on the back of the transparent polyhedron is acquired as the reflected light color at each position on the back of the transparent polyhedron.
- the color of the transparent polyhedron is obtained according to the color of reflected light at each position on the back of the transparent polyhedron and the color of refracted light at each position on the back of the transparent polyhedron.
- the color of each position on the back including:
- the acquiring the color of each position on the front of the transparent polyhedron includes:
- the color of each position of the front of the transparent polyhedron is obtained.
- the acquisition of the reflected light color at each position on the front of the transparent polyhedron includes:
- the first color component at each position on the front of the transparent polyhedron and the fourth color component at each position on the front of the transparent polyhedron are weighted and mixed to obtain the color at each position on the front of the transparent polyhedron.
- the acquisition of the refracted light color at each position on the front of the transparent polyhedron includes:
- the color of the transparent polyhedron is obtained according to the color of reflected light at each position of the front of the transparent polyhedron and the color of refracted light at each position of the front of the transparent polyhedron.
- the color of each position on the front including:
- Weighted mixing is performed on the reflected light color at each position on the front of the transparent polyhedron and the refracted light color at each position on the front face of the transparent polyhedron according to Fresnel coefficients to obtain the color at each position on the front face of the transparent polyhedron.
- an embodiment of the present invention provides a rendering device for a transparent polyhedron, including:
- a reflected light color acquisition unit configured to acquire the reflected light color at each position on the back of the transparent polyhedron
- a refracted light color acquisition unit configured to sample the background image or environment map according to the refracted light direction at each position on the back of the transparent polyhedron, and acquire the refracted light color at each position on the back of the transparent polyhedron, the background image
- An image acquired for image acquisition of a real scene, the background image is opposite to the back of the transparent polyhedron;
- a first color acquiring unit configured to acquire the color of each position on the back of the transparent polyhedron according to the color of reflected light at each position on the back of the transparent polyhedron and the color of refracted light at each position on the back of the transparent polyhedron;
- a second color acquisition unit configured to acquire the colors of various positions on the front side of the transparent polyhedron
- the third color acquisition unit is configured to perform weighted mixing of the colors of the respective positions on the back of the transparent polyhedron and the colors of the respective positions of the front of the transparent polyhedron according to the first weight coefficient, and acquire the color of each position of the transparent polyhedron. render color;
- a rendering unit configured to render the transparent polyhedron according to the rendering color of each position of the transparent polyhedron.
- the reflected light color acquisition unit is specifically configured to sample in the contrast control map according to the coordinates of each position on the back of the transparent polyhedron, and acquire the color of the back of the transparent polyhedron.
- the first color component of each position according to the reflected light direction of each position on the back of the transparent polyhedron, sample in the internal rendering effect map, and obtain the second color component of each position on the back of the transparent polyhedron; obtain the transparent polyhedron
- the outer product of the first color component and the second color component at each position on the back of the polyhedron is used as the reflected light color at each position on the back of the transparent polyhedron.
- the first color acquisition unit is specifically configured to calculate the reflected light color of each position on the back side of the transparent polyhedron and the back side of the transparent polyhedron according to the Fresnel coefficient Weighted mixing is performed on the refracted light colors at each position of the transparent polyhedron to obtain the colors at each position on the back of the transparent polyhedron.
- the second color acquiring unit is specifically configured to acquire the reflected light color of each position on the front of the transparent polyhedron;
- the color of refracted light according to the color of reflected light at each position of the front of the transparent polyhedron and the color of refracted light at each position of the front of the transparent polyhedron, the color of each position of the front of the transparent polyhedron is acquired.
- the second color acquisition unit is specifically configured to sample in the dispersion map according to the reflected light direction of each position on the front of the transparent polyhedron, and obtain the color of the transparent polyhedron.
- the first color component at each position on the front according to the reflected light direction and the ambient light source at each position on the front of the transparent polyhedron, obtain the second color component at each position on the front of the transparent polyhedron;
- the reflected light direction of each position of the front is sampled in the environment map, and the third color component of each position of the front of the transparent polyhedron is acquired; the fourth color component of each position of the front of the transparent polyhedron is obtained, and the The fourth color component of each position on the front of the transparent polyhedron is the outer product of the first color component and the second color component;
- the first color component of each position on the front of the transparent polyhedron according to the second weight coefficient Perform weighted mixing with the fourth color component at each position on the front of the transparent polyhedron to obtain a fifth color
- the second color acquiring unit is specifically configured to sample in the internal rendering effect map according to the refracted light direction at each position on the front of the transparent polyhedron, and acquire the The color of refracted light at each position on the front of the transparent polyhedron.
- the second color acquisition unit is specifically configured to calculate the reflected light color of each position on the front of the transparent polyhedron and the front of the transparent polyhedron according to the Fresnel coefficient Weighted mixing is performed on the refracted light colors at each position of the transparent polyhedron to obtain the colors at each position on the front face of the transparent polyhedron.
- an embodiment of the present invention provides an electronic device, including: a memory and a processor, the memory is used to store a computer program; the processor is used to enable the electronic device to implement any of the above-mentioned The rendering method of the transparent polyhedron described in the embodiment.
- an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a computing device, the computing device realizes any of the above-mentioned The rendering method of the transparent polyhedron described in the embodiment.
- an embodiment of the present invention provides a computer program product, which enables the computer to implement the transparent polyhedron rendering method described in any one of the above embodiments when the computer program product is run on a computer.
- FIG. 1 is a flow chart of steps of a rendering method for a transparent polyhedron provided by an embodiment of the present invention
- FIG. 2 is a schematic diagram of a contrast control map provided by an embodiment of the present invention.
- FIG. 3 is a schematic diagram of an internal rendering effect map provided by an embodiment of the present invention.
- FIG. 4 is a schematic diagram of an environment map provided by an embodiment of the present invention.
- FIG. 5 is a schematic diagram of the process of obtaining the colors of various positions on the back of the transparent polyhedron provided by an embodiment of the present invention.
- FIG. 6 is a schematic diagram of a dispersion map provided by an embodiment of the present invention.
- FIG. 7 is a schematic diagram of the process of obtaining the colors of various positions on the front of a transparent polyhedron provided by an embodiment of the present invention.
- Fig. 8 is a schematic diagram of the process of obtaining the rendering color of each position of the transparent polyhedron provided by the embodiment of the present invention.
- FIG. 9 is a schematic structural diagram of a rendering device for a transparent polyhedron provided by an embodiment of the present invention.
- FIG. 10 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present invention.
- words such as “exemplary” or “for example” are used as examples, illustrations or illustrations. Any embodiment or design solution described as “exemplary” or “for example” in the embodiments of the present invention shall not be construed as being more preferred or more advantageous than other embodiments or design solutions. Rather, the use of words such as “exemplary” or “such as” is intended to present related concepts in a concrete manner.
- the meaning of "plurality” refers to two or more.
- the transparent polyhedron in the embodiment of the present invention can also be a diamond, a prism, glass shards, etc.
- the transparent polyhedron is illustrated as a diamond as an example to illustrate the rendering method of the transparent polyhedron provided in the embodiment of the present invention, but the embodiment of the present invention It is not limited to this.
- the diamond Transparent polyhedra such as prisms, prisms, and glass shards usually exhibit a high degree of visual complexity.
- the influence of the AR scene on the final color presented by the transparent polyhedron is generally ignored in the prior art, and the transparent polyhedron is rendered based on preset visual effects.
- the transparent polyhedron rendering method in the prior art can also make the preset visual effects more complicated, so that transparent polyhedrons such as diamonds, prisms, and glass fragments show a high degree of visual complexity, but the presented The visual effect cannot be adaptively changed according to the AR scene, and the sense of reality is poor.
- an embodiment of the present invention provides a method for rendering a transparent polyhedron.
- the method for rendering a transparent polyhedron includes the following steps:
- the back face of the transparent polyhedron may refer to a face whose orientation and viewing direction are smaller than 90° among the multiple faces of the transparent polyhedron.
- the direction of any surface of the transparent polyhedron is perpendicular to the surface and the direction of the ray away from the transparent polyhedron; the viewing direction is the shooting direction of the virtual camera.
- the shooting direction of the virtual camera may change, so for different image frames, the back face of the transparent polyhedron may also change accordingly.
- an implementation of the above step S11 may include the following steps 11a to 11c:
- Step 11a according to the coordinates of each position on the back of the transparent polyhedron, sample in the contrast control map, and obtain the first color component of each position on the back of the transparent polyhedron.
- the contrast control map in the embodiment of the present invention is a preset color sampling map.
- FIG. 2 is a schematic diagram of a contrast control map provided by an embodiment of the present invention.
- multiple irregularly arranged regions with different contrasts can be included in the contrast control map.
- sample in the contrast control map, and obtain the first color component of each position on the back of the transparent polyhedron may be: for a certain position on the back of the transparent polyhedron A position with coordinates (x, y), sampling the color value at coordinates (x, y) in the contrast control map as the first color component of the position.
- Step 11b Sampling in the internal rendering effect map according to the reflected light direction of each position on the back of the transparent polyhedron, and acquiring the second color component of each position on the back of the transparent polyhedron.
- the internal rendering effect map in the embodiment of the present invention is a preset color sampling map. It can be made and obtained by drawing software. Exemplarily, referring to the schematic structural diagram and expanded view of the internal rendering effect map in FIG.
- the fifth internal rendering effect map 35 and the sixth internal rendering effect map 36 located on the right side of the transparent polyhedron 300, and the first internal rendering effect map 31, the second internal rendering effect map 32, the third internal rendering effect map 33, the third internal rendering effect map
- the four internal rendering effect maps 34 , the fifth internal rendering effect map 35 and the sixth internal rendering effect map 36 enclose a closed cubic space, and the transparent polyhedron 300 is located inside the closed cubic space formed by the internal rendering effect maps.
- the way of sampling in the internal rendering effect map according to the reflected light direction of each position on the back of the transparent polyhedron may include: extending away from the transparent polyhedron along the reflected light direction of each position on the back of the transparent polyhedron, Sampling the position at which the direction of the reflected light intersects the internal rendering effect map, and using the sampling result as the second color component at each position on the back of the transparent polyhedron.
- Step 11c acquiring the outer product of the first color component and the second color component at each position on the back of the transparent polyhedron as the reflected light color at each position on the back of the transparent polyhedron.
- the first color component of each position on the back of the transparent polyhedron is:
- the second color component at each position of the back face of the transparent polyhedron is:
- the reflected light color of each position on the back of the transparent polyhedron is: then there is
- the first color component and the second color component at each position on the back of the transparent polyhedron are mixed, and the mixed result is used as the reflected light color at each position on the back of the transparent polyhedron.
- the background image is an image obtained by image acquisition of a real scene, and the background image is opposite to the back of the transparent polyhedron.
- the environment map in the embodiment of the present invention is a preset color sampling map, which is used to simulate information such as light intensity, light source distribution, and light color in the environment where the transparent polyhedron is located.
- the environment map may include: a first environment map 411 located on the front side of the transparent polyhedron 300 , a second environment map 412 located at the bottom side of the transparent polyhedron 300 , and a second environment map 412 located on the top side of the transparent polyhedron 300 .
- the environment map 413 , the fourth environment map 414 , the fifth environment map 415 and the background image 420 enclose to form a closed cubic space, and the transparent polyhedron 300 is located inside the closed cubic space formed by the environment maps.
- sampling the background image or environment map according to the refracted light direction at each position on the back of the transparent polyhedron, and obtaining the refracted light color at each position on the back of the transparent polyhedron may include: according to the normal line and the observation The direction obtains the refraction direction, offsets the coordinates of each position of the back of the transparent polyhedron in the screen space according to the coordinates of each position of the back of the transparent polyhedron in the screen space and the refraction direction, and obtains the offset coordinates, according to The offset coordinate position determines which map is sampled to get the refracted light color at that position, i.e. the environment map is sampled or the background image is sampled.
- the offset coordinates of a certain position are located in the environment map, it means that the light source of the refracted light at this position is located in the environment map, so the environment map is sampled according to the offset coordinates to obtain the refracted light color at this position.
- the offset coordinates of a position are within the background image, it means that the light source of the refracted light at this position is within the background image. Therefore, the background image is sampled according to the offset coordinates to obtain the refracted light color at this position.
- step S13 sampling in the background image or environment map according to the direction of refracted light at each position on the back of the transparent polyhedron, and acquiring the color of refracted light at each position on the back of the transparent polyhedron
- step S13 includes:
- the realization process of obtaining the colors of each position on the back of the transparent polyhedron includes the following steps 1 to 5:
- Step 1 Sampling on the contrast control map according to the coordinates of each position on the back of the transparent polyhedron to obtain the first color component of each position on the back of the transparent polyhedron.
- Step 2 Sampling on the internal rendering effect map according to the reflected light direction of each position on the back of the transparent polyhedron, to obtain the second color component of each position on the back of the transparent polyhedron.
- Step 3 Calculate the outer product of the first color component and the second color component at each position on the back of the transparent polyhedron to obtain the reflected light color at each position on the back of the transparent polyhedron.
- Step 4 Sampling the background image or environment map according to the refracted light direction at each position on the back of the transparent polyhedron to obtain the refracted light color at each position on the back of the transparent polyhedron.
- Step 5 Weighting and mixing the reflected light color and the refracted light color of each position on the back of the transparent polyhedron according to Fresnel coefficients to obtain the color of each position on the back of the transparent polyhedron.
- the front face of the transparent polyhedron in the embodiment of the present invention refers to a face whose orientation and viewing direction angle is greater than 90° among the multiple faces of the transparent polyhedron.
- the above step S14 (obtaining the color of each position on the front of the transparent polyhedron) includes the following steps 14a to 14c:
- Step 14a acquiring the reflected light color of each position on the front face of the transparent polyhedron.
- the implementation of obtaining the reflected light color at each position on the front of the transparent polyhedron includes the following steps a to f:
- Step a Sampling in the dispersion map according to the reflected light direction at each position of the front face of the transparent polyhedron, and acquiring first color components at each position of the front face of the transparent polyhedron.
- the dispersion map in the embodiment of the present invention is a preset color sampling map.
- the third dispersion map 63 positioned at the bottom side of the transparent polyhedron 300
- the fourth dispersion map 64 positioned at the top side of the transparent polyhedron 300
- the fifth dispersion map 65 positioned at the left side of the transparent polyhedron 300
- the The sixth dispersion map 66 on the right side, and the first dispersion map 61, the second dispersion map 62, the third dispersion map 63, the fourth dispersion map 64, the fifth dispersion map 65 and the sixth dispersion map 66, form a closed In the cubic space, the transparent polyhedron 300 is located inside the closed cubic space formed by the dispersion map.
- the manner of sampling the dispersion map according to the reflected light direction at each position on the front of the transparent polyhedron may include extending away from the transparent polyhedron along the reflected light direction at each position on the front of the transparent polyhedron, and Sampling is performed at positions where the reflected light direction intersects the dispersion map, and the sampling results are used as the first color components at each position on the front face of the transparent polyhedron.
- Step b According to the reflected light direction and the ambient light source at each position of the front face of the transparent polyhedron, the second color components of each position on the front face of the transparent polyhedron are acquired.
- the ambient light source in the embodiment of the present invention refers to the light source obtained by treating each pixel in the environment map as a light source.
- the ambient light source can effectively capture the global illumination and atmosphere of the environment, so that the object can better blend into its environment.
- features such as convolutional neural networks can be used to extract the features of the environment map to obtain the environment light source. Since environment maps are preset, ambient light sources can be preset and used directly when rendering.
- Step c Sampling in the environment map according to the reflected light direction at each position of the front face of the transparent polyhedron, and acquiring a third color component at each position of the front face of the transparent polyhedron.
- the environment map used when obtaining the third color component at each position of the front of the transparent polyhedron is the same as the environment map used when obtaining the refracted light color at each position of the background of the transparent polyhedron, which The implementation principle is similar and will not be repeated here.
- Step d Obtain the fourth color components at each position on the front face of the transparent polyhedron.
- the fourth color component at each position on the front face of the transparent polyhedron is the outer product of the first color component and the second color component.
- the first color component of each position on the front of the transparent polyhedron is:
- the second color component at each position of the front face of the transparent polyhedron is:
- the fourth color component at each position of the front face of the transparent polyhedron is: then there is
- Step e performing weighted mixing on the first color component at each position of the front of the transparent polyhedron and the fourth color component at each position of the front of the transparent polyhedron according to the second weight coefficient, to obtain the color of the front of the transparent polyhedron The fifth color component at each location.
- the weight coefficient of the first color component is a
- the weight coefficient of the fourth color component is b
- the first color component of each position on the front of the transparent polyhedron is:
- the fourth color component at each position of the front face of the transparent polyhedron is:
- the fifth color component at each position of the front face of the transparent polyhedron is: Then there are:
- Step f obtaining the outer product of the fifth color component at each position on the front of the transparent polyhedron and the third color component at each position on the front of the transparent polyhedron as the reflected light color at each position on the front of the transparent polyhedron .
- the third color component of each position on the front of the transparent polyhedron is:
- the fifth color component at each position of the front face of the transparent polyhedron is:
- the reflected light color of each position on the front of the transparent polyhedron is: Then there are:
- Step 14b acquiring the refracted light colors at various positions on the front face of the transparent polyhedron.
- the implementation of obtaining the refracted light color at each position on the front of the transparent polyhedron may include:
- the internal rendering effect map used when obtaining the refracted light color at each position on the front of the transparent polyhedron is the same as the internal rendering effect map used when obtaining the second color component at each position on the back of the transparent polyhedron, and its implementation principle similar and will not be repeated here.
- Step 14c Obtain the color of each position of the front of the transparent polyhedron according to the color of reflected light at each position of the front of the transparent polyhedron and the color of refracted light at each position of the front of the transparent polyhedron.
- the color of reflected light at each position on the front of the transparent polyhedron and the color of refracted light at each position on the front of the transparent polyhedron obtain the color of the front of the transparent polyhedron.
- the implementation of the color of each position can include:
- Weighted mixing is performed on the reflected light color at each position on the front of the transparent polyhedron and the refracted light color at each position on the front face of the transparent polyhedron according to Fresnel coefficients to obtain the color at each position on the front face of the transparent polyhedron.
- the implementation process of obtaining the color of each position on the front of the transparent polyhedron includes the following steps I to VIII:
- Step 1 Sampling in the dispersion map according to the reflected light direction of each position of the front face of the transparent polyhedron, and obtaining the first color component of each position of the front face of the transparent polyhedron.
- Step II According to the reflected light direction and the ambient light source at each position of the front face of the transparent polyhedron, the second color components of each position on the front face of the transparent polyhedron are acquired.
- Step III Compute the outer product of the first color component and the second color component at each position on the front face of the transparent polyhedron to obtain the fourth color component at each position on the front face of the transparent polyhedron.
- Step IV Perform weighted mixing of the first color component and the fourth color component at each position of the front face of the transparent polyhedron according to the second weight coefficient to obtain a fifth color component at each position of the front face of the transparent polyhedron.
- Step V Sampling in the environment map according to the reflected light direction at each position of the front face of the transparent polyhedron, and obtaining a third color component at each position of the front face of the transparent polyhedron.
- Step VI Calculate the outer product of the fifth color component and the third color component at each position on the front face of the transparent polyhedron to obtain the reflected light color at each position on the front face of the transparent polyhedron.
- Step VII Sampling in the internal rendering effect map according to the refracted light direction at each position of the front face of the transparent polyhedron, to obtain the refracted light color at each position of the front face of the transparent polyhedron.
- Step VIII Perform weighted mixing of the reflected light color and the refracted light color at each position of the front face of the transparent polyhedron according to Fresnel coefficients, to obtain the color of each position of the front face of the transparent polyhedron.
- step S15 carry out weighted mixing to the color of each position of the back side of described transparent polyhedron and the color of each position of the front of described transparent polyhedron according to the second weight coefficient, obtain the rendering of each position of described transparent polyhedron color.
- the color of each position on the back of the transparent polyhedron and the color of each position on the front of the transparent polyhedron may be weighted and mixed with a preset weight coefficient to obtain the rendering color of each position of the transparent polyhedron.
- the implementation of obtaining the rendering color of each position of the transparent polyhedron may include:
- step S16 rendering the transparent polyhedron according to the rendering colors of each position of the transparent polyhedron.
- the rendering method of the transparent polyhedron when rendering the transparent polyhedron, first obtains the color of the reflected light at each position on the back of the transparent polyhedron, and secondly, according to the direction of the refracted light at each position on the back of the transparent polyhedron Sampling in the image or environment map to obtain the refracted light color of each position on the back of the transparent polyhedron, and then according to the reflected light color and refracted light color of each position on the back of the transparent polyhedron, obtain the color of the back of the transparent polyhedron
- the color of each position and then obtain the color of each position of the front of the transparent polyhedron, and carry out the color of each position of the back of the transparent polyhedron and the color of each position of the front of the transparent polyhedron according to the first weight coefficient weighted mixing, obtaining the rendering colors of each position of the transparent polyhedron; finally rendering the transparent polyhedron according to the rendering colors of each position of the transparent polyhedron.
- the rendering method of the transparent polyhedron provided by the embodiment of the present invention can sample the back of the transparent polyhedron on the background image obtained by image acquisition of the real scene according to the refracted light direction of each position on the back of the transparent polyhedron when rendering the transparent polyhedron Therefore, the visual effect of the transparent polyhedron rendered by the embodiment of the present invention can be adaptively changed according to the actual scene, so as to enhance the realism of the transparent polyhedron.
- the embodiment of the present invention also provides a rendering device for a transparent polyhedron.
- This device embodiment corresponds to the aforementioned method embodiment. Details in the method embodiments will be described one by one, but it should be clear that the transparent polyhedron rendering device in this embodiment can correspondingly implement all the content in the foregoing method embodiments.
- FIG. 9 is the structural representation of the rendering device of this transparent polyhedron, as shown in Fig. 9, the rendering device 900 of this transparent polyhedron comprises:
- a reflected light color acquisition unit 91 configured to acquire the reflected light color of each position on the back of the transparent polyhedron
- the refracted light color acquisition unit 92 is configured to sample in the background image or the environment map according to the refracted light direction at each position on the back of the transparent polyhedron, and acquire the refracted light color at each position on the back of the transparent polyhedron.
- the image is an image obtained by image acquisition of a real scene, and the background image is opposite to the back of the transparent polyhedron;
- the first color acquiring unit 93 is configured to acquire the color of each position on the back of the transparent polyhedron according to the color of reflected light at each position on the back of the transparent polyhedron and the color of refracted light at each position on the back of the transparent polyhedron ;
- the second color acquiring unit 94 is used to acquire the colors of each position on the front of the transparent polyhedron
- the third color acquisition unit 95 is configured to carry out weighted mixing of the colors of each position on the back of the transparent polyhedron and the color of each position on the front of the transparent polyhedron according to the first weight coefficient, and acquire each position of the transparent polyhedron the rendering color;
- the rendering unit 96 is configured to render the transparent polyhedron according to the rendering color of each position of the transparent polyhedron.
- the reflected light color acquisition unit 91 is specifically configured to sample in the contrast control map according to the coordinates of each position on the back of the transparent polyhedron, and acquire the back of the transparent polyhedron
- the first color acquisition unit 93 is specifically configured to calculate the reflected light color of each position on the back of the transparent polyhedron and the color of the transparent polyhedron according to Fresnel coefficients.
- the refracted light colors at each position on the back face are weighted and mixed to obtain the colors at each position on the back face of the transparent polyhedron.
- the second color acquiring unit 94 is specifically configured to acquire the reflected light color at each position of the front of the transparent polyhedron; acquire each position of the front of the transparent polyhedron The color of refracted light; according to the color of reflected light at each position of the front of the transparent polyhedron and the color of refracted light at each position of the front of the transparent polyhedron, the color of each position of the front of the transparent polyhedron is obtained.
- the second color acquisition unit 94 is specifically configured to sample in the dispersion map according to the reflected light direction of each position on the front of the transparent polyhedron, and acquire the transparent polyhedron the first color components at each position of the front of the transparent polyhedron; according to the reflected light direction and the ambient light source at each position of the front of the transparent polyhedron, obtain the second color components at each position of the front of the transparent polyhedron; according to the transparent polyhedron
- the reflected light direction of each position of the front of the transparent polyhedron is sampled in the environment map, and the third color component of each position of the front of the transparent polyhedron is obtained; the fourth color component of each position of the front of the transparent polyhedron is acquired, so
- the fourth color component of each position of the front of the transparent polyhedron is the outer product of the first color component and the second color component; the first color of each position of the front of the transparent polyhedron according to the second weight coefficient component and the fourth color component at each position on the front of
- the second color acquiring unit 94 is specifically configured to sample in the internal rendering effect map according to the refracted light direction at each position on the front of the transparent polyhedron, and acquire The color of refracted light at each position of the front face of the transparent polyhedron.
- the second color acquisition unit 94 is specifically configured to calculate the reflected light color of each position on the front of the transparent polyhedron and the color of the transparent polyhedron according to Fresnel coefficients.
- the refracted light colors at each position on the front are weighted and mixed to obtain the colors at each position on the front of the transparent polyhedron.
- FIG. 10 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
- the electronic device provided by this embodiment includes: a memory 101 and a processor 102, and the memory 101 is used to store computer programs; the processing The device 102 is configured to enable the electronic device to implement the transparent polyhedron rendering method provided in the above-mentioned embodiments when calling and executing the computer program.
- An embodiment of the present invention also provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a computing device, the computing device realizes the transparent The rendering method for the polyhedron.
- An embodiment of the present invention also provides a computer program product, which enables the computer to implement the transparent polyhedron rendering method provided in the above embodiments when the computer program product is run on a computer.
- the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media having computer-usable program code embodied therein.
- the processor can be a central processing unit (Central Processing Unit, CPU), or other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
- a general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
- Memory may include non-permanent storage in computer readable media, in the form of random access memory (RAM) and/or nonvolatile memory such as read only memory (ROM) or flash RAM.
- RAM random access memory
- ROM read only memory
- flash RAM flash random access memory
- Computer-readable media includes both volatile and non-volatile, removable and non-removable storage media.
- the storage medium may store information by any method or technology, and the information may be computer-readable instructions, data structures, program modules, or other data.
- Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, A magnetic tape cartridge, disk storage or other magnetic storage device or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
- computer readable media excludes transitory computer readable media, such as modulated data signals and carrier waves.
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Graphics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Geometry (AREA)
- Image Generation (AREA)
- Processing Or Creating Images (AREA)
Abstract
本发明实施例提供了一种透明多面体的渲染方法及装置,涉及图像渲染技术领域。该方法包括:获取背面的各个位置的反射光颜色;根据背面的各个位置的折射光方向在背景图像或环境贴图中采样获取折射光颜色;根据背面的各个位置的反射光颜色和折射光颜色,获取透明多面体的背面的各个位置的颜色;获取透明多面体的正面的各个位置的颜色;根据第一权重系数对透明多面体的背面和正面的各个位置的颜色进行加权混合,获取透明多面体的各个位置的渲染颜色;根据透明多面体的正面的各个位置的渲染颜色对透明多面体进行渲染。
Description
相关申请的交叉引用
本公开要求于2021年7月30日提交的申请号为202110875234.0、发明名称为“一种透明多面体的渲染方法及装置”的中国专利申请的优先权,其至少部分内容通过引用结合在本公开中。
本发明涉及图像渲染技术领域,尤其涉及一种透明多面体的渲染方法及装置。
增强现实(Augmented Reality,AR)技术是一种用于融合虚拟信息与真实世界的技术,其可以将原本在现实世界的空间范围中比较难以进行体验的实体信息在电脑等科学技术的基础上,实施模拟仿真处理,从而将虚拟信息内容叠加在真实世界中,实现超越现实的感官体验。
发明内容
有鉴于此,本发明实施例提供了一种透明多面体的渲染方法及装置,本发明实施例提供技术方案如下:
第一方面,本发明的实施例提供了一种透明多面体的渲染方法,包括:
获取透明多面体的背面的各个位置的反射光颜色;
根据所述透明多面体的背面的各个位置的折射光方向在背景图像或环境贴图中采样,获取所述透明多面体的背面的各个位置的折射光颜色,所述背景图像为对真实场景进行图像采集获取的图像,所述背景图像与所述透明多面体的背面相对;
根据所述透明多面体的背面的各个位置的反射光颜色和所述透明多面体的背面的各个位置的折射光颜色,获取所述透明多面体的背面 的各个位置的颜色;
获取所述透明多面体的正面的各个位置的颜色;
根据第一权重系数对所述透明多面体的背面的各个位置的颜色和所述透明多面体的正面的各个位置的颜色进行加权混合,获取所述透明多面体的各个位置的渲染颜色;
根据所述透明多面体的各个位置的渲染颜色对所述透明多面体进行渲染。
作为本发明实施例一种可选的实施方式,所述获取透明多面体的背面的各个位置的反射光颜色,包括:
根据透明多面体的背面的各个位置的坐标,在对比度控制贴图中采样,获取所述透明多面体的背面的各个位置的第一颜色分量;
根据所述透明多面体的背面的各个位置的反射光方向在内部渲染效果贴图中采样,获取所述透明多面体的背面的各个位置的第二颜色分量;
获取所述透明多面体的背面的各个位置的第一颜色分量和第二颜色分量的外积作为所述透明多面体的背面的各个位置的反射光颜色。
作为本发明实施例一种可选的实施方式,所述根据所述透明多面体的背面的各个位置的反射光颜色和所述透明多面体的背面的各个位置的折射光颜色,获取所述透明多面体的背面的各个位置的颜色,包括:
根据菲涅尔系数对所述透明多面体的背面的各个位置的反射光颜色和所述透明多面体的背面的各个位置的折射光颜色进行加权混合,获取所述透明多面体的背面的各个位置的颜色。
作为本发明实施例一种可选的实施方式,所述获取所述透明多面体的正面的各个位置的颜色,包括:
获取所述透明多面体的正面的各个位置的反射光颜色;
获取所述透明多面体的正面的各个位置的折射光颜色;
根据所述透明多面体的正面的各个位置的反射光颜色和所述透明 多面体的正面的各个位置的折射光颜色,获取所述透明多面体的正面的各个位置的颜色。
作为本发明实施例一种可选的实施方式,所述获取所述透明多面体的正面的各个位置的反射光颜色,包括:
根据所述透明多面体的正面的各个位置的反射光方向在色散贴图中采样,获取所述透明多面体的正面的各个位置的第一颜色分量;
根据所述透明多面体的正面的各个位置的反射光方向和环境光源,获取所述透明多面体的正面的各个位置的第二颜色分量;
根据所述透明多面体的正面的各个位置的反射光方向在所述环境贴图中采样,获取所述透明多面体的正面的各个位置的第三颜色分量;
获取所述透明多面体的正面的各个位置的第四颜色分量,所述透明多面体的正面的各个位置的第四颜色分量为所述第一颜色分量与所述第二颜色分量的外积;
根据第二权重系数对所述透明多面体的正面的各个位置的第一颜色分量和所述透明多面体的正面的各个位置的第四颜色分量进行加权混合,获取所述透明多面体的正面的各个位置的第五颜色分量;
获取所述透明多面体的正面的各个位置的第五颜色分量与所述透明多面体的正面的各个位置的第三颜色分量的外积作为所述透明多面体的正面的各个位置的反射光颜色。
作为本发明实施例一种可选的实施方式,所述获取所述透明多面体的正面的各个位置的折射光颜色,包括:
根据所述透明多面体的正面的各个位置的折射光方向在所述内部渲染效果贴图中采样,获取所述透明多面体的正面的各个位置的折射光颜色。
作为本发明实施例一种可选的实施方式,所述根据所述透明多面体的正面的各个位置的反射光颜色和所述透明多面体的正面的各个位置的折射光颜色,获取所述透明多面体的正面的各个位置的颜色,包括:
根据菲涅尔系数对所述透明多面体的正面的各个位置的反射光颜色和所述透明多面体的正面的各个位置的折射光颜色进行加权混合,获取所述透明多面体的正面的各个位置的颜色。
第二方面,本发明实施例提供一种透明多面体的渲染装置,包括:
反射光颜色获取单元,用于获取透明多面体的背面的各个位置的反射光颜色;
折射光颜色获取单元,用于根据所述透明多面体的背面的各个位置的折射光方向在背景图像或环境贴图中采样,获取所述透明多面体的背面的各个位置的折射光颜色,所述背景图像为对真实场景进行图像采集获取的图像,所述背景图像与所述透明多面体的背面相对;
第一颜色获取单元,用于根据所述透明多面体的背面的各个位置的反射光颜色和所述透明多面体的背面的各个位置的折射光颜色,获取所述透明多面体的背面的各个位置的颜色;
第二颜色获取单元,用于获取所述透明多面体的正面的各个位置的颜色;
第三颜色获取单元,用于根据第一权重系数对所述透明多面体的背面的各个位置的颜色和所述透明多面体的正面的各个位置的颜色进行加权混合,获取所述透明多面体的各个位置的渲染颜色;
渲染单元,用于根据所述透明多面体的各个位置的渲染颜色对所述透明多面体进行渲染。
作为本发明实施例一种可选的实施方式,所述反射光颜色获取单元,具体用于根据透明多面体的背面的各个位置的坐标,在对比度控制贴图中采样,获取所述透明多面体的背面的各个位置的第一颜色分量;根据所述透明多面体的背面的各个位置的反射光方向在内部渲染效果贴图中采样,获取所述透明多面体的背面的各个位置的第二颜色分量;获取所述透明多面体的背面的各个位置的第一颜色分量和第二颜色分量的外积作为所述透明多面体的背面的各个位置的反射光颜色。
作为本发明实施例一种可选的实施方式,所述第一颜色获取单元, 具体用于根据菲涅尔系数对所述透明多面体的背面的各个位置的反射光颜色和所述透明多面体的背面的各个位置的折射光颜色进行加权混合,获取所述透明多面体的背面的各个位置的颜色。
作为本发明实施例一种可选的实施方式,所述第二颜色获取单元,具体用于获取所述透明多面体的正面的各个位置的反射光颜色;获取所述透明多面体的正面的各个位置的折射光颜色;根据所述透明多面体的正面的各个位置的反射光颜色和所述透明多面体的正面的各个位置的折射光颜色,获取所述透明多面体的正面的各个位置的颜色。
作为本发明实施例一种可选的实施方式,所述第二颜色获取单元,具体用于根据所述透明多面体的正面的各个位置的反射光方向在色散贴图中采样,获取所述透明多面体的正面的各个位置的第一颜色分量;根据所述透明多面体的正面的各个位置的反射光方向和环境光源,获取所述透明多面体的正面的各个位置的第二颜色分量;根据所述透明多面体的正面的各个位置的反射光方向在所述环境贴图中采样,获取所述透明多面体的正面的各个位置的第三颜色分量;获取所述透明多面体的正面的各个位置的第四颜色分量,所述透明多面体的正面的各个位置的第四颜色分量为所述第一颜色分量与所述第二颜色分量的外积;根据第二权重系数对所述透明多面体的正面的各个位置的第一颜色分量和所述透明多面体的正面的各个位置的第四颜色分量进行加权混合,获取所述透明多面体的正面的各个位置的第五颜色分量;获取所述透明多面体的正面的各个位置的第五颜色分量与所述透明多面体的正面的各个位置的第三颜色分量的外积作为所述透明多面体的正面的各个位置的反射光颜色。
作为本发明实施例一种可选的实施方式,所述第二颜色获取单元,具体用于根据所述透明多面体的正面的各个位置的折射光方向在所述内部渲染效果贴图中采样,获取所述透明多面体的正面的各个位置的折射光颜色。
作为本发明实施例一种可选的实施方式,所述第二颜色获取单元, 具体用于根据菲涅尔系数对所述透明多面体的正面的各个位置的反射光颜色和所述透明多面体的正面的各个位置的折射光颜色进行加权混合,获取所述透明多面体的正面的各个位置的颜色。
第三方面,本发明实施例提供一种电子设备,包括:存储器和处理器,所述存储器用于存储计算机程序;所述处理器用于在调用计算机程序时,使得所述电子设备实现上述任一实施例所述的透明多面体的渲染方法。
第四方面,本发明实施例提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,当所述计算机程序被计算设备执行时,使得所述计算设备实现上述任一实施例所述的透明多面体的渲染方法。
第五方面,本发明实施例提供一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机实现上述任一实施例所述的透明多面体的渲染方法。
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例提供的透明多面体的渲染方法的步骤流程图;
图2为本发明实施例提供的对比度控制贴图的示意图;
图3为本发明实施例提供的内部渲染效果贴图的示意图;
图4为本发明实施例提供的环境贴图的示意图;
图5为本发明实施例提供的获取透明多面体的背面的各个位置的颜色的过程示意图;
图6为本发明实施例提供的色散贴图的示意图;
图7为本发明实施例提供的获取透明多面体的正面的各个位置的颜色的过程示意图;
图8为本发明实施例提供的获取透明多面体的各个位置的渲染颜色的过程示意图;
图9为本发明实施例提供的透明多面体的渲染装置的结构示意图;
图10为本发明实施例提供的电子设备的硬件结构示意图。
为了能够更清楚地理解本发明的上述目的、特征和优点,下面将对本发明的方案进行进一步描述。需要说明的是,在不冲突的情况下,本发明的实施例及实施例中的特征可以相互组合。
在下面的描述中阐述了很多具体细节以便于充分理解本发明,但本发明还可以采用其他不同于在此描述的方式来实施;显然,说明书中的实施例只是本发明的一部分实施例,而不是全部的实施例。
在本发明实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本发明实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。此外,在本发明实施例的描述中,除非另有说明,“多个”的含义是指两个或两个以上。
本发明实施例中的透明多面体可也为钻石、棱镜、玻璃碎片等,下述实施例中以透明多面体为钻石为例对本发明实施例提供的透明多面体的渲染方法进行说明,但本发明实施例并不限定于此。
在真实世界中,由于透明多面体呈现出的最终视觉效果不仅会受到其各个面的对光线的反射、多面体对光线的折射、散射的影响,而且还会受到其所透射的光线的影响,因此钻石、棱镜、玻璃碎块等透明多面体通常都会表现出高度的视觉复杂性。为了简化AR场景下的 透明多面体的渲染,现有技术中普遍会忽略AR场景对透明多面体所呈现出的最终颜色的影响,基于预设视觉效果对透明多面体进行渲染。虽然现有技术中这种透明多面体渲染的方式也可以通过将预设视觉效果设置的较为复杂,从而使钻石、棱镜、玻璃碎块等透明多面体表现出高度的视觉复杂性,但其呈现出的视觉效果无法根据的AR场景进行适应性的变化,真实感较差。
基于现有技术中的上述问题,本发明实施例提供了一种透明多面体的渲染方法,参照图1所示,该透明多面体的渲染方法包括如下步骤:
S11、获取透明多面体的背面的各个位置的反射光颜色。
具体的,在本发明实施例中,透明多面体的背面可以指所述透明多面体的多个面中朝向与观察方向之间的角度小于90°的面。其中,所述透明多面体任一个面的朝向为垂直于该面且向远离所述透明多面体的射线的方向;所述观察方向为虚拟摄像机的拍摄方向。
需要说明的是,在渲染不同的图像帧时,虚拟摄像机的拍摄方向可能会变化,因此对于不同的图像帧,透明多面体的背面也可能会相应发生变化。
可选的,上步骤S11(获取透明多面体的背面的各个位置的反射光颜色)的一种实现方式可以包括如下步骤11a至11c:
步骤11a、根据所述透明多面体的背面的各个位置的坐标,在对比度控制贴图中采样,获取所述透明多面体的背面的各个位置的第一颜色分量。
本发明实施例中的对比度控制贴图为预设置的颜色采样贴图。示例性的,参照图2所示,图2为本发明实施例提供的对比度控制贴图的示意图。为了提升透明多面体的视觉复杂度,对比度控制贴图中可以包括多个对比度不同且不规则排列的区域。
具体的,根据所述透明多面体的背面的各个位置的坐标,在对比度控制贴图中采样,获取所述透明多面体的背面的各个位置的第一颜 色分量的方式可以为:对于透明多面体的背面的某一坐标为(x,y)的位置,在对比度控制贴图中采样坐标为(x,y)处的颜色值,作为该位置的第一颜色分量。
步骤11b、根据所述透明多面体的背面的各个位置的反射光方向在内部渲染效果贴图中采样,获取所述透明多面体的背面的各个位置的第二颜色分量。
本发明实施例中的内部渲染效果贴图为预设置的颜色采样贴图。其可以由制图软件制作获取。示例性的,参照图3中内部渲染效果贴图的结构示意图及展开图所示,内部渲染效果贴图可以包括:位于透明多面体300的前侧的第一内部渲染效果贴图31、位于透明多面体300的后侧的第二内部渲染效果贴图32、位于透明多面体300的底侧的第三内部渲染效果贴图33、位于透明多面体300的顶侧的第四内部渲染效果贴图34、位于透明多面体300的左侧的第五内部渲染效果贴图35以及位于透明多面体300的右侧的第六内部渲染效果贴图36,且第一内部渲染效果贴图31、第二内部渲染效果贴图32、第三内部渲染效果贴图33、第四内部渲染效果贴图34、第五内部渲染效果贴图35以及第六内部渲染效果贴图36,围合形成闭合立方体空间,透明多面体300位于内部渲染效果贴图形成的闭合立方体空间内部。
具体的,根据所述透明多面体的背面的各个位置的反射光方向在内部渲染效果贴图中采样的方式可以包括:沿透明多面体的背面的各个位置的反射光方向作远离所述透明多面体的延伸,对反射光方向与对内部渲染效果贴图相交的位置进行采样,将采样结果作为所述透明多面体的背面的各个位置的第二颜色分量。
步骤11c、获取所述透明多面体的背面的各个位置的第一颜色分量和第二颜色分量的外积作为所述透明多面体的背面的各个位置的反射光颜色。
即,基于正片叠底(Multiply)模式将透明多面体的背面的各个位置的第一颜色分量和第二颜色分量混合,并将混合结果作为透明多面体的背面的各个位置的反射光颜色。
S12、根据所述透明多面体的背面的各个位置的折射光方向在背景图像或环境贴图中采样,获取所述透明多面体的背面的各个位置的折射光颜色。
其中,所述背景图像为对真实场景进行图像采集获取的图像,所述背景图像与所述透明多面体的背面相对。
本发明实施例中的环境贴图为预设置的颜色采样贴图,用于模拟透明多面体所处环境中的光照强度、光源分布、光线颜色等信息。示例性的,参照图4所示,环境贴图可以包括:位于透明多面体300的前侧的第一环境贴图411、位于透明多面体300的底侧的第二环境贴图412、位于透明多面体300的顶侧的第三环境贴图413、位于透明多面体300的左侧的第四环境贴图414以及位于透明多面体300的右侧的第五环境贴图415,且第一环境贴图411、第二环境贴图412、第三环境贴图413、第四环境贴图414、第五环境贴图415以及背景图像420,围合形成闭合立方体空间,透明多面体300位于环境贴图形成的闭合立方体空间内部。
具体的,根据所述透明多面体的背面的各个位置的折射光方向在背景图像或环境贴图中采样,获取所述透明多面体的背面的各个位置的折射光颜色的方式可以包括:根据法线和观察方向获取折射方向,根据所述透明多面体的背面的各个位置在屏幕空间中的坐标以及折射方向对所述透明多面体的背面的各个位置在屏幕空间中的坐标进行偏移并获取偏移坐标,根据偏移坐标位置确定采样的贴图,以获取该位置的折射光颜色,即,对环境贴图进行采样或背景图像进行采样。例如,若某一位置的偏移坐标位于环境贴图内,则说明该位置的折射光的光源位于环境贴图内,因此根据偏移坐标对环境贴图进行采样,获 取该位置的折射光颜色,若某一位置的偏移坐标位于背景图像内,则说明该位置的折射光的光源位于背景图像内,因此根据偏移坐标对背景图像进行采样,获取该位置的折射光颜色。
S13、根据所述透明多面体的背面的各个位置的反射光颜色和所述透明多面体的背面的各个位置的折射光颜色,获取所述透明多面体的背面的各个位置的颜色。
可选的,上述步骤S13(根据所述透明多面体的背面的各个位置的折射光方向在背景图像或环境贴图中采样,获取所述透明多面体的背面的各个位置的折射光颜色)包括:
根据菲涅尔系数对所述透明多面体的背面的各个位置的反射光颜色和所述透明多面体的背面的各个位置的折射光颜色进行加权混合,获取所述透明多面体的背面的各个位置的颜色。
综上,如图5所示,获取所述透明多面体的背面的各个位置的颜色的实现过程包括如下步骤1至步骤5:
步骤1、根据透明多面体的背面的各个位置的坐标在对比度控制贴图上采样,获取透明多面体的背面的各个位置的第一颜色分量。
步骤2、根据透明多面体的背面的各个位置的反射光方向在内部渲染效果贴图上采样,获取透明多面体的背面的各个位置的第二颜色分量。
步骤3、对透明多面体的背面的各个位置的第一颜色分量和第二颜色分量求外积,获取透明多面体的背面的各个位置的反射光颜色。
步骤4、根据透明多面体的背面的各个位置的折射光方向在背景图像或环境贴图上采样,获取透明多面体的背面的各个位置的折射光颜色。
步骤5、根据菲涅尔系数加权混合透明多面体的背面的各个位置的反射光颜色和折射光颜色,获取透明多面体背面的各个位置的颜色。
S14、获取所述透明多面体的正面的各个位置的颜色。
具体的,本发明实施例中透明多面体的正面是指所述透明多面体的多个面中朝向与观察方向之间的角度大于90°的面。
作为本发明实施例一种可选的实施方式,上述步骤S14(获取所述透明多面体的正面的各个位置的颜色)包括如下步骤14a至14c:
步骤14a、获取所述透明多面体的正面的各个位置的反射光颜色。
可选的,获取所述透明多面体的正面的各个位置的反射光颜色的实现方式包括如下步骤a至步骤f:
步骤a、根据所述透明多面体的正面的各个位置的反射光方向在色散贴图中采样,获取所述透明多面体的正面的各个位置的第一颜色分量。
本发明实施例中的色散贴图为预设置的颜色采样贴图。示例性的,参照图6中对色散贴图的结构示意图及展开图所示,色散贴图可以包括:位于透明多面体300的前侧的第一色散贴图61、位于透明多面体300的后侧的第二色散贴图62、位于透明多面体300的底侧的第三色散贴图63、位于透明多面体300的顶侧的第四色散贴图64、位于透明多面体300的左侧的第五色散贴图65以及位于透明多面体300的右侧的第六色散贴图66,且第一色散贴图61、第二色散贴图62、第三色散贴图63、第四色散贴图64、第五色散贴图65以及第六色散贴图66,围合形成闭合立方体空间,透明多面体300位于色散贴图形成的闭合立方体空间内部。
具体的,根据所述透明多面体的正面的各个位置的反射光方向在色散贴图中采样的方式可以包括,沿透明多面体的正面的各个位置的反射光方向作远离所述透明多面体的延伸,并对反射光方向与色散贴图相交的位置进行采样,将采样结果作为所述透明多面体的正面的各个位置的第一颜色分量。
步骤b、根据所述透明多面体的正面的各个位置的反射光方向和环境光源,获取所述透明多面体的正面的各个位置的第二颜色分量。
本发明实施例中的环境光源是指将环境贴图中的每一个像素点视 为一个光源而得到的光源。在渲染方程中环境光源可以有效地捕捉环境的全局光照和氛围,使物体更好地融入其环境。实际使用过程中,可以通过诸如卷积神经网络对环境贴图进行特征提取,从而获取环境光源。由于环境贴图是预设设置的,因此环境光源可以预先设置并在渲染时直接使用。
步骤c、根据所述透明多面体的正面的各个位置的反射光方向在所述环境贴图中采样,获取所述透明多面体的正面的各个位置的第三颜色分量。
具体的,获取所述透明多面体的正面的各个位置的第三颜色分量时使用的环境贴图与获取所述透明多面体的背景的各个位置的折射光颜色时使用的环境贴图为相同的环境贴图,其实现原理类似,在此不再赘述。
步骤d、获取所述透明多面体的正面的各个位置的第四颜色分量。
其中,所述透明多面体的正面的各个位置的第四颜色分量为所述第一颜色分量与所述第二颜色分量的外积。
步骤e、根据第二权重系数对所述透明多面体的正面的各个位置的第一颜色分量和所述透明多面体的正面的各个位置的第四颜色分量进行加权混合,获取所述透明多面体的正面的各个位置的第五颜色分量。
设:第一颜色分量的权重系数为a,第四颜色分量的权重系数为b,透明多面体的正面的各个位置的第一颜色分量为:
透明多面体的正面的各个位置的第四颜色分量为:
透明多面体的正面的各个位置的第五颜色分量为:
则有:
步骤f、获取所述透明多面体的正面的各个位置的第五颜色分量与所述透明多面体的正面的各个位置的第三颜色分量的外积作为所述透明多面体的正面的各个位置的反射光颜色。
步骤14b、获取所述透明多面体的正面的各个位置的折射光颜色。
可选的,获取所述透明多面体的正面的各个位置的折射光颜色的实现方式可以包括:
根据所述透明多面体的正面的各个位置的折射光方向在所述内部渲染效果贴图中采样,获取所述透明多面体的正面的各个位置的折射光颜色。
具体的,获取所述透明多面体的正面的各个位置的折射光颜色时使用的内部渲染效果贴图与获取透明多面体的背面的各个位置的第二颜色分量时使用的内部渲染效果贴图相同,其实现原理类似,在此不再赘述。
步骤14c、根据所述透明多面体的正面的各个位置的反射光颜色和所述透明多面体的正面的各个位置的折射光颜色,获取所述透明多面体的正面的各个位置的颜色。
作为本发明实施例一种可选的实施方式,根据所述透明多面体的正面的各个位置的反射光颜色和所述透明多面体的正面的各个位置的折射光颜色,获取所述透明多面体的正面的各个位置的颜色的实现方式可以包括:
根据菲涅尔系数对所述透明多面体的正面的各个位置的反射光颜色和所述透明多面体的正面的各个位置的折射光颜色进行加权混合,获取所述透明多面体的正面的各个位置的颜色。
综上,如图7所示,获取所述透明多面体的正面的各个位置的颜色的实现过程包括如下步骤Ⅰ至步骤Ⅷ:
步骤Ⅰ、根据所述透明多面体的正面的各个位置的反射光方向在色散贴图中采样,获取所述透明多面体的正面的各个位置的第一颜色 分量。
步骤Ⅱ、根据所述透明多面体的正面的各个位置的反射光方向和环境光源,获取所述透明多面体的正面的各个位置的第二颜色分量。
步骤Ⅲ、对透明多面体的正面的各个位置的第一颜色分量和第二颜色分量求外积,获取透明多面体的正面的各个位置的第四颜色分量。
步骤Ⅳ、根据第二权重系数对所述透明多面体的正面的各个位置的第一颜色分量和第四颜色分量进行加权混合,获取所述透明多面体的正面的各个位置的第五颜色分量。
步骤Ⅴ、根据所述透明多面体的正面的各个位置的反射光方向在所述环境贴图中采样,获取所述透明多面体的正面的各个位置的第三颜色分量。
步骤Ⅵ、对透明多面体的正面的各个位置的第五颜色分量和第三颜色分量求外积,获取透明多面体的正面的各个位置的反射光颜色。
步骤Ⅶ、根据所述透明多面体的正面的各个位置的折射光方向在所述内部渲染效果贴图中采样,获取所述透明多面体的正面的各个位置的折射光颜色。
步骤Ⅷ、根据菲涅尔系数对所述透明多面体的正面的各个位置的反射光颜色和折射光颜色进行加权混合,获取所述透明多面体的正面的各个位置的颜色。
返回图1,步骤S15、根据第二权重系数对所述透明多面体的背面的各个位置的颜色和所述透明多面体的正面的各个位置的颜色进行加权混合,获取所述透明多面体的各个位置的渲染颜色。
具体的,可以以预设权重系数对透明多面体的背面的各个位置的颜色和所述透明多面体的正面的各个位置的颜色进行加权混合,获取所述透明多面体的各个位置的渲染颜色。
综上,如图8所示,获取所述透明多面体的各个位置的渲染颜色的实现方式可以包括:
首先,根据图5所示步骤流程获取透明多面体的背面的各个位置 的颜色。其次,根据图7所示步骤流程获取透明多面体的正面的各个位置的颜色。然后,对透明多面体的背面的各个位置的颜色和透明多面体的正面的各个位置的颜色进行加权混合,得到透明多面体的各个位置的渲染颜色。具体实现原理和上文描述类似,在此不再赘述。
返回图1,步骤S16、根据所述透明多面体的各个位置的渲染颜色对所述透明多面体进行渲染。
本发明实施例提供的透明多面体的渲染方法在进行透明多面体的渲染时,首先获取透明多面体的背面的各个位置的反射光颜色,其次根据所述透明多面体的背面的各个位置的折射光方向在背景图像或环境贴图中采样,获取所述透明多面体的背面的各个位置的折射光颜色,然后根据所述透明多面体的背面的各个位置的反射光颜色和折射光颜色,获取所述透明多面体的背面的各个位置的颜色,再获取所述透明多面体的正面的各个位置的颜色,并根据第一权重系数对所述透明多面体的背面的各个位置的颜色和所述透明多面体的正面的各个位置的颜色进行加权混合,获取所述透明多面体的各个位置的渲染颜色;最后根据所述透明多面体的各个位置的渲染颜色对所述透明多面体进行渲染。由于本发明实施例提供的透明多面体的渲染方法在渲染透明多面体时可以根据所述透明多面体的背面的各个位置的折射光方向在对真实场景进行图像采集获取的背景图像上采样获取透明多面体的背面的各个位置的折射光颜色,因此本发明实施例渲染的透明多面体的视觉效果可以根据实际场景进行适应性的变化,提升透明多面体的真实感。
基于同一发明构思,作为对上述方法的实现,本发明实施例还提供了一种透明多面体的渲染装置,该装置实施例与前述方法实施例对应,为便于阅读,本装置实施例不再对前述方法实施例中的细节内容进行逐一赘述,但应当明确,本实施例中的透明多面体的渲染装置能够对应实现前述方法实施例中的全部内容。
本发明实施例提供了一种透明多面体的渲染装置。图9为该透明 多面体的渲染装置的结构示意图,如图9所示,该透明多面体的渲染装置900包括:
反射光颜色获取单元91,用于获取透明多面体的背面的各个位置的反射光颜色;
折射光颜色获取单元92,用于根据所述透明多面体的背面的各个位置的折射光方向在背景图像或环境贴图中采样,获取所述透明多面体的背面的各个位置的折射光颜色,所述背景图像为对真实场景进行图像采集获取的图像,所述背景图像与所述透明多面体的背面相对;
第一颜色获取单元93,用于根据所述透明多面体的背面的各个位置的反射光颜色和所述透明多面体的背面的各个位置的折射光颜色,获取所述透明多面体的背面的各个位置的颜色;
第二颜色获取单元94,用于获取所述透明多面体的正面的各个位置的颜色;
第三颜色获取单元95,用于根据第一权重系数对所述透明多面体的背面的各个位置的颜色和所述透明多面体的正面的各个位置的颜色进行加权混合,获取所述透明多面体的各个位置的渲染颜色;
渲染单元96,用于根据所述透明多面体的各个位置的渲染颜色对所述透明多面体进行渲染。
作为本发明实施例一种可选的实施方式,所述反射光颜色获取单元91,具体用于根据透明多面体的背面的各个位置的坐标,在对比度控制贴图中采样,获取所述透明多面体的背面的各个位置的第一颜色分量;根据所述透明多面体的背面的各个位置的反射光方向在内部渲染效果贴图中采样,获取所述透明多面体的背面的各个位置的第二颜色分量;获取所述透明多面体的背面的各个位置的第一颜色分量和第二颜色分量的外积作为所述透明多面体的背面的各个位置的反射光颜色。
作为本发明实施例一种可选的实施方式,所述第一颜色获取单元93,具体用于根据菲涅尔系数对所述透明多面体的背面的各个位置的 反射光颜色和所述透明多面体的背面的各个位置的折射光颜色进行加权混合,获取所述透明多面体的背面的各个位置的颜色。
作为本发明实施例一种可选的实施方式,所述第二颜色获取单元94,具体用于获取所述透明多面体的正面的各个位置的反射光颜色;获取所述透明多面体的正面的各个位置的折射光颜色;根据所述透明多面体的正面的各个位置的反射光颜色和所述透明多面体的正面的各个位置的折射光颜色,获取所述透明多面体的正面的各个位置的颜色。
作为本发明实施例一种可选的实施方式,所述第二颜色获取单元94,具体用于根据所述透明多面体的正面的各个位置的反射光方向在色散贴图中采样,获取所述透明多面体的正面的各个位置的第一颜色分量;根据所述透明多面体的正面的各个位置的反射光方向和环境光源,获取所述透明多面体的正面的各个位置的第二颜色分量;根据所述透明多面体的正面的各个位置的反射光方向在所述环境贴图中采样,获取所述透明多面体的正面的各个位置的第三颜色分量;获取所述透明多面体的正面的各个位置的第四颜色分量,所述透明多面体的正面的各个位置的第四颜色分量为所述第一颜色分量与所述第二颜色分量的外积;根据第二权重系数对所述透明多面体的正面的各个位置的第一颜色分量和所述透明多面体的正面的各个位置的第四颜色分量进行加权混合,获取所述透明多面体的正面的各个位置的第五颜色分量;获取所述透明多面体的正面的各个位置的第五颜色分量与所述透明多面体的正面的各个位置的第三颜色分量的外积作为所述透明多面体的正面的各个位置的反射光颜色。
作为本发明实施例一种可选的实施方式,所述第二颜色获取单元94,具体用于根据所述透明多面体的正面的各个位置的折射光方向在所述内部渲染效果贴图中采样,获取所述透明多面体的正面的各个位置的折射光颜色。
作为本发明实施例一种可选的实施方式,所述第二颜色获取单元94,具体用于根据菲涅尔系数对所述透明多面体的正面的各个位置的 反射光颜色和所述透明多面体的正面的各个位置的折射光颜色进行加权混合,获取所述透明多面体的正面的各个位置的颜色。
基于同一发明构思,本发明实施例还提供了一种电子设备。图10为本发明实施例提供的电子设备的结构示意图,如图10所示,本实施例提供的电子设备包括:存储器101和处理器102,所述存储器101用于存储计算机程序;所述处理器102用于在调用执行计算机程序时,使得所述电子设备实现上述实施例提供的透明多面体的渲染方法。
本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,当所述计算机程序被计算设备执行时,使得所述计算设备实现上述实施例提供的透明多面体的渲染方法。
本发明实施例还提供一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机实现上述实施例提供的透明多面体的渲染方法。
本领域技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质上实施的计算机程序产品的形式。
处理器可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。存储器是计算机可读介质的示例。
计算机可读介质包括永久性和非永久性、可移动和非可移动存储 介质。存储介质可以由任何方法或技术来实现信息存储,信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。根据本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。
Claims (11)
- 一种透明多面体的渲染方法,其特征在于,包括:获取透明多面体的背面的各个位置的反射光颜色;根据所述透明多面体的背面的各个位置的折射光方向在背景图像或环境贴图中采样,获取所述透明多面体的背面的各个位置的折射光颜色,所述背景图像为对真实场景进行图像采集获取的图像,所述背景图像与所述透明多面体的背面相对;根据所述透明多面体的背面的各个位置的反射光颜色和所述透明多面体的背面的各个位置的折射光颜色,获取所述透明多面体的背面的各个位置的颜色;获取所述透明多面体的正面的各个位置的颜色;根据第一权重系数对所述透明多面体的背面的各个位置的颜色和所述透明多面体的正面的各个位置的颜色进行加权混合,获取所述透明多面体的各个位置的渲染颜色;根据所述透明多面体的各个位置的渲染颜色对所述透明多面体进行渲染。
- 根据权利要求1所述的方法,其特征在于,所述获取透明多面体的背面的各个位置的反射光颜色,包括:根据透明多面体的背面的各个位置的坐标,在对比度控制贴图中采样,获取所述透明多面体的背面的各个位置的第一颜色分量;根据所述透明多面体的背面的各个位置的反射光方向在内部渲染效果贴图中采样,获取所述透明多面体的背面的各个位置的第二颜色分量;获取所述透明多面体的背面的各个位置的第一颜色分量和第二颜色分量的外积作为所述透明多面体的背面的各个位置的反射光颜色。
- 根据权利要求1所述的方法,其特征在于,所述根据所述透明多面体的背面的各个位置的反射光颜色和所述透明多面体的背面的各 个位置的折射光颜色,获取所述透明多面体的背面的各个位置的颜色,包括:根据菲涅尔系数对所述透明多面体的背面的各个位置的反射光颜色和所述透明多面体的背面的各个位置的折射光颜色进行加权混合,获取所述透明多面体的背面的各个位置的颜色。
- 根据权利要求1-3任一项所述的方法,其特征在于,所述获取所述透明多面体的正面的各个位置的颜色,包括:获取所述透明多面体的正面的各个位置的反射光颜色;获取所述透明多面体的正面的各个位置的折射光颜色;根据所述透明多面体的正面的各个位置的反射光颜色和所述透明多面体的正面的各个位置的折射光颜色,获取所述透明多面体的正面的各个位置的颜色。
- 根据权利要求4所述的方法,其特征在于,所述获取所述透明多面体的正面的各个位置的反射光颜色,包括:根据所述透明多面体的正面的各个位置的反射光方向在色散贴图中采样,获取所述透明多面体的正面的各个位置的第一颜色分量;根据所述透明多面体的正面的各个位置的反射光方向和环境光源,获取所述透明多面体的正面的各个位置的第二颜色分量;根据所述透明多面体的正面的各个位置的反射光方向在所述环境贴图中采样,获取所述透明多面体的正面的各个位置的第三颜色分量;获取所述透明多面体的正面的各个位置的第四颜色分量,所述透明多面体的正面的各个位置的第四颜色分量为所述第一颜色分量与所述第二颜色分量的外积;根据第二权重系数对所述透明多面体的正面的各个位置的第一颜色分量和所述透明多面体的正面的各个位置的第四颜色分量进行加权混合,获取所述透明多面体的正面的各个位置的第五颜色分量;获取所述透明多面体的正面的各个位置的第五颜色分量与所述透明多面体的正面的各个位置的第三颜色分量的外积作为所述透明多面 体的正面的各个位置的反射光颜色。
- 根据权利要求4所述的方法,其特征在于,所述获取所述透明多面体的正面的各个位置的折射光颜色,包括:根据所述透明多面体的正面的各个位置的折射光方向在内部渲染效果贴图中采样,获取所述透明多面体的正面的各个位置的折射光颜色。
- 根据权利要求4所述的方法,其特征在于,所述根据所述透明多面体的正面的各个位置的反射光颜色和所述透明多面体的正面的各个位置的折射光颜色,获取所述透明多面体的正面的各个位置的颜色,包括:根据菲涅尔系数对所述透明多面体的正面的各个位置的反射光颜色和所述透明多面体的正面的各个位置的折射光颜色进行加权混合,获取所述透明多面体的正面的各个位置的颜色。
- 一种透明多面体的渲染装置,其特征在于,包括:反射光颜色获取单元,用于获取透明多面体的背面的各个位置的反射光颜色;折射光颜色获取单元,用于根据所述透明多面体的背面的各个位置的折射光方向在背景图像或环境贴图中采样,获取所述透明多面体的背面的各个位置的折射光颜色,所述背景图像为对真实场景进行图像采集获取的图像,所述背景图像与所述透明多面体的背面相对;第一颜色获取单元,用于根据所述透明多面体的背面的各个位置的反射光颜色和所述透明多面体的背面的各个位置的折射光颜色,获取所述透明多面体的背面的各个位置的颜色;第二颜色获取单元,用于获取所述透明多面体的正面的各个位置的颜色;第三颜色获取单元,用于根据第一权重系数对所述透明多面体的背面的各个位置的颜色和所述透明多面体的正面的各个位置的颜色进行加权混合,获取所述透明多面体的各个位置的渲染颜色;渲染单元,用于根据所述透明多面体的各个位置的渲染颜色对所述透明多面体进行渲染。
- 一种电子设备,其特征在于,包括:存储器和处理器,所述存储器用于存储计算机程序;所述处理器用于在调用所述计算机程序时,使得所述电子设备实现权利要求1-7任一项所述的透明多面体的渲染方法。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,当所述计算机程序被计算设备执行时,使得所述计算设备实现权利要求1-7任一项所述的透明多面体的渲染方法。
- 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机实现权利要求1-7任一项所述的透明多面体的渲染方法。
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US18/567,263 US20240265623A1 (en) | 2021-07-30 | 2022-07-20 | Method and apparatus for rendering transparent polyhedron |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110875234.0 | 2021-07-30 | ||
| CN202110875234.0A CN115700774A (zh) | 2021-07-30 | 2021-07-30 | 一种透明多面体的渲染方法及装置 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2023005757A1 true WO2023005757A1 (zh) | 2023-02-02 |
Family
ID=85087519
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2022/106692 Ceased WO2023005757A1 (zh) | 2021-07-30 | 2022-07-20 | 一种透明多面体的渲染方法及装置 |
Country Status (3)
| Country | Link |
|---|---|
| US (1) | US20240265623A1 (zh) |
| CN (1) | CN115700774A (zh) |
| WO (1) | WO2023005757A1 (zh) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070139408A1 (en) * | 2005-12-19 | 2007-06-21 | Nokia Corporation | Reflective image objects |
| CN102737404A (zh) * | 2011-05-06 | 2012-10-17 | 新奥特(北京)视频技术有限公司 | 一种实现透明三维物体渲染的方法 |
| CN111899325A (zh) * | 2020-08-13 | 2020-11-06 | 网易(杭州)网络有限公司 | 晶石模型的渲染方法、装置、电子设备及存储介质 |
| CN112200902A (zh) * | 2020-09-30 | 2021-01-08 | 北京达佳互联信息技术有限公司 | 图像渲染方法、装置、电子设备及存储介质 |
Family Cites Families (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5459797A (en) * | 1991-03-30 | 1995-10-17 | Kabushiki Kaisha Toshiba | Character reading system |
| JPH06302208A (ja) * | 1993-03-26 | 1994-10-28 | Rotsuso:Kk | 透光性の多面体を用いた光分散装置 |
| JP2006318438A (ja) * | 2005-05-16 | 2006-11-24 | Kaadeikku Corporation:Kk | 可変型照明モデルレンダリング回路 |
| US8456698B2 (en) * | 2009-07-31 | 2013-06-04 | Xerox Corporation | Adaptive illumination independent matching of out of gamut spot colors using various gamut mapping techniques |
| US20110191334A1 (en) * | 2010-02-04 | 2011-08-04 | Microsoft Corporation | Smart Interface for Color Layout Sensitive Image Search |
| US8988564B2 (en) * | 2011-09-09 | 2015-03-24 | Apple Inc. | Digital camera with light splitter |
| WO2016135498A1 (en) * | 2015-02-27 | 2016-09-01 | Arm Limited | Graphics processing systems |
| AU2015207825A1 (en) * | 2015-07-28 | 2017-02-16 | Canon Kabushiki Kaisha | Method, apparatus and system for encoding video data for selected viewing conditions |
| GB2543766B (en) * | 2015-10-26 | 2018-02-14 | Advanced Risc Mach Ltd | Graphics processing systems |
| CN106652007B (zh) * | 2016-12-23 | 2020-04-17 | 网易(杭州)网络有限公司 | 虚拟海面渲染方法及系统 |
| US11455769B2 (en) * | 2020-01-22 | 2022-09-27 | Vntana, Inc. | Container for physically based rendering |
-
2021
- 2021-07-30 CN CN202110875234.0A patent/CN115700774A/zh active Pending
-
2022
- 2022-07-20 US US18/567,263 patent/US20240265623A1/en active Pending
- 2022-07-20 WO PCT/CN2022/106692 patent/WO2023005757A1/zh not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070139408A1 (en) * | 2005-12-19 | 2007-06-21 | Nokia Corporation | Reflective image objects |
| CN102737404A (zh) * | 2011-05-06 | 2012-10-17 | 新奥特(北京)视频技术有限公司 | 一种实现透明三维物体渲染的方法 |
| CN111899325A (zh) * | 2020-08-13 | 2020-11-06 | 网易(杭州)网络有限公司 | 晶石模型的渲染方法、装置、电子设备及存储介质 |
| CN112200902A (zh) * | 2020-09-30 | 2021-01-08 | 北京达佳互联信息技术有限公司 | 图像渲染方法、装置、电子设备及存储介质 |
Non-Patent Citations (1)
| Title |
|---|
| WU BOJIAN, HUANG HUI: "Survey on 3D Reconstruction of Transparent Objects", JOURNAL OF COMPUTER-AIDED DESIGN & COMPUTER GRAPHICS, GAI-KAN BIAN-WEI-HUI, BEIJING, CN, vol. 32, no. 2, 29 February 2020 (2020-02-29), CN , pages 173 - 180, XP093028938, ISSN: 1003-9775, DOI: 10.3724/SP.J.1089.2020.18101 * |
Also Published As
| Publication number | Publication date |
|---|---|
| US20240265623A1 (en) | 2024-08-08 |
| CN115700774A (zh) | 2023-02-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN113674389B (zh) | 场景渲染方法、装置、电子设备及存储介质 | |
| WO2022116659A1 (zh) | 一种体积云渲染方法、装置、程序和可读介质 | |
| CN111899325B (zh) | 晶石模型的渲染方法、装置、电子设备及存储介质 | |
| CN113617024B (zh) | 水体面渲染方法、装置、设备及存储介质 | |
| CN114708154B (zh) | 像素滤波器、用于对像素的序列进行滤波的方法 | |
| CN107644453B (zh) | 一种基于物理着色的渲染方法及系统 | |
| Zhou et al. | Accurate depth of field simulation in real time | |
| CN114155338B (zh) | 图像渲染方法、装置及电子设备 | |
| CN107665501A (zh) | 一种实时变焦光线追踪渲染引擎 | |
| CN113129420B (zh) | 一种基于深度缓冲加速的光线追踪渲染方法 | |
| CN114299212B (zh) | 冰块模型渲染方法及装置 | |
| CN117523070A (zh) | 一种基于光线追踪的计算机图形渲染方法和系统 | |
| CN114307133B (zh) | 一种游戏中的显示控制方法和装置 | |
| Rodriguez et al. | Pola4All: survey of polarimetric applications and an open-source toolkit to analyze polarization | |
| Rademacher | Ray tracing: graphics for the masses | |
| CN113947656B (zh) | 一种透明多面体的渲染方法及装置 | |
| CN110992457B (zh) | 图像处理方法、装置及设备 | |
| CN112819929B (zh) | 渲染水面方法及装置、电子设备、存储介质 | |
| WO2023005757A1 (zh) | 一种透明多面体的渲染方法及装置 | |
| CN116152420A (zh) | 一种渲染方法及装置 | |
| CN115428029A (zh) | 用于3d环境中的实时光线跟踪的系统和方法 | |
| CN114748874B (zh) | 水体反射处理方法、装置、设备及存储介质 | |
| Seibt et al. | Multidimensional image morphing-fast image-based rendering of open 3D and VR environments | |
| JP2011138444A (ja) | 薄膜鏡面反射回路 | |
| CN114288650B (zh) | 虚拟场景图像处理方法、展示方法、装置、电子设备 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22848362 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 21/06/2024) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 22848362 Country of ref document: EP Kind code of ref document: A1 |