- Timestamp:
- Nov 28, 2004, 10:50:14 PM (20 years ago)
- Location:
- Swollen
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Swollen/swollen/hud.cpp
r6 r33 55 55 // scenegraph 56 56 osg::MatrixTransform* xfm = new osg::MatrixTransform; 57 xfm->setReferenceFrame(osg::Transform:: RELATIVE_TO_ABSOLUTE);57 xfm->setReferenceFrame(osg::Transform::ABSOLUTE_RF); 58 58 xfm->setMatrix(osg::Matrix::identity()); 59 59 osg::Geode* textnode = new osg::Geode; … … 83 83 _title->setText(s); 84 84 } 85 -
Swollen/swollen/spotlight.cpp
r6 r33 28 28 // Scenegraph node 29 29 _source = new osg::LightSource; 30 _source->setReferenceFrame( osg::LightSource::RELATIVE_ TO_PARENTS);30 _source->setReferenceFrame( osg::LightSource::RELATIVE_RF ); 31 31 _source->setLight(_light); 32 32 _source->setLocalStateSetModes( osg::StateAttribute::ON ); -
Swollen/swwreader/swwreader.cpp
r13 r33 120 120 _yscale = 1.0/(ymax - ymin); _yoffset = ymin; 121 121 _zscale = (zmax==zmin) ? 1.0 : 1.0/(zmax - zmin); _zoffset = zmin; 122 123 #ifdef DEBUG 122 124 std::cout << "xmin: " << xmin << std::endl; 123 125 std::cout << "xmax: " << xmax << std::endl; … … 129 131 std::cout << "yscale: " << _yscale << std::endl; 130 132 std::cout << "zscale: " << _zscale << std::endl; 131 133 #endif 132 134 133 135 // culling defaults
Note: See TracChangeset
for help on using the changeset viewer.