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 same too. > > When I ran your code without doing all of this on every frame (i.e. returning > after the first frame or two) everything seemed to work. In fact, I also ran > it exactly as you'd posted it, and it still executed without error, just very > slowly. I'm not sure where the seg faults are coming from but perhaps you're > just bogging stuff down too much since the code isn't really doing something > you actually want it to do...? In principle I don't see a problem with > moving the camera from one view to another and taking a picture from two (or > more) points - but the way it is set up right now isn't right. At least, not > as I see it. > > Cheers, > Tom
Thank you very much for running my code. I have decided to attack the problem by rendering the scene graph and then changing the view matrix in order to capture scene from different views. Also, when you ran my code, did you see the cow moving or rotating? I just wanted to make sure that you saw that. Again, thank you very much for your help. ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=29412#29412 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

