Changeset 65
- Timestamp:
- Dec 15, 2004, 11:51:37 PM (20 years ago)
- Location:
- Swollen
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
Swollen/doc/contract2_hours.txt
r62 r65 4 4 5 5 6 15 December, Wednesday (4 hours) 7 - changed Visual Studio solution to compile new GDAL code 8 - work on understanding lack of bedslope lighting 6 9 7 1 5December, Tuesday (4 hours)10 14 December, Tuesday (4 hours) 8 11 - added -texture <filename> option for bedslope image 9 12 - other code cleanups related to handling georeferenced data 10 13 - small amount of work on background thread for data read 11 14 12 1 4December, Monday (6 hours)15 15 December, Monday (6 hours) 13 16 - visit to GA, swollen now compiling on-site under Windows/Visual Studio .NET 14 17 - added command line params for tweaking transparency (see "swollen -help") -
Swollen/doc/contract2_priorities.txt
r62 r65 49 49 - cairns dataset reveals popping triangles (zbuffer?) 50 50 - steepcull dataset reveals steep angle cull problem 51 - dragging sww onto swollen (all in one directory) does not produce the same results as calling from command line 52 - Problems with Duncan's, Chris' and Stephen Roberts' machines at GA: Swollen won't render semi transparency. 53 Swwviewer works fine. (This appeared to work on Dunca's computer 13/12/4?). 51 - dragging sww onto swollen (all in one directory) does not produce the same results as 52 calling from command line 53 - Problems with Duncan's, Chris' and Stephen Roberts' machines at GA: Swollen won't render semi 54 transparency. Swwviewer works fine. (This appeared to work on Dunca's computer 13/12/4?). 54 55 - toggle wireframe not working on Mac 55 56 … … 57 58 BUGS FIXED: 58 59 60 - can no longer make model disappear by pushing back through sky [2004-12-15] 59 61 - Swollen starts up showing first time step, not zeroth (even though clock shows zero). Stepping one 60 62 forward and one back, bring things into sync. [2004-12-01] -
Swollen/swollen/bedslope.cpp
r64 r65 47 47 texture->setImage( _sww->getBedslopeTexture() ); 48 48 49 // material 50 _material = new osg::Material(); 51 _material->setAmbient( osg::Material::FRONT_AND_BACK, osg::Vec4(0.2, 0.2, 0.2, 1.0) ); 52 _material->setDiffuse( osg::Material::FRONT_AND_BACK, osg::Vec4(1.0, 1.0, 1.0, 1.0) ); 53 _material->setSpecular( osg::Material::FRONT_AND_BACK, osg::Vec4(0.8, 0.8, 0.8, 1.0) ); 54 _material->setEmission( osg::Material::FRONT_AND_BACK, osg::Vec4(0.0, 0.0, 0.0, 1.0) ); 55 56 49 57 // state 50 58 _stateset = new osg::StateSet; 51 //_stateset->setTextureAttributeAndModes( 0, texture, osg::StateAttribute::ON ); 59 _stateset->setTextureAttributeAndModes( 0, texture, osg::StateAttribute::ON ); 60 _stateset->setAttributeAndModes(_material, osg::StateAttribute::ON | osg::StateAttribute::OVERRIDE ); 52 61 _stateset->setMode( GL_BLEND, osg::StateAttribute::ON ); 53 62 _stateset->setMode( GL_LIGHTING, osg::StateAttribute::ON ); -
Swollen/swollen/bedslope.h
r45 r65 16 16 #include <SWWReader.h> 17 17 #include <osg/Geode> 18 #include <osg/Material> 18 19 #include <osg/StateAttribute> 19 20 … … 35 36 osg::Geometry* _geom; 36 37 osg::StateSet* _stateset; 38 osg::Material* _material; 37 39 virtual ~BedSlope(){;} 38 40 -
Swollen/swollen/createSky.cpp
r63 r65 1 1 2 #include <osg/Depth> 2 3 #include <osg/Geode> 3 4 #include <osg/Geometry> … … 57 58 stateset->setTextureAttributeAndModes( 0, texture, osg::StateAttribute::ON ); 58 59 stateset->setMode( GL_LIGHTING, osg::StateAttribute::OFF ); 60 61 // to prevent being able to push the model back through the sky, we 62 // do two things (i) ensure sky is drawn first, and (ii) skip writing 63 // to the depth buffer 64 stateset->setRenderBinDetails( -1, "RenderBin" ); 65 osg::Depth* depth = new osg::Depth(); 66 depth->setWriteMask( false ); 67 stateset->setAttributeAndModes( depth, osg::StateAttribute::ON ); 68 59 69 geom->setStateSet( stateset ); 60 geom->setUseDisplayList(true); 61 62 70 geom->setUseDisplayList( true ); 63 71 geode->addDrawable(geom); 64 72 65 73 osg::Transform* transform = new MoveHorizonWithEyePointTransform; 66 transform->setCullingActive( false);67 transform->addChild( geode);74 transform->setCullingActive( false ); 75 transform->addChild( geode ); 68 76 69 77 return transform; -
Swollen/swollen/customviewer.cpp
r6 r65 57 57 58 58 59 if (!_updateVisitor) _updateVisitor = new osgUtil::UpdateVisitor; 59 if (!_updateVisitor) _updateVisitor = new osgUtil::UpdateVisitor; 60 60 _updateVisitor->setFrameStamp(_frameStamp.get()); 61 61 -
Swollen/swollen/main.cpp
r64 r65 125 125 // Lighting 126 126 SpotLight* spotlight = new SpotLight(rootStateSet); 127 spotlight->setPosition( osg::Vec3( 2,0,2) ); // z is up127 spotlight->setPosition( osg::Vec3(1,0,1) ); // z is up 128 128 spotlight->setSpotAngle( 45.0 ); 129 129 -
Swollen/swollen/spotlight.cpp
r64 r65 7 7 #define DEF_DEFAULT_ANGLE 45 8 8 #define DEF_DEFAULT_EXPONENT 10 9 #define DEF_DEFAULT_CONE_RADIUS 0. 0510 #define DEF_DEFAULT_CONE_HEIGHT 0. 19 #define DEF_DEFAULT_CONE_RADIUS 0.125 10 #define DEF_DEFAULT_CONE_HEIGHT 0.25 11 11 12 12 … … 23 23 _light->setAmbient(osg::Vec4(0.0,0.0,0.0,1)); 24 24 _light->setDiffuse(osg::Vec4(1,1,1,1)); 25 _light->setSpecular(osg::Vec4(1, 0,0,1));25 _light->setSpecular(osg::Vec4(1,1,1,1)); 26 26 _light->setSpotCutoff(DEF_DEFAULT_ANGLE); 27 27 _light->setSpotExponent(DEF_DEFAULT_EXPONENT);
Note: See TracChangeset
for help on using the changeset viewer.