Re: [osg-users] WGS-84 osgTerrain

2007-09-07 Thread blinkeye
On Fri, September 7, 2007 15:45, Argentieri, John-P63223 wrote:
 Hello again, and a good day to you.

 We use a lo-fi earth model generated by osgdem. When we do a terrain
 intersection, then convert to a 0-altitude coordinate, the location we
 get is inaccurate due to the fact that the model's geometry is an
 approximation of the shape of the earth. Is there a way to use
 osgTerrain to find the intersection of a vector with a WGS-84 earth?

 Thanks,
 John
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Hi John,

please let me know if you get any further or any input on that issue. I'll 
probably
have to do the same thing in a couple of weeks.

Regards,
blinkeye

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] GL_CULL_FACE GL_BLEND GL_DEPTH_TEST

2007-08-22 Thread blinkeye
Hello fellow osg users

I've been trying for days to implement what I thought of as a simple thing:

A translucent figure like a dome, a cubus or a triangle where faces behind
don't shine through and which inside faces are rendered when the camera is
inside the figure.

I've managed that by using GL_CULL_FACE

  osg::StateSet* states = new osg::StateSet();
  states-setRenderingHint( osg::StateSet::TRANSPARENT_BIN );
  states-setRenderBinDetails( 2, RenderBin );
  states-setMode( GL_CULL_FACE, osg::StateAttribute::OVERRIDE |
osg::StateAttribute::ON );
  states-setMode( GL_BLEND, osg::StateAttribute::OVERRIDE |
osg::StateAttribute::ON );
  states-setMode( GL_DEPTH_TEST, osg::StateAttribute::OVERRIDE |
osg::StateAttribute::ON );

So far so good, but now the problem: If the camera is inside the
translucent figure I don't see the inside faces.

Is there something I'm doing wrong or shouldn't now the inside faces be
drawn (but not the outside faces)?

I know this is more an OpenGL issue but I can't seem to find the answer
anywhere.





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org