Re: [osg-users] New osgTerrain serializer not calling TileLoadedCallback

2010-06-25 Thread Wang Rui
Hi Brad, A solution for serialziers to call static functions at the end of reading/writing is to use a user serializer. The serialziers/osgManipulator/Draggers.cpp uses a DefaultGeometry serializer to run setupDefaultGeometry() once the reading process is finished, and this can also be applied to

Re: [osg-users] Shader composition, OpenGL modes and custom modes

2010-06-25 Thread Tim Moore
On Fri, Jun 25, 2010 at 12:25 AM, Wojciech Lewandowski lewandow...@ai.com.pl wrote: Hi Guys, We all seem to agree that the topic actually consists from two subtopics: ShaderGeneration and ShaderComposition. Shader generation would be mostly used to emulate Fixed Pipeline and replace GL

Re: [osg-users] Shader composition, OpenGL modes and custom modes

2010-06-25 Thread Robert Osfield
Hi Wojtek, I don't really see a strong separation between emulation of the fixed function pipeline and shader composition. My current view is that we'll have StateAttribute's that provide batches of uniforms, any shaders that are required, and guidance on how into inject support for them into

Re: [osg-users] memory allocation during updateCallback

2010-06-25 Thread Ulrich Hertlein
Hi Andre, On 25/06/10 1:06 , Andre Simoes wrote: I've made a main osg::Group with an osg::NodeCallback attached to call some stuff each update. inside my osg::NodeCallback i have: void MyCallback:: operator()( osg::Node* node, osg::NodeVisitor* nv) { Frame *frame = (Frame*)node;

Re: [osg-users] cross axes

2010-06-25 Thread Gianni Ambrosio
Another question. Now the axes works fine in the left bottom corner but if I resize the viewer window (I use QT embedding the viewer inside) the cross axes object is deformed accordingly. How can I prevent that? I mean, I agree to resize the axes but in a homogeneous way for every axis.

[osg-users] viewer with ortho-graphic projection

2010-06-25 Thread Sunil S Nandihalli
Hello everybody, Is there something in osg that can manipulate(zoom/pan/rotate) an orthographically projected view? like trackBallManipulator does for a perspective projection.. Sunil. ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] New problem with VPB serializer

2010-06-25 Thread Christiansen, Brad
Hi, I just looked over last night's email and realized what I wrote is about as clear as mud. The problem is this: when the build options are read from disk by the readOptionalLayerSet method in BuildOptionsIO a leading empty string is retrieved from the stream resulting in an optional layer

Re: [osg-users] Shader composition, OpenGL modes and custom modes

2010-06-25 Thread Johannes Maier
Hi, as I mentioned somewhere else, we are also thinking about a shader composition concept. After some consideration we came to the conclusion, that shader linking is probably the most time-effective approach. So we would go with Wojtek and use his VirtualProgram - extending and implementing

[osg-users] Composite Viewer to Multiple Windows

2010-06-25 Thread nikhil raprolu simha
Hi, I want to know if there is a simple way from converting composite viewer (having multiple views) to multiple windows each having a single view Thank you nikhil -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=29410#29410

Re: [osg-users] Screeshots from multiple cameras/views

2010-06-25 Thread Ricky Flintoff
Tom Pearce wrote: Ricky, Based on the code you posted, you're taking a screenshot every frame - and from the same position, no less. You're creating the same matrix each time, and thus setting the view matrix to be identical each frame. Then you're doing file I/O that is the exact

Re: [osg-users] Screeshots from multiple cameras/views

2010-06-25 Thread Ricky Flintoff
Hi Robert, robertosfield wrote: Hi Ricky, On Tue, Jun 22, 2010 at 3:54 AM, Ricky Flintoff wrote: Thank you very very much for your suggestion! I actually ran into another problem with the code. I tend to get segmentation faults. My idea was to take multiple pictures as I changed

[osg-users] Fwd: [osg-submissions] Missing file ShaderComposer.cpp

2010-06-25 Thread Adrian Egli OpenSceneGraph (3D)
Hi Robert, As Mourad still reported, there is an issue in the build CMake Error in src/osg/CMakeLists.txt: Cannot find source file ShaderComposer.cpp. Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx regards. adrian -- Forwarded message

[osg-users] Collada loader crashing

2010-06-25 Thread Farshid Lashkari
Hello, I've found a reliable crash in my application which seems to be caused by the collada loader. It seems like the collada loader can only be called in one thread. Attempting to load a model in second thread will immediately crash my application. I looked into this and it seems to be a

Re: [osg-users] Shader composition, OpenGL modes and custom modes

2010-06-25 Thread Bruce Wheaton
On Jun 25, 2010, at 6:42 AM, Mathias Fröhlich wrote: With that proposal - espcially the StateAttribute::compose call working directly on the osg::State - I conclude that we need to relink during draw: * we will probably loose state sorting for the shader combinations * shaders need to be at

[osg-users] DrawCallBack Screeshot problem

2010-06-25 Thread Thomas Canipel
Hi, I am actually trying to find another way to create a screenshot since using the osgscreencapture (pbuffer) doesnt work properly. I tried to do a simple DrawCallBack where I will call readPixels and write the image on the disk, the viewer is setupInWindo of the size 1024x1024 , and so the