CN102243769A - 3D (three-dimensional) volume light dynamic implementation method and device - Google Patents

3D (three-dimensional) volume light dynamic implementation method and device Download PDF

Info

Publication number
CN102243769A
CN102243769A CN2011102106810A CN201110210681A CN102243769A CN 102243769 A CN102243769 A CN 102243769A CN 2011102106810 A CN2011102106810 A CN 2011102106810A CN 201110210681 A CN201110210681 A CN 201110210681A CN 102243769 A CN102243769 A CN 102243769A
Authority
CN
China
Prior art keywords
volume
light
trapezoidal
volume light
stereoscopic model
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.)
Granted
Application number
CN2011102106810A
Other languages
Chinese (zh)
Other versions
CN102243769B (en
Inventor
张颖
李星
魏文辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TCL Corp
Original Assignee
TCL Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TCL Corp filed Critical TCL Corp
Priority to CN201110210681.0A priority Critical patent/CN102243769B/en
Publication of CN102243769A publication Critical patent/CN102243769A/en
Application granted granted Critical
Publication of CN102243769B publication Critical patent/CN102243769B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to the technical field of 3D (three-dimensional) image processing and discloses a 3D (three-dimensional) volume light dynamic implementation method and device. The method comprises the following steps of: establishing a volume light plane morphological graph with an Alpha channel; creating a three-dimensional volume light model and pasting the graph; creating a texture mixing effect drawn by volume light; automatically adjusting the three-dimensional volume light model to a corresponding position according to preset size and rotation angles; and automatically and dynamically changing the effect of the volume light. In the invention, on the basis of OpenGL and other graph program interfaces, the volume light is made and a dynamic effect is achieved in a simple way, therefore, the making efficiency of the volume light is increased, the 3D volume light dynamic effect can be achieved, and convenience is provided for users.

Description

3D volume photokinesis implementation method and device
Technical field
The present invention relates to the 3D rendering processing technology field, in particular a kind of 3D volume photokinesis implementation method and device.
Background technology
Volume is when only the shading object is by light source irradiation, the mode leakage of the light that presents around it.For example the sun shines on the tree, can see through from the slit of leaf and form light beam.Why be referred to as volume light, be because the illumination under this special efficacy compare in the past illumination in the recreation to the people visually with the sensation in space.
In the 3D scene, often need use volume light.For example, the effect that light gets off from the leaf slit thoroughly, the solar radiation effect of windowsill, perhaps lighting effects of stage or the like.And the technology of present volume optical processing adopts softwares such as 3DMax directly to make mostly.Such words is difficult to multiplexing, also be difficult to the effect of real time altering volume light, and make efficiency is low.Certainly the dynamic effect of more difficult realization volume light (for example the color of stage volume light, bright all be dynamically to change, the volume light of sunlight also can be different and have any different along with the weather cloud).
Therefore, prior art has yet to be improved and developed.
Summary of the invention
The technical problem to be solved in the present invention is, above-mentioned defective at prior art, a kind of 3D volume photokinesis implementation method and device are provided, it can succinct mode create volume light, improved the make efficiency of volume light, and can realize 3D volume photokinesis effect, provide users with the convenient.
The technical scheme that technical solution problem of the present invention is adopted is as follows:
A kind of 3D volume photokinesis implementation method wherein, comprises step:
A, reception user's operational order is created the volume optical plane aspect graph of band Alpha passage, and wherein Alpha represents the transparence information of light;
The simulating shape volume light of B, employing trapezoidal volume is to create the stereoscopic model of volume light;
C, volume light stereoscopic model is carried out texture mapping according to the volume optical plane aspect graph of creating;
D, all adopt apex portion to carry out material to the color of each face of volume light stereoscopic model and Alpha to mix with the product of texture part;
Position, size and the anglec of rotation of the volume light stereoscopic model that E, basis are preset are adjusted to corresponding position to volume light stereoscopic model;
F, the predetermined operational order of basis on-the-fly modify the vertex color of volume light stereoscopic model, color to volume light on-the-fly modifies, and on-the-fly modify volume light stereoscopic model summit Alpha, the transparency of volume light is on-the-fly modified, volume light is carried out the change of dynamic effect.
Described 3D volume photokinesis implementation method, wherein, the various volume light of the simulating shape of the employing trapezoidal volume among the described step B specifically comprises with the stereoscopic model of creating volume light:
B10, according to the last bottom side length of the trapezoidal side of the trapezoidal volume shape of setting, highly, and bottom long parameter, a trapezoidal side of establishment volume light;
B20, create this trapezoidal volume model by the related function that calls in OpenGL or the Direct3D then.
Described 3D volume photokinesis implementation method, wherein, described step B20 also comprises:
B21, the complexity of this trapezoidal volume simulation volume light is set at N, wherein, N 〉=1, and N is a positive integer; Described complexity is expressed as this trapezoidal volume except upper bottom surface and bottom surface, also uses what trapezoidal longitudinally sides to make up;
B22, count M=(N+1 according to the longitudinal surface of the trapezoidal volume shape of the volume light of creating) * 2, set the complexity N of volume light;
B23, with the size of the complexity N that sets as parameter, import in this related function with parametric form when the related function in calling OpenGL or Direct3D is created this trapezoidal volume model, to create the stereoscopic model of volume light.
Described 3D volume photokinesis implementation method, wherein, according to the volume optical plane aspect graph of creating each face of volume light stereoscopic model is carried out texture mapping and specifically comprises among the described step C:
C20, earlier adopt the volume optical plane aspect graph created in the steps A that the upper bottom surface of the volume light stereoscopic model created among the step B is carried out texture mapping, and bottom surface does not carry out texture mapping;
C21, for each texture mapping of trapezoidal side longitudinally of volume light stereoscopic model, the effect that all adopts the point at this trapezoidal side and upper bottom surface intersection place to extend to this trapezoidal side is carried out texture mapping.
Described 3D volume photokinesis implementation method, wherein, the vertex color among the described step D is the color of the point of each face of volume light stereoscopic model; Texture color is the color of the point of volume optical plane aspect graph.
Described 3D volume photokinesis implementation method, wherein, described step e also comprises: on-the-fly modify the texture matrix of volume optical plane aspect graph according to predetermined operational order, the conversion that comes CONTROL VOLUME optical plane form picture is so that dynamic variation appears in this volume light when playing up.
A kind of 3D volume photokinesis implement device wherein, comprising:
Receiver module, the operational order that is used to receive the user is created the volume optical plane aspect graph of band Alpha passage, and wherein Alpha represents the transparence information of light;
Volume optical mode type creation module is used to adopt the simulating shape volume light of trapezoidal volume to create the stereoscopic model of volume light;
The pinup picture processing module is used for according to the volume optical plane aspect graph of creating volume light stereoscopic model being carried out texture mapping;
Draw material hybrid processing module, be used for all adopting apex portion to carry out material and mix with the product of texture part to the color of each face of volume light stereoscopic model and Alpha;
Volume optical position adjustment unit is used for according to position, size and the anglec of rotation of default volume light stereoscopic model volume light stereoscopic model being adjusted to corresponding position;
The dynamic process unit, be used for on-the-fly modifying the vertex color of volume light stereoscopic model according to predetermined operational order, color to volume light on-the-fly modifies, and on-the-fly modify volume light stereoscopic model summit Alpha, transparency to volume light on-the-fly modifies, volume light is carried out the change of dynamic effect.
Described 3D volume photokinesis implement device, wherein, described volume optical mode type creation module comprises:
Trapezoidal side creating unit, be used for according to the last bottom side length of the trapezoidal side of the trapezoidal volume shape of setting, highly, and bottom long parameter, a trapezoidal side of establishment volume light;
Trapezoidal volume model creation unit is used for creating this trapezoidal volume model by the related function that calls in OpenGL or the Direct3D.
Described 3D volume photokinesis implement device, wherein, described volume optical mode type creation module also comprises:
First setup unit is used for the complexity of this trapezoidal volume simulation volume light is set at N, wherein, and N 〉=1, and N is a positive integer; Described complexity is expressed as this trapezoidal volume except upper bottom surface and bottom surface, also uses what trapezoidal longitudinally sides to make up;
Second setup unit is used for counting M=(N+1 according to the longitudinal surface of the trapezoidal volume shape of the volume light of creating) * 2, set the complexity N of volume light;
The stereoscopic model creating unit, the size that is used for the complexity N that will set is imported in this related function with parametric form when the related function in calling OpenGL or Direct3D is created this trapezoidal volume model, to create the stereoscopic model of volume light as parameter.
Described 3D volume photokinesis implement device, wherein, it also comprises:
The dynamic texture processing module is used for the texture matrix that the predetermined operational order of basis on-the-fly modifies volume optical plane aspect graph, and the conversion that comes CONTROL VOLUME optical plane form picture is so that dynamic the variation appears in this volume light when playing up.
3D volume photokinesis implementation method provided by the present invention and device based on OpenGL figures routine interface, adopt simple mode, make volume light and realize dynamic effect, improved the make efficiency of volume light, and can realize 3D volume photokinesis effect, provided users with the convenient.Be easy in various recreation, furniture display systems etc. are local to be used.And can be easy to switch various light effect.
Description of drawings
Fig. 1 is the process flow diagram of 3D volume photokinesis implementation method of the present invention preferred embodiment.
Fig. 2 is the effect synoptic diagram of the volume optical plane aspect graph of 3D volume photokinesis implementation method of the present invention preferred embodiment.
Fig. 3 is the schematic side view of the trapezoidal volume model of 3D volume photokinesis implementation method of the present invention preferred embodiment.
Fig. 4 is that the trapezoidal volume of 3D volume photokinesis implementation method of the present invention preferred embodiment uses six trapezoidal longitudinally sides to make up the synoptic diagram of volume light stereoscopic model.
To be 3D volume photokinesis implementation method of the present invention preferred embodiment carry out effect synoptic diagram after the texture mapping to volume light stereoscopic model to Fig. 5.
Fig. 6 is the functional schematic block diagram of 3D volume photokinesis implement device of the present invention preferred embodiment.
Fig. 7 is the inner theory diagram of the volume optical mode type creation module of 3D volume photokinesis implement device of the present invention preferred embodiment.
Embodiment
For making purpose of the present invention, technical scheme and advantage clearer, clear and definite, below develop simultaneously with reference to accompanying drawing that the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
A kind of 3D volume photokinesis implementation method that the embodiment of the invention provided as shown in Figure 1, mainly may further comprise the steps:
Step S100, reception user's operational order is created the volume optical plane aspect graph of band Alpha passage, and wherein Alpha represents the transparence information of light.
In the embodiment of the invention, the plane configuration figure of the volume light of band Alpha passage (alpha channel) has described volume light at the 2D in some cross sections aspect graph, and the Alpha passage is one 8 a gray scale passage, this passage comes transparence information in the document image with 256 grades of gray scales, bright, the translucent and zone of opacity of definition full impregnated, wherein black expression full impregnated is bright, and the ash expression is translucent, represents opaque in vain.Between the general Alpha value 0 ~ 1, that is to say that it is the strongest that Alpha represents never that from 0 ~ 1 light gradually becomes light.
In the Flame Image Process of creating volume optical plane aspect graph, can be by setting Alpha value, (Alpha is that 0 part can think that full impregnated is bright to the shape of light in the corresponding setting volume optical plane aspect graph among the figure, does not promptly have light; Alpha is that 1 part then can think opaque, and promptly light is the strongest).For example, for the volume light of cylindrical shape, the Flame Image Process of its corresponding volume optical plane aspect graph, as long as the Alpha of part beyond the circle in the image is set to 0, and in the circle partly Alpha be set to the interval (0,1] in value get final product.In the present embodiment, the volume optical plane aspect graph of the band Alpha passage of establishment as shown in Figure 2, wherein, it is that 0(does not promptly have light that black part is divided expression Alpha), white portion represent Alpha interval (0,1] in (i.e. representative has the light zone).
The simulating shape volume light of step S200, employing trapezoidal volume is to create the stereoscopic model of volume light.
Take the shape of trapezoidal volume to simulate volume light in the present embodiment.As shown in Figure 3, in the present embodiment, under based on environment such as OpenGL or Direct3D, can adopt four identical trapezoidal sides to surround this trapezoidal volume, so, determine the parameter (trapezoidal last bottom side length W1, trapezoidal height H, trapezoidal the length of side W2 that goes to the bottom) of a trapezoidal side, can create this trapezoidal volume model by the related function that calls in OpenGL or the Direct3D, and concrete associated functional calls is a techniques well known, does not repeat them here.
Further, in order to increase the fine and smooth in other words sense of fidelity of this trapezoidal volume simulation volume light, often need to set the complexity of this trapezoidal volume simulation volume light, complexity is high more, and this trapezoidal volume simulation volume light is all the more true just.Generally, the complexity of this trapezoidal volume simulation volume light can be set at N, wherein, and N 〉=1, and N is a positive integer.
To describe the complexity of this trapezoidal volume simulation volume light below in detail, in the present embodiment, complexity has been described this trapezoidal volume except upper bottom surface and bottom surface, also uses what trapezoidal longitudinally sides to make up.Usually, when complexity is N, this longitudinally the quantity of trapezoidal side be M, wherein, M=(N+1) * 2.
When complexity N was 1, this trapezoidal volume only need use four trapezoidal longitudinally sides to make up with simulation volume light;
When complexity N was 2, this trapezoidal volume used six trapezoidal longitudinally sides to make up with simulation volume light, except four trapezoidal longitudinally sides on every side, also has the trapezoidal longitudinally side of two inner crosses, as shown in Figure 4;
When complexity N was 3, this trapezoidal volume used 8 trapezoidal longitudinally sides to make up to simulate this volume light, except four trapezoidal longitudinally sides on every side, also has inner four trapezoidal longitudinally sides that are combined into groined type.
In like manner, when complexity N continues to increase, this trapezoidal volume will use more trapezoidal longitudinally side to make up with simulation volume light, that is to say, when the trapezoidal longitudinally number of sides of forming this trapezoidal volume also many more, this trapezoidal volume model is also just all the more complicated, and this trapezoidal volume simulation volume light is all the more true just.In this step, can when creating this trapezoidal volume model, the related function in calling OpenGL or Direct3D import in this related function with the size of the complexity N that sets as parameter with parametric form.
Step S300, volume light stereoscopic model is carried out texture mapping according to the volume optical plane aspect graph of creating.
In this step, adopt earlier the volume optical plane aspect graph created among the step S100 that the upper bottom surface of the volume light stereoscopic model created among the step S200 is carried out texture mapping, and bottom surface does not carry out texture mapping; Each texture mapping of trapezoidal side longitudinally for volume light stereoscopic model, all adopt the point at this trapezoidal side and upper bottom surface intersection place to carry out texture mapping to the effect of this trapezoidal side extension, that is to say, after the upper bottom surface of volume light stereoscopic model carried out texture mapping with above-mentioned volume optical plane aspect graph, each of volume light stereoscopic model texture mapping of trapezoidal side longitudinally was equivalent to the effect of the point at each trapezoidal longitudinally side and this volume optical plane aspect graph intersection place to this trapezoidal side extension.
For example, when the complexity N of volume light stereoscopic model is 1, four trapezoidal longitudinally sides are arranged around the volume light stereoscopic model.At this time, the point at the texture mapping of four trapezoidal sides is just corresponding its trapezoidal separately side and above-mentioned volume optical plane aspect graph intersection place is along the extension effect of this trapezoidal side, and its rendering effect is as shown in Figure 5.
When the complexity N of long-pending light stereoscopic model continues to increase, volume light stereoscopic model except around four trapezoidal longitudinally sides, also can there be intersection the trapezoidal longitudinally side that increases newly of its inside with above-mentioned volume optical plane aspect graph.Pixel on this intersection is along the texture mapping of the extension effect trapezoidal side that just conduct should be newly-increased of the trapezoidal side that should increase newly.
When this step is used OpenGL in reality, can use the UV coordinate of texture mapping to realize.Wherein, described UV coordinate is also referred to as texture coordinate or pinup picture coordinate, is used for the control chart picture and how projects object.The UV coordinate has defined the information of the position of each point on the picture in the development of games process, these points connect each other with the 3D model, to determine the position of surperficial texture mapping, the UV coordinate accurately corresponds to the model object surfaces with each point on the image exactly, carry out the smooth interpolation processing of image in interstitial site between points by software, and this is the known technology of this area, does not repeat them here.
Step S400, all adopt apex portion to carry out material to the color of each face of volume light stereoscopic model and Alpha to mix with the product of texture part.
In this step, the final color of each face of volume light stereoscopic model is all taked the product of vertex color and texture color, and Alpha also takes the product of summit Alpha and texture Alpha.Wherein, vertex color is the color of the point of each face of volume light stereoscopic model; Texture color is the color of the point of volume optical plane aspect graph.
Position, size and the anglec of rotation of the volume light stereoscopic model that step S500, basis are preset are adjusted to corresponding position to volume light stereoscopic model.
For example can be by adopting the OpenGL language, can preset position, size and the rotation angle information of volume light stereoscopic model easily, thereby volume light stereoscopic model be adjusted to corresponding position according to position, size and the anglec of rotation of default volume light stereoscopic model.
Step S600, the predetermined operational order of basis on-the-fly modify the vertex color of volume light stereoscopic model, color to volume light on-the-fly modifies, and on-the-fly modify volume light stereoscopic model summit Alpha, transparency to volume light on-the-fly modifies, volume light is carried out the change of dynamic effect.
Because in the rendered volume light time, the color of each face and Alpha have taked the product of apex portion and texture part.So during program is played up, can on-the-fly modify the color and the Alpha of model vertices part by the predetermined operational order of basis, thus the whole color effects of control, and realization on-the-fly modifies the color of volume light.Wherein, the operational order that operation that should be predetermined can be stored in advance for the appointment dynamic effect that volume light need reach, on-the-fly modify the vertex color of volume light stereoscopic model in the present embodiment according to the operational order that should be scheduled to, color to volume light on-the-fly modifies, and on-the-fly modify volume light stereoscopic model summit Alpha, transparency to volume light on-the-fly modifies, volume light is carried out the change of dynamic effect.
Further, because volume optical plane aspect graph has determined most volume light effects, so the embodiment of the invention also on-the-fly modifies the texture matrix of volume optical plane aspect graph according to predetermined operational order, come the conversion of CONTROL VOLUME optical plane form picture, so that dynamic the variation appears in this volume light when playing up.
Therefore, a kind of 3D volume photokinesis implementation method that the embodiment of the invention provides, it can succinct mode create volume light, has improved the make efficiency of volume light, and can realize 3D volume photokinesis effect, provides users with the convenient.
Based on the foregoing description, the embodiment of the invention also provides a kind of 3D volume photokinesis implement device, as shown in Figure 6, comprising:
Receiver module 610, the operational order that is used to receive the user is created the volume optical plane aspect graph of band Alpha passage, and wherein Alpha represents the transparence information of light; Specifically as described in the above-mentioned step S100.
Volume optical mode type creation module 620 is used to adopt the simulating shape volume light of trapezoidal volume to create the stereoscopic model of volume light; Specifically as described in the above-mentioned step S200.
Pinup picture processing module 630 is used for according to the volume optical plane aspect graph of creating volume light stereoscopic model being carried out texture mapping; Specifically as described in the above-mentioned step S300.
Material hybrid processing module 640 is used for all adopting apex portion to carry out material with the product of texture part to the color of each face of volume light stereoscopic model and Alpha and mixes; Specifically as described in the above-mentioned step S400.
Volume optical position adjustment unit 650 is used for according to position, size and the anglec of rotation of default volume light stereoscopic model volume light stereoscopic model being adjusted to corresponding position; Specifically as described in the above-mentioned step S500.
Dynamic process unit 660, be used for on-the-fly modifying the vertex color of volume light stereoscopic model according to predetermined operational order, color to volume light on-the-fly modifies, and on-the-fly modify volume light stereoscopic model summit Alpha, transparency to volume light on-the-fly modifies, volume light is carried out the change of dynamic effect; Specifically as described in the above-mentioned step S600.
Dynamic texture processing module 670 is used for the texture matrix that the predetermined operational order of basis on-the-fly modifies volume optical plane aspect graph, and the conversion that comes CONTROL VOLUME optical plane form picture is so that dynamic the variation appears in this volume light when playing up.
Wherein, as shown in Figure 7, described volume optical mode type creation module 620 comprises:
Trapezoidal side creating unit 621 is used for last bottom side length W1, height H and the length of side W2 parameter of going to the bottom according to the trapezoidal side of the trapezoidal volume shape of setting, and creates a trapezoidal side of volume light;
Trapezoidal volume model creation unit 622 is used for creating this trapezoidal volume model by the related function that calls in OpenGL or the Direct3D.
First setup unit 623 is used for the complexity of this trapezoidal volume simulation volume light is set at N, wherein, and N 〉=1, and N is a positive integer; Described complexity is expressed as this trapezoidal volume except upper bottom surface and bottom surface, also uses what trapezoidal longitudinally sides to make up;
Second setup unit 624 is used for counting M=(N+1 according to the longitudinal surface of the trapezoidal volume shape of the volume light of creating) * 2, set the complexity N of volume light;
Stereoscopic model creating unit 625, the size that is used for the complexity N that will set is imported in this related function with parametric form when the related function in calling OpenGL or Direct3D is created this trapezoidal volume model, to create the stereoscopic model of volume light as parameter.
In sum, 3D volume photokinesis implementation method provided by the present invention and device, based on OpenGL figures routine interface, adopt simple mode, make volume light and realize dynamic effect, improved the make efficiency of volume light, and can realize 3D volume photokinesis effect, provided users with the convenient.Be easy in various recreation, furniture display systems etc. are local to be used, and can be easy to switch various light effect.
Should be understood that application of the present invention is not limited to above-mentioned giving an example, for those of ordinary skills, can be improved according to the above description or conversion that all these improvement and conversion all should belong to the protection domain of claims of the present invention.

Claims (10)

1. a 3D volume photokinesis implementation method is characterized in that, comprises step:
A, reception user's operational order is created the volume optical plane aspect graph of band Alpha passage, and wherein Alpha represents the transparence information of light;
The simulating shape volume light of B, employing trapezoidal volume is to create the stereoscopic model of volume light;
C, volume light stereoscopic model is carried out texture mapping according to the volume optical plane aspect graph of creating;
D, all adopt apex portion to carry out material to the color of each face of volume light stereoscopic model and Alpha to mix with the product of texture part;
Position, size and the anglec of rotation of the volume light stereoscopic model that E, basis are preset are adjusted to corresponding position to volume light stereoscopic model;
F, the predetermined operational order of basis on-the-fly modify the vertex color of volume light stereoscopic model, color to volume light on-the-fly modifies, and on-the-fly modify volume light stereoscopic model summit Alpha, the transparency of volume light is on-the-fly modified, volume light is carried out the change of dynamic effect.
2. 3D volume photokinesis implementation method according to claim 1 is characterized in that, the various volume light of the simulating shape of the employing trapezoidal volume among the described step B specifically comprises with the stereoscopic model of creating volume light:
B10, according to the last bottom side length of the trapezoidal side of the trapezoidal volume shape of setting, highly, and bottom long parameter, a trapezoidal side of establishment volume light;
B20, create this trapezoidal volume model by the related function that calls in OpenGL or the Direct3D then.
3. 3D volume photokinesis implementation method according to claim 2 is characterized in that described step B20 also comprises:
B21, the complexity of this trapezoidal volume simulation volume light is set at N, wherein, N 〉=1, and N is a positive integer; Described complexity is expressed as this trapezoidal volume except upper bottom surface and bottom surface, also uses what trapezoidal longitudinally sides to make up;
B22, count M=(N+1 according to the longitudinal surface of the trapezoidal volume shape of the volume light of creating) * 2, set the complexity N of volume light;
B23, with the size of the complexity N that sets as parameter, import in this related function with parametric form when the related function in calling OpenGL or Direct3D is created this trapezoidal volume model, to create the stereoscopic model of volume light.
4. 3D volume photokinesis implementation method according to claim 1 is characterized in that, according to the volume optical plane aspect graph of creating each face of volume light stereoscopic model is carried out texture mapping and specifically comprise among the described step C:
C20, earlier adopt the volume optical plane aspect graph created in the steps A that the upper bottom surface of the volume light stereoscopic model created among the step B is carried out texture mapping, and bottom surface does not carry out texture mapping;
C21, for each texture mapping of trapezoidal side longitudinally of volume light stereoscopic model, the effect that all adopts the point at this trapezoidal side and upper bottom surface intersection place to extend to this trapezoidal side is carried out texture mapping.
5. 3D volume photokinesis implementation method according to claim 1 is characterized in that, the vertex color among the described step D is the color of the point of each face of volume light stereoscopic model; Texture color is the color of the point of volume optical plane aspect graph.
6. 3D volume photokinesis implementation method according to claim 1, it is characterized in that, described step e also comprises: the texture matrix that on-the-fly modifies volume optical plane aspect graph according to predetermined operational order, come the conversion of CONTROL VOLUME optical plane form picture, so that dynamic the variation appears in this volume light when playing up.
7. a 3D volume photokinesis implement device is characterized in that, comprising:
Receiver module, the operational order that is used to receive the user is created the volume optical plane aspect graph of band Alpha passage, and wherein Alpha represents the transparence information of light;
Volume optical mode type creation module is used to adopt the simulating shape volume light of trapezoidal volume to create the stereoscopic model of volume light;
The pinup picture processing module is used for according to the volume optical plane aspect graph of creating volume light stereoscopic model being carried out texture mapping;
Draw material hybrid processing module, be used for all adopting apex portion to carry out material and mix with the product of texture part to the color of each face of volume light stereoscopic model and Alpha;
Volume optical position adjustment unit is used for according to position, size and the anglec of rotation of default volume light stereoscopic model volume light stereoscopic model being adjusted to corresponding position;
The dynamic process unit, be used for on-the-fly modifying the vertex color of volume light stereoscopic model according to predetermined operational order, color to volume light on-the-fly modifies, and on-the-fly modify volume light stereoscopic model summit Alpha, transparency to volume light on-the-fly modifies, volume light is carried out the change of dynamic effect.
8. according to the described 3D volume of claim 7 photokinesis implement device, it is characterized in that described volume optical mode type creation module comprises:
Trapezoidal side creating unit, be used for according to the last bottom side length of the trapezoidal side of the trapezoidal volume shape of setting, highly, and bottom long parameter, a trapezoidal side of establishment volume light;
Trapezoidal volume model creation unit is used for creating this trapezoidal volume model by the related function that calls in OpenGL or the Direct3D.
9. described according to Claim 8 3D volume photokinesis implement device is characterized in that, described volume optical mode type creation module also comprises:
First setup unit is used for the complexity of this trapezoidal volume simulation volume light is set at N, wherein, and N 〉=1, and N is a positive integer; Described complexity is expressed as this trapezoidal volume except upper bottom surface and bottom surface, also uses what trapezoidal longitudinally sides to make up;
Second setup unit is used for counting M=(N+1 according to the longitudinal surface of the trapezoidal volume shape of the volume light of creating) * 2, set the complexity N of volume light;
The stereoscopic model creating unit, the size that is used for the complexity N that will set is imported in this related function with parametric form when the related function in calling OpenGL or Direct3D is created this trapezoidal volume model, to create the stereoscopic model of volume light as parameter.
10. according to the described 3D volume of claim 7 photokinesis implement device, it is characterized in that it also comprises:
The dynamic texture processing module is used for the texture matrix that the predetermined operational order of basis on-the-fly modifies volume optical plane aspect graph, and the conversion that comes CONTROL VOLUME optical plane form picture is so that dynamic the variation appears in this volume light when playing up.
CN201110210681.0A 2011-07-26 2011-07-26 3D (three-dimensional) volume light dynamic implementation method and device Active CN102243769B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110210681.0A CN102243769B (en) 2011-07-26 2011-07-26 3D (three-dimensional) volume light dynamic implementation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110210681.0A CN102243769B (en) 2011-07-26 2011-07-26 3D (three-dimensional) volume light dynamic implementation method and device

Publications (2)

Publication Number Publication Date
CN102243769A true CN102243769A (en) 2011-11-16
CN102243769B CN102243769B (en) 2014-06-25

Family

ID=44961807

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110210681.0A Active CN102243769B (en) 2011-07-26 2011-07-26 3D (three-dimensional) volume light dynamic implementation method and device

Country Status (1)

Country Link
CN (1) CN102243769B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105574918A (en) * 2015-12-24 2016-05-11 网易(杭州)网络有限公司 Material adding method and apparatus of 3D model, and terminal
CN105574920A (en) * 2016-01-28 2016-05-11 网易(杭州)网络有限公司 Texture map generating method, texture map generating device, texture synthesizing method and texture synthesizing device
CN106157357A (en) * 2015-04-01 2016-11-23 Tcl集团股份有限公司 A kind of dynamic luminous efficiency realization method and system accelerated based on GPU
CN106846449A (en) * 2017-02-13 2017-06-13 广州帕克西软件开发有限公司 The rendering intent and device of a kind of visual angle material or textures
CN107221023A (en) * 2017-05-27 2017-09-29 郑州云海信息技术有限公司 A kind of creation method and device of modularized equipment design sketch
CN108121885A (en) * 2018-01-23 2018-06-05 张成龙 A kind of production line of bar produces analogy method
CN109544674A (en) * 2018-11-21 2019-03-29 北京像素软件科技股份有限公司 A kind of volume light implementation method and device
CN109985384A (en) * 2019-03-21 2019-07-09 网易(杭州)网络有限公司 Textures dynamic adjusting method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
DAVID BAJT: "Real-time Simulation of Volumetric Stage Light", 《DIVA PORTAL数据库》 *
李小青: "基于MAX脚本和OSG的树木可视化算法研究与实现", 《中国优秀博硕士学位论文全文数据库 (硕士) 信息科技辑 》 *

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106157357B (en) * 2015-04-01 2020-02-07 Tcl集团股份有限公司 GPU acceleration-based dynamic light effect implementation method and system
CN106157357A (en) * 2015-04-01 2016-11-23 Tcl集团股份有限公司 A kind of dynamic luminous efficiency realization method and system accelerated based on GPU
CN105574918A (en) * 2015-12-24 2016-05-11 网易(杭州)网络有限公司 Material adding method and apparatus of 3D model, and terminal
CN105574918B (en) * 2015-12-24 2018-06-26 网易(杭州)网络有限公司 A kind of material adding method, device and the terminal of 3D models
CN105574920A (en) * 2016-01-28 2016-05-11 网易(杭州)网络有限公司 Texture map generating method, texture map generating device, texture synthesizing method and texture synthesizing device
CN105574920B (en) * 2016-01-28 2018-03-13 网易(杭州)网络有限公司 Texturing generation method and device, material synthetic method and device
CN106846449A (en) * 2017-02-13 2017-06-13 广州帕克西软件开发有限公司 The rendering intent and device of a kind of visual angle material or textures
CN106846449B (en) * 2017-02-13 2020-05-22 广州帕克西软件开发有限公司 Rendering method and device for visual angle material or map
CN107221023A (en) * 2017-05-27 2017-09-29 郑州云海信息技术有限公司 A kind of creation method and device of modularized equipment design sketch
CN108121885A (en) * 2018-01-23 2018-06-05 张成龙 A kind of production line of bar produces analogy method
CN109544674A (en) * 2018-11-21 2019-03-29 北京像素软件科技股份有限公司 A kind of volume light implementation method and device
CN109544674B (en) * 2018-11-21 2023-05-02 北京像素软件科技股份有限公司 Method and device for realizing volume light
CN109985384A (en) * 2019-03-21 2019-07-09 网易(杭州)网络有限公司 Textures dynamic adjusting method and device
CN109985384B (en) * 2019-03-21 2022-10-04 网易(杭州)网络有限公司 Method and device for dynamically adjusting map

Also Published As

Publication number Publication date
CN102243769B (en) 2014-06-25

Similar Documents

Publication Publication Date Title
CN102243769B (en) 3D (three-dimensional) volume light dynamic implementation method and device
CN102306391B (en) OpenGL (open graphics library)-based inverted image display processing device and method
KR102319179B1 (en) A rendering method for simulating lighting, and a terminal
CN108074274A (en) BIM model real-time rendering method and devices based on browser
CN111275802B (en) PBR material rendering method and system based on VRAY
CN106127859A (en) A kind of mobile augmented reality type scribble is painted this sense of reality and is generated method
CN106023295A (en) Three-dimensional model processing method and apparatus
CN107341853A (en) Super large virtual scene and dynamic take the photograph the virtual reality fusion method and system of screen
CN101923462A (en) FlashVR-based three-dimensional mini-scene network publishing engine
CN110124318B (en) Method and device for making virtual vegetation, electronic equipment and storage medium
Lu et al. Design and implementation of virtual interactive scene based on unity 3D
CN111862285A (en) Method and device for rendering figure skin, storage medium and electronic device
CN114119818A (en) Rendering method, device and equipment of scene model
CN102147927B (en) A kind of disposal route of terrain texture map and treating apparatus
CN103198513B (en) Film later stage synthesis antialiasing method
CN104463954A (en) Three-dimensional image surface detail simulation method and system
CN106991330A (en) A kind of method of data access authority control on three-dimensional map
CN111508053A (en) Model rendering method and device, electronic equipment and computer readable medium
CN112184895A (en) Simulation scene modeling and rendering method, device and equipment
CN102509335B (en) Based on transparent/translucent display processing unit and the method for OpenGL
CN106355634A (en) Sun simulating method and device
CN116228960A (en) Construction method and construction system of virtual museum display system and display system
CN103679818B (en) A kind of real-time scene method for drafting based on virtual surface light source
CN107610233A (en) A kind of simulating scenes construction method based on outdoor scene
Du Application of CAD aided intelligent technology in landscape design

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant