Changeset 60
- Timestamp:
- Dec 14, 2004, 5:34:50 PM (20 years ago)
- Location:
- Swollen
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Swollen/doc/contract2_priorities.txt
r50 r60 50 50 - steepcull dataset reveals steep angle cull problem 51 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. Swwviewer works fine. (This appeared to work on Dunca's computer 13/12/4?). 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?). 54 - toggle wireframe not working on Mac 53 55 54 56 … … 90 92 - Concept of 'buildings' and shaking them [0] 91 93 - Interactive positioning of light(s) [0] 92 93 94 94 - user feedback should differentiate between "sww file not found" and 95 95 "sww file couldn't read" [1] -
Swollen/swollen/main.cpp
r53 r60 167 167 viewer.getTrackball()->setAutoComputeHomePosition( false ); 168 168 viewer.getTrackball()->setHomePosition( 169 osg::Vec3d(0,-3, 2), // camera location169 osg::Vec3d(0,-3,0), // camera location 170 170 osg::Vec3d(0,0,0), // camera target 171 171 osg::Vec3d(0,0,1) ); // camera up vector -
Swollen/swollen/watersurface.cpp
r54 r60 36 36 _node->setStateSet(_stateset); 37 37 38 _geom->setUseDisplayList(true); 38 // FIXME: if set to true, wireframe doesn't work - need to dirty to force update? 39 _geom->setUseDisplayList( false ); 39 40 40 41 // initial geometry -
Swollen/swwreader/swwreader.cpp
r59 r60 284 284 285 285 // stage height above bedslope mapped as alpha value 286 // 287 // Transparancy alpha is calculated as 288 // 289 // alpha = min( a(h-hmin) + alphamin, alphamax), h >= hmin 290 // alpha = 0, h < hmin 291 // 286 // alpha = min( a(h-hmin) + alphamin, alphamax), h >= hmin 287 // alpha = 0, h < hmin 292 288 // where a = (alphamax-alphamin)/(hmax-hmin) 293 294 float alpha, height, _alphascale; 295 _alphascale = (_alphamax - _alphamin) / (_heightmax - _heightmin); 289 float alpha, height, alphascale; 290 alphascale = (_alphamax - _alphamin) / (_heightmax - _heightmin); 296 291 _stagecolors = new osg::Vec4Array; 297 292 for (iv=0; iv < _npoints; iv++) … … 302 297 alpha = 0.0; 303 298 } else { 304 alpha = _alphascale*(height - _heightmin) + _alphamin;299 alpha = alphascale*(height - _heightmin) + _alphamin; 305 300 if( alpha > _alphamax ) alpha = _alphamax; 306 301 }
Note: See TracChangeset
for help on using the changeset viewer.