CN101226644B - Method for tracing shade and shadow of space two-dimension image - Google Patents

Method for tracing shade and shadow of space two-dimension image Download PDF

Info

Publication number
CN101226644B
CN101226644B CN2008100336799A CN200810033679A CN101226644B CN 101226644 B CN101226644 B CN 101226644B CN 2008100336799 A CN2008100336799 A CN 2008100336799A CN 200810033679 A CN200810033679 A CN 200810033679A CN 101226644 B CN101226644 B CN 101226644B
Authority
CN
China
Prior art keywords
plane
layer
shadow
tracing
space
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.)
Expired - Fee Related
Application number
CN2008100336799A
Other languages
Chinese (zh)
Other versions
CN101226644A (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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN2008100336799A priority Critical patent/CN101226644B/en
Publication of CN101226644A publication Critical patent/CN101226644A/en
Application granted granted Critical
Publication of CN101226644B publication Critical patent/CN101226644B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Generation (AREA)
  • Illuminated Signs And Luminous Advertising (AREA)

Abstract

A ray tracing method of two-dimensional images in space is used to simulate three-dimensional space in two-dimensional space. The three-dimensional space has five faces of a first plane, a second plane intersects with the first plane, a third plane, a fourth plane and a fifth plane which is parallel to the first plane. The method comprises selecting one area on the first plane to fill the actual color of the plane to serve as a natural color layer, superposing a grey scale layer on the natural color layer of the first plane, superposing an image tracing layer on the grey scale layer of the first plane, superposing an illumination layer on the image tracing layer of the first plane, and the second plane, the third plane, the fourth plane and the fifth plane are superposed in the order of the first plane processing, then jointing the corresponding layers of all planes. The invention can realistically display three-dimensional images in two-dimensional space.

Description

The method for tracing shade and shadow of space two-dimension image
Technical field
The present invention relates to a kind of method for tracing shade and shadow of space two-dimension image.
Background technology
The zone that encloses or partly enclose that any space all is comprised of different faces, the figure layer that each face comprises in the space has: this chromatic graph layer that is used for display surface self color; Be used for the spatial level of enhancing face and the gray-scale map layer of the sense of reality; Be used for other shadow tracing figure layers in the face of the impact of self of simulation; The illumination pattern layer that is used for the phenomenon of object self cross-color that illumination simulation causes, also have, the formed echo layer of the projection of other objects on this face, if and this mask reflecting attribute is arranged (is marble such as material, metal, minute surface etc.) then need to express translucent reflectogram layer.
In the space of the one-point perspective of expressing with two dimensional image and multiple spot perspective, the soft diffuse effect that imitation forms after repeatedly launching on the face of space when light, adopt the mode of multi-drawing layer stacking to imitate its complicated shadow relation for different face (such as metope, ground, smallpox etc.), association will be carried out between the correlogram layer, to reach the attribute by revising in the space some, the impact that also can produce colors and shadow to other faces that is associated.
3-D view is expressed in two-dimensional space, often because the variation of color, be difficult to the effect that reaches desirable, especially in the process of indoor design, often the finishing effect of design to be played up out in advance in Computerized three-dimensional software, the time that this three-dimensional rendering method not only spends is longer, and interactive relatively poor.Existing two-dimensional analog method is not often considered the irreflexive impact in space, and is too large with the actual effect gap, is difficult to simulate the effect of reality.
Summary of the invention
The present invention uses the larger deficiency of two dimensional surface technical modelling 3-D view and actual effect gap for solving in the prior art, and a kind of method for tracing shade and shadow of space two-dimension image is provided.
A kind of method for tracing shade and shadow of space two-dimension image is used for simulated three-dimensional space in two dimensional surface, and described three dimensions comprises five faces, the first plane is respectively with the second plane, the 3rd plane, Siping City's face of the first Plane intersects, with the first parallel plane the 5th plane, comprise
(1), selects the actual color of this face of area filling on the first plane, as this chromatic graph layer;
(2), at gray-scale map layer of this chromatic graph layer on described the first plane stack;
(3), at the gray-scale map layer on described the first plane stack shadow tracing figure layer;
(4), at the shadow tracing figure layer on described the first plane stack illumination pattern layer;
(5), the second plane, the 3rd plane, Siping City's face and the 5th plane also superpose according to the processing sequence on described the first plane;
(6), the corresponding diagram layer on all planes carried out association.
Wherein when described the first planar backlight, the transparent print layer that the gray-scale map layer in the described step (2) changes with light for transparency; When described the first plane was not backlight, the gray-scale map layer in the described step (2) was that transparency is the gradual change transparent print layer of 20%-40%.
Other planes in the wherein said step (3) are the transparent print layer of color gradient to the shadow tracing figure layer on the first plane, when other planes and the first Plane intersects, to the increase of intersection distance between the plane and reduce gradually, described transparency is along with the first plane and be affected the increase of angle angle between the face and reduce with impact point for transparency; When other planes and the first plane parallel, transparency reduces along with the increase of distance between two planes.
In the wherein said step (5), also comprise the 6th plane, respectively with the second plane, Siping City's face and the 5th Plane intersects, described the 5th plane and the 6th plane outwards are fan shape from gap to the shadow tracing figure layer on the first plane and fade away on the basis of original shadow tracing figure layer.
The illumination pattern layer is colored translucent figure layer in the wherein said step (4), and its color is determined by the colour temperature that shines the first plane glazed thread.
When in the wherein said step (6) described figure layer being carried out association, all gray-scale map layers are carried out association; To be subjected to the illumination pattern layer of same light source to carry out association; Carry out related with the shadow tracing figure layer of capping on other faces this chromatic graph layer on a plane.
Wherein said method can be used in the space of one-point perspective or multiple spot perspective.
The present invention gets up each map overlay in the plane because each plane in the space is divided into different figure layers, more can show actual effect true to nature.
Description of drawings
Fig. 1 is the two-dimensional representation of spatial image;
Fig. 2 is the gray-scale map layer on the first plane;
Fig. 3 is that the phase cross surface is the transparency and the relation function of impact point to the intersecting lens distance of 90 tracing figure of shadow when spending layers;
Fig. 4 is that the phase cross surface is 90 shadow tracing figure layers when spending;
Fig. 5 is the relation function of distance between the transparency of phase cross surface shadow tracing figure layer when parallel and two parallel surfaces;
The expression of the shadow tracing figure layer when Fig. 6 is disconnection;
The expression of shadow tracing figure layer on spatial image when Fig. 7 is disconnection;
Fig. 8 is the expression of the first plane in two dimensional surface in the solid space.
Embodiment
Below in conjunction with a specific embodiment, the method for tracing shade and shadow of a kind of space two-dimension image of the present invention is done detailed description, comprising:
1, generates in the plane the wire frame of perspective space, as shown in Figure 1, comprise the first plane 1, the second plane 2, the 3rd plane 3 and Siping City's face 4 that intersect vertically with the first plane, with the first parallel plane the 5th plane 5, the 6th plane 6 of intersecting with the 5th plane 5, Siping City's face 4 and the second plane 2;
2, select first the wire frame scope on the first plane 1 in the space, color in the newly-built figure layer in this zone and filling, the solid colour of metope in this color and the real space, this figure layer is this chromatic graph layer;
3, a newly-built square region figure layer and be filled with the translucent figure layer of black of fade effect, transparency is 40%--20%, and will scheme layer and twist according to the wire frame scope on the first plane 1, with this map overlay above this chromatic graph layer on the first plane 1.
If window is arranged on the plane, suppose that there is individual window on the 3rd plane 3, then the gray-scale map layer the closer to the zone on the 3rd plane 3 is more transparent, as shown in Figure 2, larger the closer to the local transparency of light, be 40%, more away from the place of light, transparency is less, and minimum is 20%.
4, add shadow tracing figure layer since the first plane 1, principle according to the shadow tracking, the first plane 1 is subjected to the second plane 2, the 3rd plane 3, Siping City's face 4, the impact on the 5th plane 5, at first add the shadow tracing figure layer of the second plane 2 on the first plane 1, because the second plane 2 and the first plane 1 are 90 °, so the gradual change that shadow is followed the tracks of should be followed following function, as shown in Figure 3, horizontal ordinate x represents the transparency of shadow tracking layer, ordinate y represents to be affected point on the face and the distance of intersecting lens, and along with the increase of distance, transparency slowly reduces, until be zero, the transparency on the phase cross surface is 20%; Along with the increase of angle between the first plane 1 and the second plane 2, transparency reduces gradually equally.According to the transparent print layer of a gradual change of this curve generation, the color of filling is the Fill Color of this chromatic graph layer on the second plane 2, then should scheme layer and twist according to perspective, as shown in Figure 4.
5, same method is worked it out the shadow tracing figure layer on the 3rd plane 3,4 pairs of the first planes 1 of Siping City's face, the transparency that the shadow on 5 pairs of the first planes 1, the 5th plane is followed the tracks of layer is uniform, its transparency is followed following function, as shown in Figure 5, horizontal ordinate represents the transparency of shadow tracking layer, ordinate represents the distance between the face that is affected and the influence surface, the transparency that shadow is followed the tracks of layer adds the 5th plane 5 to its shadow tracing figure layer for the first plane 1 along with the increase of distance between two parallel planes is reduced to 0 from 100% according to the distance of distance.
6, add the illumination pattern layer to sensitive surface, this figure layer is colored translucent figure layer, color is determined by the colour temperature of light, if be that the daylight then this figure layer is white, be used for the simulation sensitive surface and bleach under the daylight and lose self former coloured effect, this figure layer transparency increases along with the distance from light source and successively decreases.
7, it is related to set up for the figure layer, and concrete steps are,
1), all gray-scale map layers are associated, namely in the gray scale that changes one of them face, the gray scale of other faces also changes, and guarantees the unification of whole interior space gray scale;
2), be associated by the illumination pattern layer of same light source all, namely when changing the illumination of a face, the illumination of other faces also can change;
3), this chromatic graph layer of face is associated with the shadow tracing figure layer of this face on other walls, when namely changing form and aspect, gray scale, the lightness of this this chromatic graph of face layer, the shadow tracing figure layer of other walls is also changed thereupon.
According to identical method, finish the shadow tracing process on the second plane 2, the 3rd plane 3, Siping City's face 4, the 5th plane 5 and the 6th plane 6.
Add the gray-scale map layer wherein for the 3rd plane 3 and the 6th plane 6, because these two faces are backlight, so all give the black of 40% transparency.
Wherein when since the 5th plane 5 and the 6th plane 6 when intersecting with the second plane 2 and Siping City's face 4, disconnection has occured, gradual manner below so the shape of shadow tracing figure layer adopts, on original gradual change basis, outwards being fan shape from gap fades away, and then twist according to aerial prospective, process the 5th plane 5, the 6th plane 6 on the impact on the second plane 2, such as Fig. 6, shown in Figure 7 with same method.
Because any one face in the space all is to be combined by this chromatic graph layer, following map overlay,
1) this chromatic graph layer that, is used for display surface self color;
2), be used for the spatial level of enhancing face and the gray-scale map layer of the sense of reality;
3), be used for other shadow tracing figure layers in the face of the impact of self of simulation;
4) the illumination pattern layer that, is used for the phenomenon of object self cross-color that illumination simulation causes.
So the first plane in the space represents as shown in Figure 8 with two dimensional image, comprise this chromatic graph layer 101, gray-scale map layer 102, the second plane is to its shadow tracing figure layer 103, the 3rd plane is to its shadow tracing figure layer 104, Siping City faces its shadow tracing figure layer 105, the five plane to its shadow tracing figure layer 106 and illumination pattern layer 107, in the plane display space image that so just can be true to nature.
Can the face of other faces generation diffuse reflection impacts be comprised in the space: with the angled crossing face of the face that is affected, angle is spent (learning through experimental test) greater than 0 degree less than 150; The face relative with the face that is affected, the face that can be parallel correspondence also can be angled but disjoint with the face that is affected.In the space other faces negligible face that exerts an influence is comprised: the face angled with the face that is affected, angular range are greater than 150 degree, less than 180 degree.
The present invention not only can be applied in the space of one-point perspective, and can be applied in the space of multiple spot perspective.

