Changeset 33 for Swollen


Ignore:
Timestamp:
Nov 28, 2004, 10:50:14 PM (20 years ago)
Author:
darran
Message:
  • Added toplevel makefile
  • minor edits
Location:
Swollen
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • Swollen/swollen/hud.cpp

    r6 r33  
    5555    // scenegraph
    5656    osg::MatrixTransform* xfm = new osg::MatrixTransform;
    57     xfm->setReferenceFrame(osg::Transform::RELATIVE_TO_ABSOLUTE);
     57    xfm->setReferenceFrame(osg::Transform::ABSOLUTE_RF);
    5858    xfm->setMatrix(osg::Matrix::identity());
    5959    osg::Geode* textnode = new osg::Geode;
     
    8383    _title->setText(s);
    8484}
     85
  • Swollen/swollen/spotlight.cpp

    r6 r33  
    2828    // Scenegraph node
    2929    _source = new osg::LightSource;
    30     _source->setReferenceFrame( osg::LightSource::RELATIVE_TO_PARENTS );
     30    _source->setReferenceFrame( osg::LightSource::RELATIVE_RF );
    3131    _source->setLight(_light);
    3232    _source->setLocalStateSetModes( osg::StateAttribute::ON );
  • Swollen/swwreader/swwreader.cpp

    r13 r33  
    120120    _yscale = 1.0/(ymax - ymin);  _yoffset = ymin;
    121121    _zscale = (zmax==zmin) ? 1.0 : 1.0/(zmax - zmin);  _zoffset = zmin;
     122
     123#ifdef DEBUG
    122124    std::cout << "xmin: " << xmin << std::endl;
    123125    std::cout << "xmax: " << xmax << std::endl;
     
    129131    std::cout << "yscale: " << _yscale << std::endl;
    130132    std::cout << "zscale: " << _zscale << std::endl;
    131 
     133#endif
    132134
    133135    // culling defaults
Note: See TracChangeset for help on using the changeset viewer.