CN101650837A - Virtual-reality modeling method of ocean water body - Google Patents

Virtual-reality modeling method of ocean water body Download PDF

Info

Publication number
CN101650837A
CN101650837A CN200910100669A CN200910100669A CN101650837A CN 101650837 A CN101650837 A CN 101650837A CN 200910100669 A CN200910100669 A CN 200910100669A CN 200910100669 A CN200910100669 A CN 200910100669A CN 101650837 A CN101650837 A CN 101650837A
Authority
CN
China
Prior art keywords
water body
ocean water
data
ocean
coordinate system
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
Application number
CN200910100669A
Other languages
Chinese (zh)
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.)
Zhejiang University ZJU
Original Assignee
Zhejiang University ZJU
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 Zhejiang University ZJU filed Critical Zhejiang University ZJU
Priority to CN200910100669A priority Critical patent/CN101650837A/en
Publication of CN101650837A publication Critical patent/CN101650837A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a virtual-reality modeling method of an ocean water body. The method comprises the following steps: constructing a main body of a model by utilizing remote sensing (RS) data ina convenient and high-efficiency data-processing process and a scientific storage mode based on an OpenGL technology; adopting a contour line of an ocean surface experimental area to construct a three-dimensional modeling method of a three-dimensional ocean water body; presenting ocean surface waves by texture mapping; utilizing the projection of a parallel contour line to construct a cylindricalbody of the water body to present physical quantity change conditions of the RS data, such as the water depth, the water quality, and the like; and representing the ocean water body and undersea topography in a transparent body mode. The new method realizes the modeling of the three-dimensional ocean water body by utilizing the OpenGL technology as a modeling tool under the technical support of the RS and the GIS (Geographic Information System). The real-time modeling of the three-dimensional ocean water body is realized by effectively utilizing the long-term collected RS data through convenient and feasible data processing and the model-drawing method. The invention has extremely wide application prospects in the ocean environmental monitoring field.

Description

