So I've been able to get it working by putting the OpenCL context 
initialization into compileGLObjects for a particular custom geometry, but of 
course this is not a very good place to put this code.  

I still can't find any documentation or discussion on standard entry points for 
setup and display.  Is it call backs, is it sub-classing the view, or the 
camera or some other object? Is there no established way? 

Digging into osgCompute to see how they did it and it also seem to be 
implemented in an odd place.  They check for CUDA initialization during 
'accept' method of node visitor traversal.  Very bizarre.

So is there really simply no place to hook into the initialization code?

Thanks

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=48997#48997





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

Reply via email to