Claims (5)

1. the method for tracing shade and shadow of a space two-dimension image, be used for simulated three-dimensional space in two dimensional surface, described three dimensions comprises five faces, the first plane, with the second plane, the 3rd plane, Siping City's face of the first Plane intersects, with the first parallel plane the 5th plane, it is characterized in that respectively, comprise
Step (1), select the actual color of this face of area filling on the first plane, as this chromatic graph layer;
Step (2), at gray-scale map layer of this chromatic graph layer on described the first plane stack;
Step (3), at the gray-scale map layer on described the first plane stack shadow tracing figure layer;
Step (4), at the shadow tracing figure layer on described the first plane stack illumination pattern layer;
Step (5), the second plane, the 3rd plane, Siping City's face and the 5th plane also superpose according to the processing sequence on described the first plane;
Step (6), the corresponding diagram layer on all planes is carried out association,
When described the first planar backlight, the transparent print layer that the gray-scale map layer in the described step (2) changes with light for transparency; When described the first plane was not backlight, the gray-scale map layer in the described step (2) was that transparency is the gradual change transparent print layer of 20%-40%,
In the described step (3), other planes are the transparent print layer of color gradient to the shadow tracing figure layer on the first plane, when other planes and the first Plane intersects, to the increase of intersection distance between the plane and reduce gradually, described transparency is along with the first plane and be affected the increase of angle angle between the face and reduce with impact point for transparency; When other planes and the first plane parallel, transparency reduces along with the increase of distance between two planes,
When in the described step (6) described figure layer being carried out association, all gray-scale map layers are carried out association; To be subjected to the illumination pattern layer of same light source to carry out association; Carry out related with the shadow tracing figure layer of capping on other faces this chromatic graph layer on a plane.
2. the method for tracing shade and shadow of a kind of space two-dimension image as claimed in claim 1 is characterized in that, in the described step (5), also comprises the 6th plane, respectively with the second plane, Siping City's face and the 5th Plane intersects.
3. the method for tracing shade and shadow of a kind of space two-dimension image as claimed in claim 2, it is characterized in that described the 5th plane and the 6th plane outwards are fan shape from gap to the shadow tracing figure layer on the first plane and fade away on the basis of original shadow tracing figure layer.
4. the method for tracing shade and shadow of a kind of space two-dimension image as claimed in claim 1 is characterized in that, the illumination pattern layer is colored translucent figure layer in the described step (4), and its color is determined by the colour temperature that shines the first plane glazed thread.
5. the method for tracing shade and shadow of a kind of space two-dimension image as claimed in claim 1 is characterized in that, described method can be used in the space of one-point perspective or multiple spot perspective.
CN2008100336799A 2008-02-18 2008-02-18 Method for tracing shade and shadow of space two-dimension image Expired - Fee Related CN101226644B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008100336799A CN101226644B (en) 2008-02-18 2008-02-18 Method for tracing shade and shadow of space two-dimension image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008100336799A CN101226644B (en) 2008-02-18 2008-02-18 Method for tracing shade and shadow of space two-dimension image