A kind of modeling method of ocean water body virtual reality
Technical field
The present invention relates to the ocean water body modeling method, be specifically related to a kind of modeling method of ocean water body virtual reality.Be used to realize quick, the Real-time modeling set of ocean water body, use this method in the China sea zone, to delimit the area of observation coverage arbitrarily and carry out three-dimensional modeling.
Background technology
The ocean account for earth surface long-pending 71%, be an opening, have multifarious complication system, wherein have the material of various spatial and temporal scales and different levels to exist and motion morphology.The expression of ocean water body at present is mainly in two-dimensional map modes such as electronic charts, and ocean temperature, salinity, the many forms with text of transparency isoinversion data exist.Along with the development and utilization of ocean resources, increase gradually for ocean water body and marine environment inverting data three-dimensional modeling and visual demand.The development and utilization of ocean resources will be based on marine features and rule, and development of technologies such as computer technology, virtual reality technology provide strong technical support for the ocean water body three-dimensional modeling.
Virtual reality ocean water body Real-time modeling set of the present invention is an important means of understanding the ocean integrated environment, is the new method of reproducing related physical figureofmerits such as ocean temperature, salinity, transparency.Originally the ocean water body virtual reality modelling method of researching and proposing based on RS and GIS can realize quick, the Real-time modeling set of ocean water body, and can be to the water body modeling of any defined area of China sea.
Proposition along with " digital ocean ", the focus of the three-dimensional Real-time modeling set research becoming day by day in ocean both at home and abroad, see [1] Rinehart R, Wright D.Benthic Habitat Classification and 3-DVisualizations[C] .Association of American Geographers Centennial Meeting, American, Samoa, 2004.[2] Alan M, et al.Visually-enabled Geo-collaborationto Support Data Exploration ﹠amp; Decision-making[C] .Proceedings of the 21stInternational Cartographic Conference, Durban, South Africa, 2003[3] Shangguan is big, etc. true marine environment Scene Simulation research [J]. system emulation journal .2006:18 (increasing 2).In addition, business software is also constantly released both at home and abroad, for example the Vega of MultiGen-Paradigm.Inc.But the three-dimensional Real-time modeling set research in ocean still is in the starting stage, and real-time is not high, and Data Source is various, complicated, and it all is the subject matter that exists at present that business software costs an arm and a leg.
Virtual reality (Virtual Reality) is the model that constructs a lifelike image in computing machine, thereby generates a kind of simulated environment with three-dimensional world effect.It is to utilize computing machine that complex data is carried out visualized operation and mutual a kind of high-tech means, by the simulation virtual environment sensation that makes the visitor obtain being personally on the scene of simulation.
OpenGL (Open Graphics Library) graphics system is a software interface, allows the programmer can create interactive program, and the graphics that uses a computer technology generates realistic image.Use OpenGL control computer graphics technology to generate photo realism graphic.OpenGL comprises about 250 functions, and the user can use them to come specified object and operation, to create the interactive three-dimensional application program.
The OpenGL coordinate system that relates among the present invention comprises following three kinds:
World coordinates is the coordinate that is used for describing scene among the OpenGL, and Z axle vertical screen is outside, X-axis from left to right, Y-axis is a right-handed Cartesian coordinate system system from top to bottom.
Object coordinates is that initial point is set up " world coordinates " a bit with bodies, and this coordinate system only is suitable for this object, is used for simplifying the description to object each several part coordinate.When object was put in the scene, the coordinate transform of each several part experience was identical, and relative position is constant, thus visual as a whole, consistent with the mankind's thinking habit.
Eye coordinates is to be initial point with the viewpoint, is the direction in the coordinate system of Z axle positive dirction with the direction of sight line.
Development along with marine environment satellite remote sensing, a large amount of RS data or have been used the GIS technology and have been managed and safeguard, the marine environment satellite remote sensing date has characteristics such as scope is wide, real-time height, can make a large amount of RS data become one of data the most intuitively of reflection ocean water body by convenient feasible data processing method and virtual reality Real-time modeling set.
Summary of the invention
The objective of the invention is to overcome the deficiencies in the prior art, a kind of modeling method of ocean water body virtual reality is provided.The modeling method following steps of ocean water body virtual reality:
1) by the data-switching service manner, proto-ocean remote sensing environment inverting data text form is automatically converted to the raster data collection;
2) data after the conversion have been carried out storage based on the time visual means, supported the space-time characterisation of magnanimity remote sensing raster data collection is carried out fast query;
3) spatial coordinate system of the three-dimensional ocean water body scene of OpenGL is set, and finishes the setting of scene coordinate system through Z axle convergent-divergent, coordinate system along the translation in screen of vertical screen direction, coordinate system rotation and X, Y-axis coordinate unit unification to latitude and longitude coordinates;
4) any marine site polygonal wheel profile according to user's structure makes up three-dimensional ocean water body surface, generates the main body of ocean water body cube model with parallel contour line " projection ";
5) with the wave of the sea texture sea table is carried out pinup picture, submarine topography is converted to OpenGL primitive via digital elevation model, plays up with the multiple light courcess parameter with solid color modeling is set;
6) obtain raster data collection physical quantity xsect by parallel contour line " projection " and terrain simulation stretching, transparent demonstration ocean water body surface obtains the effect of visualization of all angles.
Described by the data-switching service manner, proto-ocean remote sensing environment inverting data text form is automatically converted to raster data collection step: be that Head file header and data volume with proto-ocean environment inverting data reads in internal memory with the form of document flow, again its data organization mode according to the raster data collection is write the raster data collection, utilize the data file under the Internet information server detection destination folder, conversion warehouse-in back deletion source file.
Described data after the conversion have been carried out storage based on the time visual means, support is carried out the fast query step to the space-time characterisation of magnanimity remote sensing raster data collection: the storage based on the time visual means is that the production life cycle in the Head file header of proto-ocean environment inverting data, product rise time section, product rise time point are kept at respectively in product metadata table, periodicity tempon tables of data and the instantaneity tempon tables of data, can inquire the interior data set of time set fast with standard SQL time query statement.
The spatial coordinate system of the three-dimensional ocean water body scene of described OpenGL is set, through Z axle convergent-divergent, XY axial coordinate plane is along the translation in screen of vertical screen direction, coordinate system rotation and X, Y-axis coordinate unit unification to latitude and longitude coordinates is finished the scene coordinate system step is set: the X-axis of the world coordinate system of OpenGL acquiescence, Y-axis and Z axial coordinate unit length are unified, but consider the feature of ocean water body data, be horizontal direction (X, Y) coordinate range is for (east longitude 180 is spent to west longitude 180 degree, north latitude 90 is spent to south latitude 90 degree), and the global ocean degree of depth does not wait by 0 meter to more than-10000 meter, X-axis, the coordinate unit length of Y direction and Z-direction differs more than the 2 multiple magnitudes, then can cause Z-direction too precipitous, the modeling poor effect.So, the unit length of Z axial coordinate is reduced into 1/100 of original length, promptly 1 unit length of X-axis, Y-axis is 100 on the Z axle.The XY axial plane of the world coordinate system of OpenGL scene and eye coordinates system coincides with screen plane, so need be with coordinate system along the translation in screen of vertical screen direction.World coordinate system is the right-handed Cartesian coordinate system system, the XY axial plane is parallel with screen, the sea level that generates scene parallels with screen, the general knowledge that this and sea level should be in horizontal direction is not inconsistent, therefore, will with coordinate system rotation to Z axially on, the X-axis level be to the right that positive dirction, Y-axis upwards are positive dirction.Code is as follows:
GL.glScaled(1.0,1.0,1.0/100.0);
GL.glTranslatef(0.0f,-200.0f,0.0f);
GL.glRotated(90.0,1.0,0.0,0.0);
Described any marine site polygonal wheel profile according to user's structure makes up three-dimensional ocean water body surface, generate the main body step of ocean water body cube model with parallel contour line " projection ": according to any marine site polygonal wheel profile of user's structure, utilize method cutting, the outer zone of table skeleton line, mask sea of GIS, make up three-dimensional ocean water body surface, generate the main body of ocean water body cube model with parallel contour line " projection ".Outline line is moved downward to the depth capacity of submarine topography digital elevation model along the Z axle, and the flex point between two parallel contour lines on the above lower whorl profile is utilized OpenGL structure rectangular surfaces, and transparent demonstration.Size in ocean water body column X-axis, the Y-axis plane depends on the size of the closed polygon that the user draws in two-dimentional electronic chart, ocean water body degree of depth Z-direction is the depth capacity of submarine topography digital elevation model.
Describedly sea table is carried out pinup picture with the wave of the sea texture, submarine topography is converted to OpenGL primitive via digital elevation model, play up with the multiple light courcess parameter with solid color modeling procedure is set: utilize OpenGL to carry out the ocean wave texture at end face, the positional information of pinup picture derives from 2-d contour, Yin Haibiao is an arbitrary polygon, repeat to come table polygon mapping of " supplying " sea or cut texture so adopt with cutting around pattern " mirror image ", the submarine topography digital elevation model is converted to text file format earlier, describe out with OpenGL primitive again, thereby change into the discernible graph function of OpenGL, submarine topography adopts solid color to play up, and utilizes the illumination viewpoint position, direction of visual lines, illumination parameter is provided with the variation of reflection elevation.
The described stretching by parallel contour line " projection " and terrain simulation obtains raster data collection physical quantity xsect, transparent demonstration ocean water body surface obtains the effect of visualization step of all angles: the side of ocean water body column is used for expressing the situation of marine environment inverting data with change in depth, mode by parallel contour line " projection " is mapped to extra large table skeleton line on each hierarchical information of marine environment inverting data, obtains the interior xsect of 2-d contour scope of marine environment inverting data.Pixel through pretreated marine environment raster data collection is that (x, y value), wherein comprise coordinate and physical quantity.Marine environment raster data collection is converted to OpenGL primitive via text, is stretched by terrain simulation again, is about to the coordinate of magnitude of physical quantity value as elevation direction Z, and stretching in the mode of digital elevation model obtains hierarchical information significantly intuitively.The ocean water body surface adopts transparent demonstration so that from each layering marine environment inverting data of arbitrarily angled perspective.
The present invention compared with prior art has beneficial effect:
1) real-time three-dimensional ocean water body modeling, effectively utilized the marine environment satellite remote sensing date, proposed solution, shortened data processing cycle greatly from satellite data to the OpenGL modeling, compare ageing being greatly improved with traditional boat measurement data;
2) data after the conversion have been carried out storage based on the time visual means, supported the space-time characterisation of magnanimity remote sensing raster data collection is carried out fast query;
3) can construct the ocean water body cube of any area of observation coverage by extra large watch test district outline line construction method.This real-time body structure method can better adapt to user's needs;
4) the ocean water body virtual reality modelling is the new tool of marine environmental monitoring.After modeling is finished, can reflect the situation of change of marine environment inverting data physical quantitys such as ocean temperature, salinity, transparency clearly, can be good at marine environment is monitored the generation of forecast ocean disaster, for example red tide etc.;
5) the present invention is based under RS and the GIS environment, utilizes OpenGL to realize the new tool of three-dimensional ocean water body modeling as modeling tool.Effectively utilized marine environment satellite remote sensing data, by delimiting the real-time three-dimensional ocean water body modeling of area of observation coverage realization arbitrarily in the China sea scope, visualization result is clear, directly perceived.The present invention is boundless in marine environmental monitoring field application prospect.
Description of drawings
Fig. 1 is RS marine environment inverting data source file form synoptic diagram among the present invention;
Fig. 2 is the marine environment inverting data processing method synoptic diagram that the present invention is based on GIS;
Fig. 3 is the visual storage means synoptic diagram of the time that the present invention is based on;
Fig. 4 is origin coordinate system transform synoptic diagram before the modeling of the present invention;
Fig. 5 makes up extra large hoist pennants for watch test district, the present invention sea outline line;
Fig. 6 repeats and the cutting synoptic diagram around pattern " mirror image " for the present invention;
The data preparation step synoptic diagram that Fig. 7 generates for scene of the present invention;
The ocean water body scene synoptic diagram that Fig. 8 generates for the present invention.
Embodiment
The modeling method following steps of ocean water body virtual reality:
1) by the data-switching service manner, proto-ocean remote sensing environment inverting data text form is automatically converted to the raster data collection;
2) data after the conversion have been carried out storage based on the time visual means, supported the space-time characterisation of magnanimity remote sensing raster data collection is carried out fast query;
3) spatial coordinate system of the three-dimensional ocean water body scene of OpenGL is set, and finishes the setting of scene coordinate system through Z axle convergent-divergent, coordinate system along the translation in screen of vertical screen direction, coordinate system rotation and X, Y-axis coordinate unit unification to latitude and longitude coordinates;
4) any marine site polygonal wheel profile according to user's structure makes up three-dimensional ocean water body surface, generates the main body of ocean water body cube model with parallel contour line " projection ";
5) with the wave of the sea texture sea table is carried out pinup picture, submarine topography is converted to OpenGL primitive via digital elevation model, plays up with the multiple light courcess parameter with solid color modeling is set;
6) obtain raster data collection physical quantity xsect by parallel contour line " projection " and terrain simulation stretching, transparent demonstration ocean water body surface obtains the effect of visualization of all angles.
Described by the data-switching service manner, proto-ocean remote sensing environment inverting data text form is automatically converted to raster data collection step: proto-ocean environment inverting data are hexadecimal text file format, as shown in Figure 1, concrete form is as shown in the table:
Title Type Byte number Implication Read mode
?Product ??char ??20 The remote sensing name of product ??ReadChars(20)
?Unit ??char ??16 The unit of remote sensing product physical quantity ??ReadChars(16)
?Cycle ??short ??2 Production life cycle (5 days, 10 days, 30 days) ??ReadInt16()
?Number ??short ??2 The number of files that merges ??ReadInt16()
?Syear ??short ??2 Starting year ??ReadInt16()
??Sday ??short ??2 Initial Julian date ??ReadInt16()
??Eyear ??short ??2 Stop year ??ReadInt16()
??Eday ??short ??2 Stop Julian date ??ReadInt16()
??Lat_max ??float ??4 North latitude degree ??ReadSingle()
??Lat_min ??float ??4 South latitude degree ??ReadSingle()
??Lon_max ??float ??4 East longitude degree ??ReadSingle()
??Lon_min ??float ??4 West longitude degree ??ReadSingle()
??Project ??char ??20 Projection pattern ??ReadChars(20)
??R_lat ??float ??4 Longitude resolution (degree) ??ReadSingle()
??R_lon ??float ??4 Latitude resolution (degree) ??ReadSingle()
??Row ??short ??2 The total line number of grid data ??ReadInt16()
??Col ??short ??2 The total columns of grid data ??ReadInt16()
??Slope ??float ??4 The slope of conversion from the grid data to the physical quantity ??ReadSingle()
??Offset ??float ??4 The intercept of conversion from the grid data to the physical quantity ??ReadSingle()
??Spare ??char ??920 Spare fields ??ReadChars(920)
??Value ??short Total line number * total columns Magnitude of physical quantity ??ReadInt16()
The Head file header and the data volume of proto-ocean environment inverting data are read in internal memory with the form of document flow, use the physical quantity in the method read block that circulates row and be listed as.Again its data organization mode according to the raster data collection is write the raster data collection, promptly according to the width of the information setting raster data collection of header file, highly, picture dot size, georeferencing, wave band number, the data in the data block are write pixel in the block of pixels.Fig. 2 is based on the marine environment inverting data processing method synoptic diagram of GIS.
Utilize the data file under the Internet information server detection destination folder, conversion is warehouse-in back deletion source file also.
System.Timers.Timer?setTimer=new?System.Timers.Timer(2000);
setTimer.Elapsed+=new?ElapsedEventHandler(setTimer_Elapsed);
setTimer.Enabled=true;
setTimer.AutoReset=true;
setTimer.Start();
Described data after the conversion have been carried out storage based on the time visual means, support is carried out the fast query step to the space-time characterisation of magnanimity remote sensing raster data collection: based on the storage of time visual means is that periodic quantity with the periodicity product in the Head file header of proto-ocean environment inverting data leaves in the product metadata table, and the aperiodicity product is stored as 0; Periodicity tempon data table stores from date (SDate), date of expiry (EDate) field be the beginning date and the termination date of storage products respectively; The beginning Hour Minute Second of zero-time (STime), termination time (ETime) field store product and termination Hour Minute Second.The date (Date) and the time (Time) of instantaneity tempon data table stores instantaneity time point.The product time adopts the set of above field to store.Above time storage object is consistent with time type in the SQL standard, so adopt the standard SQL language can inquire data set in the time set fast.Concrete table storage mode as shown in Figure 3.
The spatial coordinate system of the three-dimensional ocean water body scene of described OpenGL is set, through Z axle convergent-divergent, XY axial coordinate plane is along the translation in screen of vertical screen direction, coordinate system rotation and X, Y-axis coordinate unit unification to latitude and longitude coordinates is finished the scene coordinate system step is set: the X-axis of the world coordinate system of OpenGL acquiescence, Y-axis and Z axial coordinate unit length are unified, but consider the feature of ocean water body data, be horizontal direction (X, Y) coordinate range is for (east longitude 180 is spent to west longitude 180 degree, north latitude 90 is spent to south latitude 90 degree), and the global ocean degree of depth does not wait by 0 meter to more than-10000 meter, X-axis, the coordinate unit length of Y direction and Z-direction differs more than the 2 multiple magnitudes and will certainly cause Z-direction too precipitous, the modeling poor effect.So, the unit length of Z axial coordinate is reduced into 1/100 of original length, promptly 1 unit length of X-axis, Y-axis is 100 on the Z axle.The XY axial plane of the world coordinate system of OpenGL scene and eye coordinates system coincides with screen plane, so need be with coordinate system along the translation in screen of vertical screen direction.World coordinate system is the right-handed Cartesian coordinate system system, the XY axial plane is parallel with screen, the sea level that generates scene parallels with screen, refuse to obey perpendicular to the general knowledge of human eye direction of visual lines on this and sea level, will with coordinate system rotation to Z axially on, the X-axis level be to the right that positive dirction, Y-axis upwards are positive dirction.Design sketch as shown in Figure 4 before and after the origin coordinate system transform.Code is as follows:
GL.glScaled(1.0,1.0,1.0/100.0);
GL.glTranslatef(0.0f,-200.0f,0.0f);
GL.glRotated(90.0,1.0,0.0,0.0);
Described any marine site polygonal wheel profile according to user's structure makes up three-dimensional ocean water body surface, generate the main body step of ocean water body cube model with parallel contour line " projection ": according to any marine site polygonal wheel profile of user's structure, utilize method cutting, the outer zone of table skeleton line, mask sea of GIS, make up three-dimensional ocean water body surface, generate the main body of ocean water body cube model with parallel contour line " projection ".Outline line is moved downward to the depth capacity of submarine topography digital elevation model along the Z axle, and the flex point between two parallel contour lines on the above lower whorl profile is utilized OpenGL structure rectangular surfaces, and transparent demonstration.Size in ocean water body column X-axis, the Y-axis plane depends on the size of the closed polygon that the user draws in two-dimentional electronic chart, ocean water body degree of depth Z-direction is the depth capacity of submarine topography digital elevation model.
Described any marine site polygonal wheel profile according to user's structure makes up three-dimensional ocean water body surface, generate the main body step of ocean water body cube model with parallel contour line " projection ": after the three dimensional space coordinate system of OpenGL is set, its X-axis, Y-axis is consistent with the longitude and latitude volume coordinate of spatial data, utilize method cutting, the outer zone of table skeleton line, mask sea of GIS according to any marine site polygonal wheel profile of user's structure, make up three-dimensional ocean water body surface, as Fig. 5.Generate the main body of ocean water body cube model with parallel contour line " projection ", size in ocean water body column X-axis, the Y-axis plane depends on the size of the arbitrary polygon that the user draws in two-dimentional electronic chart, ocean water body degree of depth Z-direction is the depth capacity of submarine topography digital elevation model.
Describedly sea table is carried out pinup picture with the wave of the sea texture, submarine topography is converted to OpenGL primitive via digital elevation model, play up with the multiple light courcess parameter with solid color modeling procedure is set: utilize OpenGL to carry out the ocean wave texture at end face, the positional information of pinup picture derives from 2-d contour, Yin Haibiao is an arbitrary polygon, repeat to come table polygon mapping of " supplying " sea or cut texture so adopt with cutting around pattern " mirror image ", the submarine topography digital elevation model is converted to text file format earlier, describe out with OpenGL primitive again, thereby change into the discernible graph function of OpenGL, submarine topography adopts solid color to play up, and utilizes the illumination viewpoint position, direction of visual lines, illumination parameter is provided with the variation of reflection elevation.Light source and sight line method to set up are as follows:
Mobile light source of // definition with mobile camera moving
static?float[]ambient={0.5f,0.5f,0.5f,1.0f};
static?float[]diffuseLight={1.0f,1.0f,1.0f,1.0f};
static?float[]specularLight={1.0f,1.0f,1.0f,1.0f};
static?float[]lightPosition={0.0f,400.0f,200.0f,1.0f};
// initialization light source
GL.glEnable(GL.GL_LIGHTING);
// light source is set
GL.glLightfv(GL.GL_LIGHT0,GL.GL_AMBIENT,ambient);
GL.glLightfv(GL.GL_LIGHT0,GL.GL_DIFFUSE,diffuseLight);
GL.glLightfv(GL.GL_LIGHT0,GL.GL_SPECULAR,specularLight);
GL.glLightfv(GL.GL_LIGHT0,GL.GL_POSITION,lightPosition);
GL.glEnable(GL.GL_LIGHT0);
// dynamically arrange the light source function
public?static?void?SetLight()
{
Vector3vec=MyView.MyCamera.getPosition();
lightPosition=new?float[]{vec.x+0.0000000100f,
vec.y-0.000000003f,vec.z-0.180f,1.0f};
}
// sight line initialization vector value
Vector3zero=new?Vector3(0.0f,0.0f,0.0f);
Vector3view=new?Vector3(0.0f,1.0f,0.5f);
Vector3up=new?Vector3(0.0f,0.0f,1.0f);
//Vector3 is self-defining data type, is tri-vector data
Position=zero;
View=view;
UpVector=up;
// viewpoint position is set
public?void?setLook()
{
GL.gluLookAt(Position.x,Position.y,Position.z,View.x,
View.y,View.z,UpVector.x,UpVector.y,UpVector.z);
}
The described stretching by parallel contour line " projection " and terrain simulation obtains marine environment inverting data physical quantity xsect, transparent demonstration ocean water body surface obtains the effect of visualization step of all angles: the side of ocean water body column is used for expressing the situation of marine environment inverting data with change in depth, mode by parallel contour line " projection ", promptly utilize the method cutting of GIS, the outer zone of table skeleton line, mask sea is mapped to extra large table skeleton line on each hierarchical information of marine environment inverting data, obtains the interior xsect of 2-d contour scope of marine environment inverting data.Pixel through pretreated marine environment raster data collection is that (x, y value), comprise coordinate and physical quantity.Marine environment raster data collection is converted to OpenGL primitive via text, is stretched by terrain simulation again, is about to the coordinate of magnitude of physical quantity value as elevation direction Z, and stretching in the mode of digital elevation model obtains hierarchical information significantly intuitively.The ocean water body surface adopts transparent demonstration so that from each layering marine environment inverting data of arbitrarily angled perspective.
Embodiment
With the ocean remote sensing temperature retrieval data instance in March, 2006, at first the information that reads in its header file in the document flow mode is as follows:
Title Value Title Value Title Value
?Product ??SST ??Eyear ??2006 ??Project ??Equal?Lat/Lon
?Unit Degree ??Eday ??90 ??R_lat ??28
??Cycle ??31 ??Lat_max ??42.0000000000 ??R_lon ??117.5
??Number ??31 ??Lat_min ??14.0000000000 ??Row ??1681
??Syear ??2006 ??Lon_max ??130 ??Col ??1501
??Sday ??60 ??Lon_min ??105 ??Slope ??0
??Offset ??-2
The second, with the information stores in the header file in metadata table.Wherein, periodically the periodic quantity of product leaves in the metadata table, and the aperiodicity product is stored as 0, and with this data instance, periodic quantity is 31; Julian date is converted to the moon and day, and periodically the product time sheet is stored from date (2006-03-01), date of expiry (2006-03-31) herein; Above time storage object is consistent with time type in the SQL standard, so adopt the standard SQL language can inquire data set in the time set fast.
Three, the setting of scene coordinate system is finished along the translation in screen of vertical screen direction, coordinate system rotation and X, Y-axis coordinate unit unification to latitude and longitude coordinates in Z axle convergent-divergent, XY axial coordinate plane.
Four, the user delimit closed changeable shape arbitrarily, the line segment beyond the picture dot beyond the raster data mask outline line, vector data cutting outline line at the sea table.Ocean water body adopts the method for parallel contour line " projection ".Outline line is projected to the submarine topography curved surface, gets the maximum valley point of the interior depth of water DEM of curved surface of this drop shadow spread, with this plane that is parallel to the sea table of some structure.Two adjacent parallel surfaces have so just been constituted.Then, connect successively up and down that each point forms the rectangle curved surface on the outline line.
Five, texture object adopts the sea ripple BMP format-pattern of two dimension.To guarantee that when carrying out sea table texture each summit all specified texture coordinate.The area of observation coverage scope that the user delimit in the China sea zone is indefinite, and the width of BMP texture is with highly fixing, so left side, right side and the top of the BMP image of sea ripple, be connected effect preferably in order to reach when lower edge is adjacent, employing repeats and cutting around pattern " mirror image ", and the part of the discontented secondary texture size in table edge, sea utilizes the mode of cutting to supply.
Six, submarine topography adopts solid color to play up, and utilizes before the OpenGL drawing three-dimensional submarine topography model, and parameters such as light source, viewpoint position, direction of visual lines are set.
Seven, adopt test site outline line construction method to obtain ocean temperature, salinity, transparency physical quantity xsect equally, with magnitude of physical quantity as height value, adopt the mode identical, give expression to the variation of physical quantity with solid color and the mode that light source parameters is set with terrain modeling.Because physical quantity is the section that is arranged in body, so body surface need be provided with transparency, transparency is selected in (0,1) interval as required.
Fig. 7 is in March, the 2006 nearly South Sea marine site ocean water body and marine environment inverting data three-dimensional model that utilizes that said method creates.The marine environment data has here comprised temperature and transparency, has adopted layer colours, by the mode that physical quantity stretches, and the terrain simulation mode of utilizing height to rise and fall has been reproduced the trend that physical quantity changes.

