Forum Replies Created
-
AuthorPosts
-
SalmanBlocked
Dear Hugo
Thank you so much for the reply. I tried this in the Python script and it works perfectly. I created a copy of the node and added all the OglModels to it expect the texture and with the desired colors. I programmed it so that the copy node (the one without the textures) gets deactivated when a particular key is pressed, and activated when another key is pressed. That works just fine.
Thank you so much. 🙂
Salman
SalmanBlockedDear Hugo
Thank you for the kind response. We are actually interested in acquiring 2D Images of the scene and the corresponding Ground Truth in JPEG format. That’s why the VTKExporter is not really useful in our case. We have made some progress in this by using SofaPython. We set the view manually using the mouse and take a screenshot. Then using the onKeyPressed method, change the colors of all the objects/organs present in the scene. We have managed to do this, however, each organ has an associated texture file. We also want to disable that, because otherwise, we don’t get the colors we changed to. We are able to change the texturename node using the onKeyPressed method as well and the change reflects in the runSofa Graph tab as well. However, there is no change in visual appearance i.e the texture still remains. Is there any way we can overcome this limitation? It seems that even if we manually try to change the texture in the runSofa interface, the node gets updated but the visual scene remains the same. Can you kindly help us out with this?
Also, thanks a lot for sharing the paper. It is interesting and quite relevant as well.
Thank you
Salman
-
AuthorPosts