Publications (2)

Publication Number Publication Date
CN101226644A CN101226644A (en) 2008-07-23
CN101226644B true CN101226644B (en) 2013-01-30

Family

ID=39858624

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008100336799A Expired - Fee Related CN101226644B (en) 2008-02-18 2008-02-18 Method for tracing shade and shadow of space two-dimension image

Country Status (1)

Country Link
CN (1) CN101226644B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102542599B (en) * 2010-12-31 2016-03-09 赛恩倍吉科技顾问(深圳)有限公司 Offline image programming photoenvironment simulation system and method
CN107443752B (en) * 2015-11-06 2019-08-20 深圳巨影投资发展有限公司 Color body 3D printer
CN105389847B (en) * 2015-11-06 2018-01-26 网易(杭州)网络有限公司 The drawing system and method, terminal of a kind of 3D scenes
CN105740437A (en) * 2016-01-30 2016-07-06 曲阜裕隆生物科技有限公司 3D (Three-Dimensional) image storage method and display method and 3D image file format
CN111696188B (en) * 2020-04-26 2023-10-03 杭州群核信息技术有限公司 Rendering graph rapid illumination editing method and device and rendering method
CN113554746A (en) * 2021-07-27 2021-10-26 广东三维家信息科技有限公司 Decoration effect graph generation method and device, electronic equipment and storage medium
CN114049425B (en) * 2021-10-29 2023-06-09 腾讯科技(深圳)有限公司 Illumination simulation method, device, equipment and storage medium in image

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1273405A (en) * 1999-05-06 2000-11-15 英业达集团(南京)电子技术有限公司 Method for generating three-D graphics
CN1547163A (en) * 2003-12-04 2004-11-17 北京金山数字娱乐科技有限公司 Scene dynamic shade and shadow realizing method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1273405A (en) * 1999-05-06 2000-11-15 英业达集团(南京)电子技术有限公司 Method for generating three-D graphics
CN1547163A (en) * 2003-12-04 2004-11-17 北京金山数字娱乐科技有限公司 Scene dynamic shade and shadow realizing method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JP特开平9-138866A 1997.05.27