Claims (7)

1. the modeling method of an ocean water body virtual reality is characterized in that comprising the steps:
1) by the data-switching service manner, proto-ocean remote sensing environment inverting data text form is automatically converted to the raster data collection;
2) data after the conversion have been carried out storage based on the time visual means, supported the space-time characterisation of magnanimity remote sensing raster data collection is carried out fast query;
3) spatial coordinate system of the three-dimensional ocean water body scene of OpenGL is set, and finishes the setting of scene coordinate system through Z axle convergent-divergent, coordinate system along the translation in screen of vertical screen direction, coordinate system rotation and X, Y-axis coordinate unit unification to latitude and longitude coordinates;
4) any marine site polygonal wheel profile according to user's structure makes up three-dimensional ocean water body surface, generates the main body of ocean water body cube model with parallel contour line " projection ";
5) with the wave of the sea texture sea table is carried out pinup picture, submarine topography is converted to OpenGL primitive via digital elevation model, plays up with the multiple light courcess parameter with solid color modeling is set;
6) obtain raster data collection physical quantity xsect by parallel contour line " projection " and terrain simulation stretching, transparent demonstration ocean water body surface obtains the effect of visualization of all angles.
2. according to the modeling method of the described a kind of ocean water body virtual reality of claim, it is characterized in that described by the data-switching service manner, proto-ocean remote sensing environment inverting data text form is automatically converted to raster data collection step: be that Head file header and data volume with proto-ocean environment inverting data reads in internal memory with the form of document flow, again its data organization mode according to the raster data collection is write the raster data collection, utilize the data file under the Internet information server detection destination folder, conversion warehouse-in back deletion source file.
3. according to the modeling method of the described a kind of ocean water body virtual reality of claim, it is characterized in that described data after the conversion having been carried out storage based on the time visual means, support is carried out the fast query step to the space-time characterisation of magnanimity remote sensing raster data collection: the storage based on the time visual means is with the production life cycle in the Head file header of proto-ocean environment inverting data, product rise time section, product rise time point is kept at the product metadata table respectively, periodically in tempon tables of data and the instantaneity tempon tables of data, with standard SQL time query statement, can inquire the data set in the time set fast.
4. according to the modeling method of the described a kind of ocean water body virtual reality of claim, the spatial coordinate system that it is characterized in that the three-dimensional ocean water body scene of described OpenGL is set, through Z axle convergent-divergent, coordinate system is along the translation in screen of vertical screen direction, coordinate system rotation and X, Y-axis coordinate unit unification to latitude and longitude coordinates is finished the scene coordinate system step is set: the X-axis of the world coordinate system of OpenGL acquiescence, Y-axis and Z axial coordinate unit length are unified, but consider the feature of ocean water body data, be that horizontal direction X coordinate range is that east longitude 180 is spent to west longitude 180 degree, the Y coordinate range is that north latitude 90 is spent to south latitude 90 degree, and the global ocean degree of depth does not wait by 0 meter to more than-10000 meter, X-axis, the coordinate unit length of Y direction and Z-direction differs more than the 2 multiple magnitudes, then can cause Z-direction too precipitous, the modeling poor effect, so, the unit length of Z axial coordinate is reduced into 1/100 of original length, it is X-axis, 1 unit length of Y-axis, on the Z axle 100, the XY axial plane of the world coordinate system of OpenGL scene and eye coordinates system coincides with screen plane, so need be with coordinate system along the translation in screen of vertical screen direction, world coordinate system is the right-handed Cartesian coordinate system system, the XY axial plane is parallel with screen, the sea level that generates scene parallels with screen, the general knowledge that this and sea level should be in horizontal direction is not inconsistent, therefore, will with coordinate system rotation to Z axially on, the X-axis level is to the right a positive dirction, Y-axis upwards is positive dirction.
5. according to the modeling method of the described a kind of ocean water body virtual reality of claim, it is characterized in that described any marine site polygonal wheel profile according to user's structure makes up three-dimensional ocean water body surface, generate the main body step of ocean water body cube model with parallel contour line " projection ": according to any marine site polygonal wheel profile of user's structure, utilize the method cutting of GIS, the outer zone of table skeleton line, mask sea, make up three-dimensional ocean water body surface, generate the main body of ocean water body cube model with parallel contour line " projection ", outline line is axially moved to the depth capacity of submarine topography digital elevation model down along Z, flex point between two parallel contour lines on the above lower whorl profile links to each other and utilizes OpenGL structure rectangular surfaces, and transparent demonstration, ocean water body column X-axis, size in the Y-axis plane depends on the size of the closed polygon that the user draws in two-dimentional electronic chart, ocean water body degree of depth Z-direction is the depth capacity of submarine topography digital elevation model.
6. according to the modeling method of the described a kind of ocean water body virtual reality of claim, it is characterized in that describedly sea table being carried out pinup picture with the wave of the sea texture, submarine topography is converted to OpenGL primitive via digital elevation model, play up with the multiple light courcess parameter with solid color modeling procedure is set: utilize OpenGL to carry out the ocean wave texture at end face, the positional information of pinup picture derives from 2-d contour, Yin Haibiao is an arbitrary polygon, repeat to come table polygon mapping of " supplying " sea or cut texture so adopt with cutting around pattern " mirror image ", the submarine topography digital elevation model is converted to text file format earlier, describe out with OpenGL primitive again, thereby change into the discernible graph function of OpenGL, submarine topography adopts solid color to play up, and utilizes the illumination viewpoint position, direction of visual lines, illumination parameter is provided with the variation of reflection elevation.
7. according to the modeling method of the described a kind of ocean water body virtual reality of claim, it is characterized in that described the stretching by parallel contour line " projection " and terrain simulation obtains raster data collection physical quantity xsect, transparent demonstration ocean water body surface obtains the effect of visualization step of all angles: the side of ocean water body column is used for expressing the situation of marine environment inverting data with change in depth, mode by parallel contour line " projection " is mapped to extra large table skeleton line on each hierarchical information of marine environment inverting data, obtain the interior xsect of 2-d contour scope of marine environment inverting data, pixel through pretreated marine environment raster data collection is (x, y, value), wherein comprise coordinate and physical quantity, marine environment raster data collection is converted to OpenGL primitive via text, stretch by terrain simulation again, be about to the coordinate of magnitude of physical quantity value as elevation direction Z, stretching in the mode of digital elevation model obtains hierarchical information intuitively, and the ocean water body surface adopts transparent demonstration so that from each layering marine environment inverting data of arbitrarily angled perspective.
CN200910100669A 2009-07-16 2009-07-16 Virtual-reality modeling method of ocean water body Pending CN101650837A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910100669A CN101650837A (en) 2009-07-16 2009-07-16 Virtual-reality modeling method of ocean water body

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910100669A CN101650837A (en) 2009-07-16 2009-07-16 Virtual-reality modeling method of ocean water body

