Sea and land combined visualization method based on OSG three-dimensional engine
A 3D engine and 3D scene technology, applied in the field of graphic visualization, can solve the problems of affecting scene rendering efficiency, high calculation cost, unreasonable sea and land visualization effects, etc., and achieve the effect of avoiding frequent flashing and ensuring efficiency
- 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::Viewerviewer;
[0048] osg::Group*root=newosg::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 configu...
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] H = H 0 + d i s tan c e 5 6 × W ÷ h d i s tan c ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 