Re: [osg-users] [osgCompute] Computation on a rendered texture quad
Hi, I got it working, thanks. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=45821#45821 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgCompute] Computation on a rendered texture quad
Hi jcronje, The method applyAsRenderTarget() or mapAsRenderTarget() is automatically called when a GLMemoryTargetCallback is attached to a camera. Please see the osgRTTDemo-example. It is required in order to synchronize the memory spaces correctly. You need to be shure that a GL-Context is ready in order to call applyAsRenderTarget(). Does it already work by now? Best regards, Jens -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=45797#45797 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] [osgCompute] Computation on a rendered texture quad
Hi, What does the applyAsRenderTarget function do, and when should I call it ? I have a TextureQuad with a osgCuda::TextureRect on it. The textureRect is updated every frame with a frame from a video. I want to render the quad on the screen and use the same osgCuda::TextureRect in my Computation that is attached to the same scenegraph. The computation only reads from the texture. The problem is that when I call the map function, I get the [osgCuda::TextureMemory::alloc()]: unable to register image object (cudaGraphicsGLRegisterImage()) error. If I don't display the TextureQuad, then the errors goes away. But I need to display the TextureQuad. Do I need to call applyAsRenderTarget somewhere ?? Thank you! Cheers, Jaco -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=45674#45674 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org