Publications (1)

Publication Number Publication Date
CN101650837A true CN101650837A (en) 2010-02-17

Family

ID=41673066

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910100669A Pending CN101650837A (en) 2009-07-16 2009-07-16 Virtual-reality modeling method of ocean water body

Country Status (1)

Country Link
CN (1) CN101650837A (en)

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101937576A (en) * 2010-09-08 2011-01-05 北京航空航天大学 Dynamic texture waterfall modeling method combined with multiple physical attributes
CN102214368A (en) * 2010-04-07 2011-10-12 北京国遥新天地信息技术有限公司 Implementation method of three dimensional full-dimension digital globe
CN102509350A (en) * 2011-09-30 2012-06-20 北京航空航天大学 Cube-based sports event information visualization method
CN102798384A (en) * 2012-07-03 2012-11-28 天津大学 Ocean remote sensing image water color and water temperature monitoring method based on compression sampling
CN102831644A (en) * 2012-07-09 2012-12-19 哈尔滨工程大学 Marine environment information three-dimensional visualization method
CN102881037A (en) * 2012-09-28 2013-01-16 深圳第七大道网络技术有限公司 Method and device for drawing dynamic oceans in map
CN103198170A (en) * 2012-12-08 2013-07-10 北京工业大学 Method for creating finite element three-dimensional entity based on terrain remote sensing data
CN103854302A (en) * 2013-12-23 2014-06-11 哈尔滨工程大学 AUV navigation environmental space construction method under plurality of constraint conditions
CN104063904A (en) * 2013-06-03 2014-09-24 腾讯科技(深圳)有限公司 Method and device for simulating virtual scene real-time processing
CN105006009A (en) * 2015-07-02 2015-10-28 广东小天才科技有限公司 2D water simulation method
CN105278905A (en) * 2014-07-08 2016-01-27 三星电子株式会社 Device and method to display object with visual effect
CN106372367A (en) * 2016-09-30 2017-02-01 浙江大学 Visual simulation method for Argo float ocean product
CN107918949A (en) * 2017-12-11 2018-04-17 网易(杭州)网络有限公司 Rendering intent, storage medium, processor and the terminal of virtual resource object
CN108230436A (en) * 2017-12-11 2018-06-29 网易(杭州)网络有限公司 The rendering intent of virtual resource object in three-dimensional scenic
CN108305307A (en) * 2017-01-13 2018-07-20 北大方正集团有限公司 The implementation method of three-dimensional geometry body animation realizes system and terminal
CN109297530A (en) * 2018-08-06 2019-02-01 广州海洋地质调查局 A kind of multi-environment element information fusion method of the full water column in deep-sea and processing terminal
CN110008363A (en) * 2019-03-19 2019-07-12 中国科学院国家空间科学中心 A kind of visualized data analysis method, system, equipment and the storage medium of Advanced Orbiting Systems
CN110188488A (en) * 2019-06-03 2019-08-30 中国石油大学(华东) A kind of sea bed gas hydrate is appeared and the emulation mode and system of surrounding enviroment
CN110568416A (en) * 2019-09-17 2019-12-13 南京莱斯网信技术研究院有限公司 radar effective detection area extraction method based on remote sensing image
CN111324658A (en) * 2020-02-19 2020-06-23 深圳震有科技股份有限公司 Ocean temperature visual analysis method, intelligent terminal and storage medium
WO2022048036A1 (en) * 2020-09-02 2022-03-10 北京冰封互娱科技有限公司 Water body configuration method, device, equipment, and storage medium
CN114638912A (en) * 2022-03-16 2022-06-17 广州博进信息技术有限公司 Space-time visualization and interaction method, medium and equipment for marine science vector data

