Hi, I am very new to CUDA and OSG, please accept my apologies if this is a stupid questions. I am trying to build SPH algorithm using Cuda to calculate the particle forces and update its position. I would like to ask is there a way in Cuda to pass the position array to OSG without doing a "cudaMemcpyDeviceToHost" operation on every loop?
Is there some special function in OSG that directly integrated into CUDA? I have a CPU loop for CUDA kernel, and I have another CPU loop for OSG. When the OSG need the graphics update, it send a flag to CUDA reqesting for new position array. Is this the right way to do it? Thank you very much in advance. I really appreciate your effort. Cheers, Brian ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=43510#43510 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

