Re: [osg-users] Reference frame

2008-09-10 Thread Elbers, H.P.
Hello Sajjad, You can find details on this, and much more good information in "OpenSceneGraph Quick Start Guide", chapter : 2.3.3 Go to http://www.skew-matrix.com/OSGQSG/index.html , follow the 'lulu.com' link. The guide can be downloaded for free. P

[osg-users] OSG & FOX-toolkit

2008-07-31 Thread Elbers, H.P.
Hi All, I implemented a widget to use OSG in combination with the FOX-toolkit. It is like /examples/osgviewerFOX/ (that is where I picked some parts), but a bit simpler to use (simple widget, no MDI (multiple document interface)... It is two small classes (tested with FOX-1.6 and OSG-2.6rc1)

Re: [osg-users] why arent the ".h" postfix used in openscenegraph?

2008-04-09 Thread Elbers, H.P.
I don't want to start a discussion about editors, but I indeed missed the syntax highlighting for osg headers... For vim you can fix it by adding the following line to your .vimrc (the osg includes start with '/* -*-c++-*-') au BufRead * if getline(1) =~ '-\*-c++-\*-' | setlocal filetype=c

Re: [osg-users] Problem with osg::Fog

2007-11-14 Thread Elbers, H.P.
after RenderBin::draw(,)" I'll try a clean recompile of everything. Hans > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Elbers, H.P. > Sent: dinsdag 13 november 2007 17:31 > To: OpenSceneGraph Users > Subject:

Re: [osg-users] Problem with osg::Fog

2007-11-13 Thread Elbers, H.P.
loat fog_density = g_config->getDouble("fog", "density", 0.0); > osg::Vec4d fog_colour = g_config->getVec4("fog", > "colour", osg::Vec4( 0.5, 0.5, 0.5, 0.0)); > osg::Fog* fog = new osg::Fog(); > fog->setMode(osg::Fog

Re: [osg-users] Problem with osg::Fog

2007-11-13 Thread Elbers, H.P.
ng correctly, just the values > involved need tweaking. The best thing to do is read up on > OpenGL Fog settings, the OSG just passes the settings it has > on to OpenGL. osg::Fog is effectively glFog, all the > variable and naming conventions are the same. > > Robe

[osg-users] Problem with osg::Fog

2007-11-12 Thread Elbers, H.P.
Hello All, I'm new to osg, and trying to use Fog... I get no fog at all, unless I use LINEAR mode with negative start and end values, wich I find strange: I would expect that positive values are required. If I try EXP mode, I cannot get any fog at al. Am I overlooking something obvious? Pl