Changeset 298
- Timestamp:
- Jul 18, 2011, 8:48:00 PM (13 years ago)
- Location:
- osgVisual/trunk
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/trunk/CMakeLists.txt
r244 r298 18 18 ################################################################################################# 19 19 20 cmake_minimum_required(VERSION 2.8)20 cmake_minimum_required(VERSION 3.0) 21 21 22 22 … … 305 305 include/util/visual_util.h 306 306 src/util/visual_util.cpp 307 include/util/terrainQuery.h 308 src/util/terrainQuery.cpp 307 309 # Draw 2D 308 310 include/draw2D/visual_draw2D.h -
osgVisual/trunk/bin/osgVisualConfig.xml
r296 r298 2 2 <osgvisualconfiguration> 3 3 <module name="distortion" enabled="no"> 4 <distortion channelname=" center" renderimplementation="fbo" width="2048" height="2048" useshader="yes" hdr="yes" usetexturerectangle="no"></distortion>4 <distortion channelname="right" renderimplementation="fbo" width="1920" height="1200" useshader="yes" hdr="no" usetexturerectangle="no"></distortion> 5 5 </module> 6 6 <module name="sky_silverlining" enabled="yes"></module> … … 15 15 16 16 <scenery> 17 <terrain filename="D:/OpenSceneGraph/VPB-Testdatensatz/DB_Small/database.ive.terrainmod" filename2="J:\BRD1m_MUC0.25m_srtmEU_BM\terrain.ive.terrainmod" filename3="axes.osg.10000000.scale"></terrain> 17 <!-- <terrain filename="D:/OpenSceneGraph/VPB-Testdatensatz/DB_Small/database.ive.terrainmod" filename2="H:\BRD1m_MUC0.25m_srtmEU_BM\terrain.ive" filename3="axes.osg.10000000.scale"></terrain>--> 18 <terrain filename="D:/OpenSceneGraph/VPB-Testdatensatz/DB_Small/database.ive.terrainmod" filename2="H:\BRD1m_MUC0.25m_srtmEU_BM\terrain.ive"></terrain> 18 19 <animationpath filename="airport_muc.path"></animationpath> 19 20 <models> -
osgVisual/trunk/resources/distortion/shader.frag
r147 r298 12 12 blendColor = texture2D(textureBlend, gl_TexCoord[0].st); 13 13 14 texCoord.s = (distortColor.b + mod(floor(distortColor.r * 255.5), 16.0)) / 16.0; 15 texCoord.t = 1.0 - (distortColor.g + floor(distortColor.r * 255.5 / 16.0)) / 16.0; 14 // modified 15 // texCoord.s = (distortColor.b / 255.0 + mod(distortColor.r , 16.0)) / 16.0; 16 // texCoord.t = 1.0 - (distortColor.g / 255.0 + (distortColor.r / 16.0)) / 16.0; 17 18 // Original 19 texCoord.s = (distortColor.b + mod(floor(distortColor.r * 255.5), 16.0)) / 16.0; 20 texCoord.t = 1.0 - (distortColor.g + floor(distortColor.r * 255.5 / 16.0)) / 16.0; 16 21 17 22 gl_FragColor = texture2D(textureImage, texCoord.st) * blendColor; 18 23 } 24 25 -
osgVisual/trunk/src/draw2D/visual_debug_hud.cpp
r221 r298 16 16 17 17 #include <visual_debug_hud.h> 18 #include <osgSim/HeightAboveTerrain> 18 19 19 20 using namespace osgVisual; … … 141 142 142 143 util::getWGS84ofCamera( sceneCamera, csn, lat, lon, alt ); 143 util::queryHeightAboveTerrainInWGS84(hat, csn, lat, lon, alt); 144 util::queryHeightOfTerrain(hot, csn, lat, lon); 144 //util::queryHeightAboveTerrainInWGS84(hat, csn, lat, lon, alt); 145 //util::queryHeightOfTerrain(hot, csn, lat, lon); 146 147 double x = 0; 148 double y = 0; 149 double z = 0; 150 151 util::getXYZofCamera( sceneCamera, x, y, z ); 152 hat = osgSim::HeightAboveTerrain::computeHeightAboveTerrain(csn, osg::Vec3d(x,y,z), false); 153 hot = osgSim::HeightAboveTerrain::computeHeightOfTerrain(csn, osg::Vec3d(x,y,z), false); 145 154 146 155 -
osgVisual/trunk/src/sky_Silverlining/skySilverLining_skyDrawable.cpp
r296 r298 80 80 //direction = view * direction; 81 81 direction.normalize(); 82 OSG_NOTIFY( osg::ALWAYS) << "X: "<<direction.x()<<" Y: "<<direction.y()<<" Z:"<<direction.z()<< std::endl;83 84 double cx,cy,cz;85 util::getXYZofCamera(_view->getCamera(), cx, cy, cz);86 osg::Vec3d up(cx, cy, cz);87 //up.normalize();88 //util::AddCylinderBetweenPoints(osg::Vec3d(cx,cy,cz), direction*15000000 , 5000.0, osg::Vec4d(1.0, 1.0, 0.0, 1 ), sceneRoot);89 util::AddCylinderBetweenPoints(osg::Vec3d(0,0,0), direction*15000000 , 5000.0, osg::Vec4d(0.0, 1.0, 1.0, 1 ), sceneRoot);90 91 82 92 83 light->setAmbient(ambient);
Note: See TracChangeset
for help on using the changeset viewer.