Re: [osg-users] basic shader implementation

2013-02-18 Thread Robert Osfield
Hi Sajjadul, There are plenty of shader examples in OpenSceneGraph/examples and OpenSceneGraph-Data/shaders. Just search from osg::Shader in the OSG code base and you'll find plenty of examples. Most with just use the OpenGL builts of gl_ModelViewMatrix etc, which is available in OpenGL 2 or

Re: [osg-users] osgdepthpeeling or osgoit

2013-02-18 Thread Christian Buchner
does osgoit require the loaded 3D model to be transparent already? I remember that I was able to run osgdepthpeeling with the dumptruck model successfully, but with the osgoit sample I can't get this to render any transparency at all. 2013/2/17 Mathias Fröhlich mathias.froehl...@gmx.net Hi

[osg-users] dumping command line args/inputs

2013-02-18 Thread Conan Doyle
Hi, is there a quick/simple way to dump all the command line options added via osg::ArgumentParser::getApplicationUsage()-addCommandLineOption, addEnvironmentalVariable etc.? I simply want to dump all my input args to a file as I run my app. ... Thank you! Cheers, Conan

[osg-users] Ideas for shiny antique Gold?

2013-02-18 Thread Paul Griffiths
Looking for ideas to get the best shiny antique Gold? For a frame. A few on screen, don't wish to use up too much GPU. With rough texture if not too much GPU too. Thanks. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=52741#52741

[osg-users] Callback for resize events

2013-02-18 Thread Alexandre Valdetaro
Hi, I currently have a shader that needs the screen resolution as an Uniform. Is there a simple way to have the resolution uniform updated by a resize event? Thank you! Cheers, Alexandre -- Read this topic online here:

[osg-users] Camera Manipulator problem

2013-02-18 Thread Peterakos
Hello. I try to make my own camera manipulator in which the push events with X lower than the half of the window will be ignored. I created a class, which derives trackball manipulator. Here is the handle method virtual bool handle( const osgGA::GUIEventAdapter ea, osgGA::GUIActionAdapter us )

[osg-users] a transparent MFC dialog blink problem

2013-02-18 Thread Lv Qing
Hi, ... We create some dialogs (qt or MFC) which showed above the osg App,then we set them transparent as a message tip. We find these dialogs always blink:) Our OS is Winxp,We found if the Winxp's start menu block the osg App,the start menu blinks too!I heard Win 7 seems not

Re: [osg-users] osgdepthpeeling or osgoit

2013-02-18 Thread Mathias Fröhlich
Hi, On Monday, February 18, 2013 15:56:02 Christian Buchner wrote: does osgoit require the loaded 3D model to be transparent already? What do you mean? If parts of your model are not transparent they should not render transparent? Right? I remember that I was able to run osgdepthpeeling with

[osg-users] Two question about (bounding box and select object)

2013-02-18 Thread Sahar Aseeri
Hello, I have two question the first one about bounding box and the other one about select object The first one I would like to load model in node and draw bounding box for this node, I have tried to write the code but doesn't work.. This is the code: int main(int argc, char *argv[]) {