Can I render bodies semi-transparent?

Asked by Nolan Dyck

I've been playing around with the OpenGLRenderer controls, and I'm trying to see if there's any way to make objects semi-transparent in YADE. I want to make a video by saving screens using the SnapshotEngine. I'd like to fade certain bodies in and out as the simulation progresses. Is this possible with YADE, or would I have to export the results and use Paraview?

Question information

Language:
English Edit question
Status:
Answered
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Robert Caulk (rcaulk) said :
#1

I am not sure if it is possible in Yade, but if it is possible I am sure it is not easy and the final product will not look nearly as good as if you had just done it in paraview. I highly recommend paraview for this sort of thing since it is so easy and looks so great.

Revision history for this message
Bruno Chareyre (bruno-chareyre) said :
#2

Transparency and shades with openGL need specific models, not just turning transparency "on" (the models define e.g. how specular and ambient lights are transformed when the rays from behind are crossing other surfaces before reaching the camera - just to give you an idea). Not extremely difficult to implement with some basic knowledge of openGL but nobody found it worth the effort yet, as it seems.
So it is not possible via the GUI now. I agree that paraview makes a nice (probably better) replacement.
Bruno

Can you help with this problem?

Provide an answer of your own, or ask Nolan Dyck for more information if necessary.

To post a message you must log in.