- This topic has 5 replies, 3 voices, and was last updated 9 years, 5 months ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Using SOFA › [SOLVED] CUDA
Tagged: Cuda, Topology changes
Hello All,
In order to test sofacuda plugin I have installed cuda on linux ubuntu and successfully tested some examples of the source.
when I tried to make a simple model using cuda we faced with a bug that the scene looks empty. please help me in figuring out the fault.
Hi Sarrami,
Strange indeed. Could you maybe tell me more about your scene ?
Could you write it if it’s not too long ?
Hi Hugo,
The scene’s download address is below. This model is in fact a dynamic mesh one which uses tera2triangle mapping and fails to load in viewer. If I delete that mapping I can load the viewer without error. but the problem of empty scene still remains.
hint: It’s beneficial to run modeler as superuser.
https://www.dropbox.com/s/lc4e8ds1i1z49z1/cudasample.zip?dl=0
Hi Sarrami,
I can’t get the mapping to work either, but I know where the “empty scene” issue comes from: there is a bug that causes the camera to go nuts when no components in the scene contribute to the bounding box of the scene that is used by the camera.
You can work around it by adding something like a visual model in the scene (even if you don’t show it), e.g:
<oglmodel src="@loader" translation="0 0 -0.1"/>
Hi Marc & Hugo,
Thanks for the reply. The problem of empty scene solved by adding a node with OglModel. Now the main problem is getting error while trying to remove an element from the mesh by “shift” + “right click”. It looks like all dynamic mesh capabilities get eliminated while using CUDA or OpenCL. Is that so?
My new scene file is attached.
Thanks.
https://www.dropbox.com/s/v34ukfh3xfa0wz4/CudaExample1.zip?dl=0
Dear Sarrami,
Removing elements using Cuda is not really supported, since no one is using it currently. When elements are removed, I have been told that it calls the “init” function to recompute the new mesh. Some how, an error must occur there.. But I am no expert.
Sorry not to be able to tell you more.
Hugo
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.