A visualization method of sea-land joint based on osg three-dimensional engine
A 3D engine and engine technology, applied in image data processing, 3D modeling, instruments, etc., can solve problems that affect scene rendering efficiency, high calculation cost, unreasonable sea and land visualization effects, etc., to avoid frequent flickering and ensure efficiency Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0044] Such as figure 1 Shown is a schematic diagram of the solution process for implementing a solution using the OSG three-dimensional rendering engine to simultaneously visualize the ocean and land in the present invention. The steps in the process are described in detail below:
[0045] Step 1. Use the OSG 3D rendering engine to build a 3D scene frame.
[0046] Create terrain nodes and ocean nodes respectively, and mount them to the root node of the OSG scene tree. The sample code is as follows:
[0047] osgViewer::Viewer viewer;
[0048] osg::Group*root=new osg::Group; / / Establish root node
[0049] root->addChild(scene->getScene()); / / add ocean node
[0050] root->addChild(islandTransform.get()); / / add terrain node
[0051] viewer.setSceneData(root); / / Link the viewer with the scene tree
[0052] Step 2: Use VPB to generate large-scale terrain model files. The existing terrain elevation data and texture data are used as input, and the ive model file is output by confi...
Embodiment 2
[0074] If the solution is to focus on ocean and land strobes when observing ocean effects, change the minus sign in the formula to a plus sign, namely:
[0075]
[0076] During the running of the program, the height of the ocean model is continuously raised to increase the depth buffer of the ocean and land, and avoid the flickering of the two. The corresponding operation result is Figure 8 , 9 shown.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