Cited By (33)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102214368A (en) * 2010-04-07 2011-10-12 北京国遥新天地信息技术有限公司 Implementation method of three dimensional full-dimension digital globe
CN101937576A (en) * 2010-09-08 2011-01-05 北京航空航天大学 Dynamic texture waterfall modeling method combined with multiple physical attributes
CN101937576B (en) * 2010-09-08 2013-02-06 北京航空航天大学 Dynamic texture waterfall modeling method combined with multiple physical attributes
CN102509350A (en) * 2011-09-30 2012-06-20 北京航空航天大学 Cube-based sports event information visualization method
CN102509350B (en) * 2011-09-30 2013-12-25 北京航空航天大学 Cube-based sports event information visualization method
CN102798384A (en) * 2012-07-03 2012-11-28 天津大学 Ocean remote sensing image water color and water temperature monitoring method based on compression sampling
CN102798384B (en) * 2012-07-03 2014-09-17 天津大学 Ocean remote sensing image water color and water temperature monitoring method based on compression sampling
CN102831644A (en) * 2012-07-09 2012-12-19 哈尔滨工程大学 Marine environment information three-dimensional visualization method
CN102881037A (en) * 2012-09-28 2013-01-16 深圳第七大道网络技术有限公司 Method and device for drawing dynamic oceans in map
CN102881037B (en) * 2012-09-28 2015-01-21 深圳第七大道网络技术有限公司 Method and device for drawing dynamic oceans in map
CN103198170A (en) * 2012-12-08 2013-07-10 北京工业大学 Method for creating finite element three-dimensional entity based on terrain remote sensing data
CN104063904B (en) * 2013-06-03 2016-02-17 腾讯科技(深圳)有限公司 A kind of method and apparatus of simulating virtual scene and processing in real time
CN104063904A (en) * 2013-06-03 2014-09-24 腾讯科技(深圳)有限公司 Method and device for simulating virtual scene real-time processing
CN103854302B (en) * 2013-12-23 2016-09-28 哈尔滨工程大学 A kind of AUV navigation environment space construction process under multi-constraint condition
CN103854302A (en) * 2013-12-23 2014-06-11 哈尔滨工程大学 AUV navigation environmental space construction method under plurality of constraint conditions
CN105278905A (en) * 2014-07-08 2016-01-27 三星电子株式会社 Device and method to display object with visual effect
CN105278905B (en) * 2014-07-08 2022-06-21 三星电子株式会社 Apparatus and method for displaying object having visual effect
CN105006009B (en) * 2015-07-02 2020-03-24 广东小天才科技有限公司 2D water simulation method
CN105006009A (en) * 2015-07-02 2015-10-28 广东小天才科技有限公司 2D water simulation method
CN106372367A (en) * 2016-09-30 2017-02-01 浙江大学 Visual simulation method for Argo float ocean product
CN108305307A (en) * 2017-01-13 2018-07-20 北大方正集团有限公司 The implementation method of three-dimensional geometry body animation realizes system and terminal
CN107918949A (en) * 2017-12-11 2018-04-17 网易(杭州)网络有限公司 Rendering intent, storage medium, processor and the terminal of virtual resource object
CN108230436A (en) * 2017-12-11 2018-06-29 网易(杭州)网络有限公司 The rendering intent of virtual resource object in three-dimensional scenic
CN109297530B (en) * 2018-08-06 2019-08-23 广州海洋地质调查局 A kind of multi-environment element information fusion method of the full water column in deep-sea and processing terminal
CN109297530A (en) * 2018-08-06 2019-02-01 广州海洋地质调查局 A kind of multi-environment element information fusion method of the full water column in deep-sea and processing terminal
CN110008363A (en) * 2019-03-19 2019-07-12 中国科学院国家空间科学中心 A kind of visualized data analysis method, system, equipment and the storage medium of Advanced Orbiting Systems
CN110008363B (en) * 2019-03-19 2021-10-22 中国科学院国家空间科学中心 Visual data analysis method, system, equipment and storage medium of advanced on-orbit system
CN110188488A (en) * 2019-06-03 2019-08-30 中国石油大学(华东) A kind of sea bed gas hydrate is appeared and the emulation mode and system of surrounding enviroment
CN110188488B (en) * 2019-06-03 2023-04-07 中国石油大学(华东) Simulation method and system for seabed natural gas hydrate outcrop and surrounding environment
CN110568416A (en) * 2019-09-17 2019-12-13 南京莱斯网信技术研究院有限公司 radar effective detection area extraction method based on remote sensing image
CN111324658A (en) * 2020-02-19 2020-06-23 深圳震有科技股份有限公司 Ocean temperature visual analysis method, intelligent terminal and storage medium
WO2022048036A1 (en) * 2020-09-02 2022-03-10 北京冰封互娱科技有限公司 Water body configuration method, device, equipment, and storage medium
CN114638912A (en) * 2022-03-16 2022-06-17 广州博进信息技术有限公司 Space-time visualization and interaction method, medium and equipment for marine science vector data

