Hi,

This library is a great work for combing CUDA with OSG. I think osgCompute is 
just what I'm looking for. I'm trying to use osgCompute in a manner very 
similar to the example of osgComputeDemoApp which can be found in the forum. 
However, my project needs to bind DEPTH_BUFFER instead of COLOR_BUFFER to the 
render texture, and then use the rendered depth information in the CUDA kernel. 
Here comes a problem. As the formats related to the depth buffer 
(GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT24, GL_DEPTH_COMPONENT32, etc.) are not 
supported by CUDA, such error occurs:
[osgCuda::TextureMemory::alloc()]: unable to register image object 
(cudaGraphicsGLRegisterImage()). Not all GL formats are supported.
This problem troubles me a lot. So, how can I deliver the rendered depth 
information of the  scene to the CUDA kernel by using osgCompute?  


Thank you!

Cheers,
Jack

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





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

Reply via email to