how to make a visual model(OglModel) transparent? #2971
-
Hi, I'm trying to simulate a cornea in SOFA, I have the obj and msh files prepared, but is there anyway to make the visual model transparent like a real cornea(like glass)? I tried to add texture in the oglmodel but it doent look like glass(of course) |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Hi @SalemTree Thanks for your question! |
Beta Was this translation helpful? Give feedback.
-
hello @SalemTree You need to have the material alpha component to less than 1.0 (or less than 255 if the color is defined on 8bits). Note that this is using really basic transparency of OpenGL, and not suitable for what you are trying to achieve (glass-type translucy). |
Beta Was this translation helpful? Give feedback.
-
hello @fredroy |
Beta Was this translation helpful? Give feedback.
-
I dont have all the technical details about this product (MSICS) but I think there are using an external rendering engine made by the company SenseGraphics (which is now part of the company Surgical Science https://surgicalscience.com/sense-graphics/ ). |
Beta Was this translation helpful? Give feedback.
I dont have all the technical details about this product (MSICS) but I think there are using an external rendering engine made by the company SenseGraphics (which is now part of the company Surgical Science https://surgicalscience.com/sense-graphics/ ).
You may contact them if you want more info about their rendering engine.