Similar Documents

Publication Publication Date Title
CN101650837A (en) Virtual-reality modeling method of ocean water body
CN103714167B (en) A kind of online 3 D displaying method of disaster information space-time data
CN105069020A (en) 3D visualization method and system of natural resource data
CN108919944A (en) A kind of virtual roaming method carrying out data lossless interaction in display end based on digital city model realization
Zhao Application of 3D CAD in landscape architecture design and optimization of hierarchical details
CN107330964A (en) A kind of display methods and system of complex three-dimensional object
Lu et al. Design and implementation of virtual interactive scene based on unity 3D
CN105184843B (en) A kind of three-dimensional animation manufacturing method based on OpenSceneGraph
CN111986306A (en) Integrated data display and simulation platform
Li et al. A VR-Ocean system for interactive geospatial analysis and 4D visualization of the marine environment around Antarctica
CN113421338A (en) Method for three-dimensional rendering of two-dimensional vector
Zhang et al. [Retracted] Virtual Reality Design and Realization of Interactive Garden Landscape
CN117422839A (en) GIS system based on multidimensional space geographic information big data and GIS system service method
Fanini et al. A new approach from 3D modelling and scanning of archaeological data to realtime online exploration
Yutong et al. Research on model optimization based on 3DS max modeling
CN114627258B (en) Method and system for isomorphic modeling of gravity field catamaran spheres
Fricker et al. Intuitive design through information maps
CN109147041A (en) A kind of water bodies management analogue system based on virtual reality technology
Yang et al. Three-dimension visualization of environmental scalar data based on GeoSOT-3D Grids
Ling et al. Landscape conservation design based on digital technology support
He et al. Research and Implementation of Oblique Photography Productions on the WEB3D Visualization of Digtal Earth
Duan et al. Design and Implementation of Virtual Campus Roaming System Based on OpenGL and 3Ds Max
Yin et al. Digital Reconstruction and Virtual Roaming Technology of Tourism Landscape Art Based on CAD
Wen Construction of Three-Dimensional Indoor Environment Design System Based on Artificial Intelligence Algorithm
Fu et al. Study on realization of dynamic interaction with CAD complex model in virtual reality system

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

Open date: 20100217