Also Published As

Publication number Publication date
CN101226644A (en) 2008-07-23

Similar Documents

Publication Publication Date Title
CN101226644B (en) Method for tracing shade and shadow of space two-dimension image
CN107563088B (en) A kind of light field display device simulating method based on Ray Tracing Algorithm
US11534688B2 (en) Method and apparatus for enhanced graphics rendering in a video game environment
Raskar et al. Shader lamps: Animating real objects with image-based illumination
US7068274B2 (en) System and method for animating real objects with projected images
US6930681B2 (en) System and method for registering multiple images with three-dimensional objects
US6677956B2 (en) Method for cross-fading intensities of multiple images of a scene for seamless reconstruction
JP4071290B2 (en) Method and apparatus for generating computer graphics images
US7019748B2 (en) Simulating motion of static objects in scenes
CN102289845B (en) Three-dimensional model drawing method and device
CN106652007A (en) Virtual sea surface rendering method and system
KR20170119289A (en) Using depth in three-dimensional object printing to form colors that change with viewing and illumination angles
US7609275B2 (en) System and method for mosaic rendering of three dimensional image
CN110458959A (en) Body Three-dimensional Display emulation mode, device, equipment and computer readable storage medium
Greenberg Computers and architecture
Alhejri et al. Reconstructing real object appearance with virtual materials using mobile augmented reality
US20180005432A1 (en) Shading Using Multiple Texture Maps
US20060033736A1 (en) Enhanced Color and Lighting Model for Computer Graphics Productions
JP3152820B2 (en) Reality generation device and realism generation method
CN111210391A (en) Interactive mural repair system
KR20030083962A (en) Method For Applying Shading Effect To 3D Rendering Images And Information Storage Medium Storing A Program Implementing The Same
CN116342784B (en) Real-time rendering method for large scene water interaction
Öhrn Different mapping techniques for realistic surfaces
Huang A 3D Photorealistic Rendering of A Rain Scene
Raskar et al. Shader lamps

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130130

Termination date: 20150218

EXPY Termination of patent right or utility model