Hi Alexandre,

hmm, one of the main change between 0.2 and 0.3 was a deprecation of Shader 
class. When you use them you will get a warning that they are deprecated and 
ShaderAttribute has to be used. Maybe there are some print outs, which slowdone 
your machine. Also I have tried to solve some multithreading issues. You could 
try to run your application in SingleThreading mode to make sure that your 
problems are not multithreading related. Even if you think you use only single 
threading, that might not be the case. Per default osgViewer does run in 
CullDrawThreadPerContext which isn't stable on older version of osgPPU. You 
should run it in SingleThreaded to force real single threading mode.


Also start your app with OSG_NOTIFY_LEVEL=debug or info and check whats going 
wrong there. Maybe post the output here, so that we could try to find out, 
whats going on.

As to the getOrCreateOutputTexture(0) : the method should give you a correct 
pointer to a 2D texture (v0.2) even if your ppu isn't connected anywhere. The 
method also doesn't changes a lot to v0.3, hence I am not sure why it doesn't 
work for you. Maybe a problem somewhere else?


If you are not restricted to use osg 2.6 you can try the current osgPPU from 
the svn, which has no multithreading issues anymore (as far as I was able to 
test it ;) ). However you need osg somewhere from 2.7.8 or so, to be able to 
compile current osgPPU :(


Best regards,
art

------------------
Read this topic online here:
http://osgforum.tevs.eu/viewtopic.php?p=4671#4671





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to