Re: [osg-users] Interesting Problem with Segmentation Fault in eventTraversal

2012-08-11 Thread Mike Hatcher
Hi, I kind of provided a miniature stack trace by showing the function calls back to "draw()" which of course is part of the main loop but here it is anyway: Thread [1] 16436 [core: 0] (Suspended : Signal : SIGSEGV:Segmentation fault) osgViewer::CompositeViewer::eventTraversal() at 0

Re: [osg-users] Problem passing matrices as uniform

2012-08-11 Thread Felix Meißgeier
Thanks for help! But the problem already exists. Actually the main-problem seems to be, that either the view-matrix or the world-(model-)matrix is not passed to the shader correctly. I have a scenegraph consisting of two rendertotexture-prerender-cams (one to compute a velocity map and one to

Re: [osg-users] Problem passing matrices as uniform

2012-08-11 Thread Sergey Polischuk
Hi, Felix I dont know for sure what matrix get returned from state, but if you get view\projection matrix from camera (or , for projection matrix - from osg::Projection) - it works perfectly fine, at least for me. Cheers, Sergey. 11.08.2012, 02:52, "Felix Meißgeier" : > Hey, > > i've got a pro