CN103093505A - Method for realizing layer tinting effect of mountain model - Google Patents
Method for realizing layer tinting effect of mountain model Download PDFInfo
- Publication number
- CN103093505A CN103093505A CN2012105498349A CN201210549834A CN103093505A CN 103093505 A CN103093505 A CN 103093505A CN 2012105498349 A CN2012105498349 A CN 2012105498349A CN 201210549834 A CN201210549834 A CN 201210549834A CN 103093505 A CN103093505 A CN 103093505A
- Authority
- CN
- China
- Prior art keywords
- model
- massif
- mountain
- dimensional
- layer
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Processing Or Creating Images (AREA)
Abstract
A method for realizing a layer tinting effect of a mountain model comprises the steps of establishing a three-dimensional visual program by the adoption of a software development platform, loading the mountain model in the three-dimensional visual program, obtaining model vertex data for the specific model, storing the model vertex data into an array of a vertex data of the three-dimensional visual program, layering elevations of a mountain according to the elevation and color changing range of the mountain, choosing a corresponding color value for each layer, changing the color values of vertexes of the mountain model according to given color distribution, and realizing the layer tinting effect through rendering. According to the method for realizing the layer tinting effect of the mountain model, color change can be adjusted according to special topographic features, and adjustment is flexible and convenient. Ups and downs of the three-dimensional mountain model can be displayed in a three-dimensional mode, general elevation distribution situation of the mountain can be visually shown, and the overall situation of the mountain model can be grasped in an open-and-shut mode. By the adoption of method, display sense of reality of the mountain model can be improved, and the people can know the general situation of the mountain better.
Description
Technical field
The present invention relates to a kind of massif model method of filling in colors on a sketch.The layer colours effect implementation method that particularly relates to a kind of massif model.
Background technology
Development along with computer simulation technique, graphics technology, multimedia technology etc., the square not Chinese mugwort of three-dimensional visualization technique, the every field that has been widely used in social life is such as digital city, Military Application, Landscape Planning, traffic monitoring, medical rescue etc.
Three-dimensional visualization (3D Visualization) technology is the comprehensive leading edge technology that a collection computer data is processed, image shows of 20th century the mid-80 birth.It is that a kind of data describing physical phenomenon are converted into figure, image, and uses the Visual exhibition form of stage designs such as real time altering of color, perspective, animation and observation viewpoint.
Altitude test is to represent the method for landforms with certain change color order or the tone depth, be usually used in two dimensional terrain figure, according to different height and the degree of depth, give the colors such as the different brown of the depth, yellow, green, blueness, with the expression ground of distinctness and the form of submarine relief.The layer colours topomap effect of two dimension is seen accompanying drawing 1.
In the application of many three-dimensional visualizations, the massif model all becomes the important part that scene shows, for example, and the massif in hydraulic engineering.Strengthen the sense of reality that massif shows, help to promote the whole visual effect of three-dimensional visualization scene, increase the scene property immersed.
In the process of the three-dimensional visualization of realizing having the massif model, the display effect that improves massif is most important, and is untrue if massif shows, will cause the inferior of whole scene true effect.
Summary of the invention
Technical matters to be solved by this invention is, provides a kind of mountain shape height that rises and falls that can the three-dimensional massif model of solid show to change, and can show intuitively the layer colours effect implementation method of the massif model that the general elevation of massif distributes.
The technical solution adopted in the present invention is: a kind of layer colours effect implementation method of massif model comprises the steps:
1) adopt Software Development Platform to set up the three-dimensional visualization program;
2) load the massif model in the three-dimensional visualization program, for concrete model, obtain the model vertices data, be saved in the array of vertex data of three-dimensional visualization program;
3) according to massif elevation and change color scope, the massif elevation is carried out layering, and be that every one deck is selected corresponding color value;
4) color assignment that provides according to step 3), the color value of change massif model vertices is played up and is realized the layer colours effect.
The described Software Development Platform of step 1) is VS2008 or VS2010 or VS2003.
Include in the described three-dimensional visualization program of step 1): preserve the array of vertex data, the data object that saves colors, graphics engine.
Step 2) vertex data of described three-dimensional model is three-dimensional, determines the position of single summit in three dimensions by the data value on x, y, three directions of z.
The variation of the described massif elevation of step 3) is the variation of data on the z direction.
Step 4) and step 2) described in the summit refer to that the massif model is the summit of Triangle Network Structure.
The layer colours effect implementation method of massif model of the present invention, very practical for the Visual Scene that the massif model is arranged.Can adjust change color according to the concrete terrain feature of massif, flexible.Can solid show the mountain shape of the three-dimensional massif model height that rises and falls change, can show intuitively the elevation branch office situation that massif is general, the overall condition of very clear grasp massif model.Adopt the three-dimensional massif effect of colo(u)r breakup of the present invention can improve the demonstration sense of reality of massif model, help us to understand better the massif overview.
Description of drawings
Fig. 1 is existing layer colours terrain effect figure;
Fig. 2 is the process flow diagram of the layer colours effect implementation method of massif model of the present invention;
Fig. 3 is layer colours design sketch of the present invention.
Embodiment
Make a detailed description below in conjunction with embodiment and the accompanying drawing layer colours effect implementation method to massif model of the present invention.
In the process of the three-dimensional visualization of realizing having the massif model, the display effect that improves massif is most important, and is untrue if massif shows, will cause the inferior of whole scene true effect.
The layer colours effect implementation method of massif model of the present invention, a kind of method that realizes that massif model color gradient shows is proposed, the layer colours thought of two dimensional terrain figure is applied in three-dimensional model, and improve, not only make the massif color different and different with mountain height, and this variation gradual change is shown, the transition nature.Both show general massif elevation scope, strengthened again massif fluctuations effect.
The layer colours effect implementation method of massif model of the present invention comprises the steps:
1) adopt Software Development Platform to set up the three-dimensional visualization program
Described Software Development Platform is VS2008 or VS2010 or VS2003.Include in described three-dimensional visualization program: preserve the array of vertex data, the data object that saves colors, graphics engine (OSG or OpenGL etc.).
2) load the massif model in the three-dimensional visualization program, for concrete model, (the massif model is linked to be the triangulation network by irregular data point and forms to obtain the model vertices data, leg-of-mutton each point is referred to as the summit), be saved in the array of vertex data of three-dimensional visualization program, the vertex data of described three-dimensional model is three-dimensional, determines the position of single summit in three dimensions by the data value on x, y, three directions of z.
3) according to massif elevation and change color scope, the massif elevation is carried out layering, and be that every one deck is selected corresponding color value, the variation of described massif elevation is the variation of data on the z direction.
The general color sequences of the layer colours of massif model is: the ocean is with blue, and the Plain is with green, and low mountains and hills are used yellow, mountain region and plateau sepia.Between different sea-bottom contours, the different blueness of the depth with altitude test, can be used for representing the degree of depth in seabed.Between different level lines, green is denseer, and the expression physical features is lower; Sepia is darker, and the expression physical features is higher; The above area of snow line represents with white usually.
4) color assignment that provides according to step 3), the color value of change massif model vertices is played up and is realized the layer colours effect.
In above-mentioned steps 2) and step 4) described in the summit refer to that the massif model is the summit of Triangle Network Structure.
By method as above, can realize the displaying of massif layer colours effect.For example in the implementation procedure of OSG engine, obtain in the object that the massif vertex data is kept at the Vec3Array type, object name is made as verties[] [].Determine it is which concrete summit in first [], second [] only has three values 0,1,2, wherein 0 represents the x direction, and 1 represents the y direction, and 2 represent the z direction.The a height value of ordering can be expressed as verties[a so] [2].Array value of saving colors of definition Vec4 type, color value comprises that also (the Alpha component all is made as 1 to an Alpha component usually except rgb value, represent opaquely, it is 1 that the present embodiment is also established it), wherein R is Red, G is Green, and B is Blue, and A is the color space of Alpha.Select the color value of different elevation section correspondences, for example (* verties) [a] [2] 〉=1100, namely absolute elevation greater than 1100 meters, is set to brown higher than the parts of 1100 meters, and namely color value is Vec4 (0.8f, 0.4f, 0.2f, 1.0f).Massif layer colours design sketch such as accompanying drawing 3.
Realizing the layer colours effect implementation method of massif model of the present invention, should note following some:
1) obtain the massif vertex data.Select those through the digital massif model that the mountain triangulation network of optimizing consists of, can to a certain degree reducing redundant information, obtain more accurately vertex position information like this.
2) colo(u)r breakup is processed.The layering of color will be to meet real rule as good, the own define color layering rule of trying not, and for example high height above sea level adopts green, and low height above sea level adopts brown.Also can cause puzzlement to the user even marked like this colouring information, the information that easily makes the mistake is passed on.
3) play up demonstration.Select suitable render engine, good render engine can better show three-dimensional model.OSG for example.
The user adopts aforesaid way to realize the massif layering, can better show the massif model in three-dimensional scenic, realizes layered effect more true to nature, promotes the massif visual effect.
Claims (6)
1. the layer colours effect implementation method of a massif model, is characterized in that, comprises the steps:
1) adopt Software Development Platform to set up the three-dimensional visualization program;
2) load the massif model in the three-dimensional visualization program, for concrete model, obtain the model vertices data, be saved in the array of vertex data of three-dimensional visualization program;
3) according to massif elevation and change color scope, the massif elevation is carried out layering, and be that every one deck is selected corresponding color value;
4) color assignment that provides according to step 3), the color value of change massif model vertices is played up and is realized the layer colours effect.
2. the layer colours effect implementation method of massif model according to claim 1, is characterized in that, the described Software Development Platform of step 1) is VS2008 or VS2010 or VS2003.
3. the layer colours effect implementation method of massif model according to claim 1, is characterized in that, includes in the described three-dimensional visualization program of step 1): preserve the array of vertex data, the data object that saves colors, graphics engine.
4. the layer colours effect implementation method of massif model according to claim 1, it is characterized in that, step 2) vertex data of described three-dimensional model is three-dimensional, determines the position of single summit in three dimensions by the data value on x, y, three directions of z.
5. the layer colours effect implementation method of massif model according to claim 1, is characterized in that, the variation of the described massif elevation of step 3) is the variation of data on the z direction.
6. the layer colours effect implementation method of massif model according to claim 1, is characterized in that step 4) and step 2) described in the summit refer to that the massif model is the summit of Triangle Network Structure.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012105498349A CN103093505A (en) | 2012-12-17 | 2012-12-17 | Method for realizing layer tinting effect of mountain model |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012105498349A CN103093505A (en) | 2012-12-17 | 2012-12-17 | Method for realizing layer tinting effect of mountain model |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103093505A true CN103093505A (en) | 2013-05-08 |
Family
ID=48206036
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012105498349A Pending CN103093505A (en) | 2012-12-17 | 2012-12-17 | Method for realizing layer tinting effect of mountain model |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103093505A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104992615A (en) * | 2015-06-23 | 2015-10-21 | 中国科学院国家天文台 | Moon large-scale shaded relief map layer tinting method |
CN106127847A (en) * | 2016-06-30 | 2016-11-16 | 刘姗姗 | A kind of generate real-time landscape painting characteristic line and the method suitably rendered |
CN108447120A (en) * | 2018-02-08 | 2018-08-24 | 武汉智博创享科技股份有限公司 | A kind of method and device of structure three-dimensional properties body Model |
CN109712237A (en) * | 2018-12-21 | 2019-05-03 | 西安恒歌数码科技有限责任公司 | A kind of mixing based on altitude data and meteorological data sets color method |
CN111612858A (en) * | 2020-06-01 | 2020-09-01 | 深圳云里物里科技股份有限公司 | Image display method and related device of electronic tag |
WO2020192355A1 (en) * | 2019-03-28 | 2020-10-01 | 东南大学 | Method and system for measuring urban mountain viewing visible range |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2142593Y (en) * | 1992-10-12 | 1993-09-22 | 张泽昕 | Discrimination of contour map and principle demonstrative model |
CN101093625A (en) * | 2007-07-10 | 2007-12-26 | 武汉大学 | Mixed coloring method in relief shading cartography, and shade map |
CN101976531A (en) * | 2010-09-29 | 2011-02-16 | 中国科学院国家天文台 | Selenographic globe and manufacturing method thereof |
-
2012
- 2012-12-17 CN CN2012105498349A patent/CN103093505A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2142593Y (en) * | 1992-10-12 | 1993-09-22 | 张泽昕 | Discrimination of contour map and principle demonstrative model |
CN101093625A (en) * | 2007-07-10 | 2007-12-26 | 武汉大学 | Mixed coloring method in relief shading cartography, and shade map |
CN101976531A (en) * | 2010-09-29 | 2011-02-16 | 中国科学院国家天文台 | Selenographic globe and manufacturing method thereof |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104992615A (en) * | 2015-06-23 | 2015-10-21 | 中国科学院国家天文台 | Moon large-scale shaded relief map layer tinting method |
CN104992615B (en) * | 2015-06-23 | 2017-11-10 | 中国科学院国家天文台 | A kind of moon large scale landform shading map layer colours method |
CN106127847A (en) * | 2016-06-30 | 2016-11-16 | 刘姗姗 | A kind of generate real-time landscape painting characteristic line and the method suitably rendered |
CN106127847B (en) * | 2016-06-30 | 2019-03-19 | 刘姗姗 | A method of it generating real-time landscape painting characteristic line and suitably renders |
CN108447120A (en) * | 2018-02-08 | 2018-08-24 | 武汉智博创享科技股份有限公司 | A kind of method and device of structure three-dimensional properties body Model |
CN109712237A (en) * | 2018-12-21 | 2019-05-03 | 西安恒歌数码科技有限责任公司 | A kind of mixing based on altitude data and meteorological data sets color method |
CN109712237B (en) * | 2018-12-21 | 2023-03-31 | 西安恒歌数码科技有限责任公司 | Mixed color setting method based on elevation data and meteorological data |
WO2020192355A1 (en) * | 2019-03-28 | 2020-10-01 | 东南大学 | Method and system for measuring urban mountain viewing visible range |
CN111612858A (en) * | 2020-06-01 | 2020-09-01 | 深圳云里物里科技股份有限公司 | Image display method and related device of electronic tag |
CN111612858B (en) * | 2020-06-01 | 2021-07-23 | 深圳云里物里科技股份有限公司 | Image display method and related device of electronic tag |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103093505A (en) | Method for realizing layer tinting effect of mountain model | |
Hnaidi et al. | Feature based terrain generation using diffusion equation | |
KR101085390B1 (en) | Image presenting method and apparatus for 3D navigation, and mobile apparatus comprising the same apparatus | |
CN107564087B (en) | A kind of Three-D linear symbol rendering method based on screen | |
US20040176908A1 (en) | Map displaying apparatus | |
CN101881830B (en) | Method for reconstructing radar scanning data to generate three-dimensional visual terrain | |
CN111784833A (en) | WebGL-based flood evolution situation three-dimensional dynamic visualization display method | |
CN106683189B (en) | A method of the rendering type in three-dimensional scenic | |
CN103745501B (en) | The threedimensional model coloring of stl file form and colouring information access method | |
CN103065361B (en) | Three-dimensional island sand table implementation method | |
AU2020416878B2 (en) | Map generation method and apparatus, electronic device, and computer storage medium | |
JP4842677B2 (en) | Topographic model forming system and topographic model manufacturing method | |
CN104463954A (en) | Three-dimensional image surface detail simulation method and system | |
CN101477700A (en) | Real tri-dimension display method oriented to Google Earth and Sketch Up | |
CN110276816A (en) | Regional color filling method and device, electronic equipment and computer readable storage medium | |
CN102117491B (en) | Texture data drawing method and device in three-dimensional modeling | |
CN107170040A (en) | A kind of three-dimensional bridge scenario building method and apparatus | |
CN104318605A (en) | Parallel lamination rendering method of vector solid line and three-dimensional terrain | |
CN102750733B (en) | A kind of method and system that the three-dimensional earth is created based on multi-texturing | |
CN103116905A (en) | Gradual change coloring effect achievement method of mountain three-dimensional model | |
CN101521828B (en) | Implanted type true three-dimensional rendering method oriented to ESRI three-dimensional GIS module | |
CN101511034A (en) | Truly three-dimensional stereo display method facing Skyline | |
CN106780700B (en) | Game personalized 3D coloring method based on VR technology | |
Whelan et al. | Formulated silhouettes for sketching terrain | |
JP2022190657A (en) | Display medium, processing unit, program and computer readable record medium recording program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20130508 |