OSGQuadTreeTerrain.cpp File Reference
#include <cstdlib>#include <cstdio>#include <sstream>#include "OSGConfig.h"#include "OSGQuadTreeTerrain.h"#include "OSGImage.h"#include "OSGRenderAction.h"#include "OSGMaterial.h"#include "OSGChunkMaterial.h"#include "OSGTextureObjChunk.h"#include "OSGTextureEnvChunk.h"#include "OSGSimpleSHLVariableChunk.h"#include "OSGTypedGeoIntegralProperty.h"Go to the source code of this file.
Namespaces | |
| namespace | OSG |
helper functions to dump a volume. Useful for debugger. | |
Variables | |
| static const Real32 | MinGlobalRes = 10.0f |
| static const UInt32 | NW = 0 |
| static const UInt32 | W = 1 |
| static const UInt32 | SW = 2 |
| static const UInt32 | S = 3 |
| static const UInt32 | SE = 4 |
| static const UInt32 | E = 5 |
| static const UInt32 | NE = 6 |
| static const UInt32 | N = 7 |
| static const UInt32 | C = 8 |
| static std::string | _vp_program |
| static std::string | _fp_program |
| static SimpleSHLChunkMTRecPtr | s_shlChunk |
| static std::string | _avp_program |
| static std::string | _afp_program |
Variable Documentation
const Real32 MinGlobalRes = 10.0f [static] |
Definition at line 77 of file OSGQuadTreeTerrain.cpp.
Referenced by OSG::QuadTreeTerrain::calcSubDiv(), and OSG::QuadTreeTerrain::propagateD2Errors().
const UInt32 NW = 0 [static] |
Definition at line 79 of file OSGQuadTreeTerrain.cpp.
Referenced by OSG::QuadTreeTerrain::createFanAround(), OSG::QuadTreeTerrain::getHeight(), and OSG::QuadTreeTerrain::renderMeshRec().
const UInt32 W = 1 [static] |
Definition at line 80 of file OSGQuadTreeTerrain.cpp.
Referenced by OSG::QuadTreeTerrain::createFanAround(), OSG::QuadTreeTerrain::getHeight(), and OSG::QuadTreeTerrain::renderMeshRec().
const UInt32 SW = 2 [static] |
Definition at line 81 of file OSGQuadTreeTerrain.cpp.
Referenced by OSG::QuadTreeTerrain::createFanAround(), OSG::QuadTreeTerrain::getHeight(), and OSG::QuadTreeTerrain::renderMeshRec().
const UInt32 S = 3 [static] |
Definition at line 82 of file OSGQuadTreeTerrain.cpp.
Referenced by OSG::QuadTreeTerrain::createFanAround(), OSG::TransformationMatrix< ValueTypeT >::decompose(), OSG::QuadTreeTerrain::getHeight(), OSG::QuadTreeTerrain::renderMeshRec(), and OSG::TransformationMatrix< ValueTypeT >::spectralDecompose().
const UInt32 SE = 4 [static] |
Definition at line 83 of file OSGQuadTreeTerrain.cpp.
Referenced by OSG::QuadTreeTerrain::createFanAround(), OSG::QuadTreeTerrain::getHeight(), and OSG::QuadTreeTerrain::renderMeshRec().
const UInt32 E = 5 [static] |
Definition at line 84 of file OSGQuadTreeTerrain.cpp.
Referenced by OSG::QuadTreeTerrain::createFanAround(), OSG::QuadTreeTerrain::getHeight(), OSG::Line::intersect(), OSG::QuadTreeTerrain::renderMeshRec(), OSG::TypeTraits< Real64 >::ZeroEps(), and OSG::TypeTraits< Real32 >::ZeroEps().
const UInt32 NE = 6 [static] |
Definition at line 85 of file OSGQuadTreeTerrain.cpp.
Referenced by OSG::QuadTreeTerrain::createFanAround(), OSG::QuadTreeTerrain::getHeight(), and OSG::QuadTreeTerrain::renderMeshRec().
const UInt32 N = 7 [static] |
Definition at line 86 of file OSGQuadTreeTerrain.cpp.
Referenced by OSG::QuadTreeTerrain::createFanAround(), OSG::TransformationMatrix< ValueTypeT >::exp(), OSG::TransformationMatrix< ValueTypeT >::expOf(), OSG::QuadTreeTerrain::getHeight(), and OSG::QuadTreeTerrain::renderMeshRec().
const UInt32 C = 8 [static] |
Definition at line 87 of file OSGQuadTreeTerrain.cpp.
Referenced by OSG::QuadTreeTerrain::createFanAround(), OSG::QuadTreeTerrain::doRenderEnter(), OSG::QuadTreeTerrain::getHeight(), and OSG::QuadTreeTerrain::renderMeshRec().
std::string _vp_program [static] |
Definition at line 212 of file OSGQuadTreeTerrain.cpp.
Referenced by OSG::QuadTreeTerrain::addMaterialChunks(), and OSG::QuadTreeTerrain::createSHLChunk().
std::string _fp_program [static] |
Definition at line 251 of file OSGQuadTreeTerrain.cpp.
Referenced by OSG::QuadTreeTerrain::addMaterialChunks(), and OSG::QuadTreeTerrain::createSHLChunk().
SimpleSHLChunkMTRecPtr s_shlChunk [static] |
Definition at line 296 of file OSGQuadTreeTerrain.cpp.
Referenced by OSG::QuadTreeTerrain::addMaterialChunks(), and OSG::QuadTreeTerrain::changed().
std::string _avp_program [static] |
Definition at line 321 of file OSGQuadTreeTerrain.cpp.
Referenced by OSG::QuadTreeTerrain::createVPChunk().
std::string _afp_program [static] |
"!!ARBfp1.0\n" "PARAM c[9] = { program.local[0..4], { 0.5, 2, 0, 1 }, program.local[6..8] };\n" "TEMP R0;\n" "TEMP R1;\n" "MOV R0.w, c[4].x;\n" "MOV R0.z, c[3].x;\n" "MOV R0.x, c[1];\n" "MOV R0.y, c[2].x;\n" "MAD R0.xy, fragment.texcoord[0], R0, R0.zwzw;\n" "TEX R0.xyz, R0, texture[1], 2D;\n" "ADD R0.xyz, R0, -c[5].x;\n" "MUL R1.xyz, R0, c[5].y;\n" "DP3 R0.x, fragment.texcoord[1], R1;\n" "MUL R1.xyz, R0.x, R1;\n" "MAD R1.xyz, -R1, c[5].y, fragment.texcoord[1];\n" "DP3 R0.y, R1, fragment.texcoord[2];\n" "MAX R0.y, R0, c[5].z;\n" "POW R0.y, R0.y, c[7].x;\n" "MUL R0.y, R0, c[8].x;\n" "MIN R1.x, R0.y, c[5].w;\n" "MAX R0.w, R0.x, c[5].z;\n" "TEX R0.xyz, fragment.texcoord[0], texture[0], 2D;\n" "MAD R0.w, R0, c[6].x, R1.x;\n" "MUL R0.xyz, R0, c[0];\n" "MUL_SAT result.color.xyz, R0, R0.w;\n" "MOV result.color.w, c[5];\n" "MOV result.color, c[5];\n" "END\n" "# 22 instructions, 2 R-regs\n"
Definition at line 379 of file OSGQuadTreeTerrain.cpp.
Referenced by OSG::QuadTreeTerrain::createFPChunk().
