Log in or register to post comments


June 7, 2016 - 4:48am #1


I just try to render my Transparent obj. file but in the form there is no  exact information for that.  Has anyone idea how to manage that ??

(to admin: Could you please activate the  link `` https://developer.vuforia.com/resources/dev-guide/enabling-lighting-effects `` It could be useful )



June 10, 2016 - 9:19am #2

To render a transparent mesh, you typically need to:

- enable OpenGL Alpha Blending and define a suitable blending function

- optionally, disabling depth testing (glDisable( GL_DEPTH_TEST ); ); this is not mandatory but usually recommended 

- optionally: apply a sorting algorithm to each triangle of your mesh, so that they get rendered from the farthest to the nearest, w.r.t. the camera (this sorting should be done at every frame); this is not mandatory, but it usually ensures much better visual results;  writing such an algorithm however will add significant complexity to your rendering code and can also add a lot of additional CPU load if the mesh has a large number of polygons

- implement a Shader that supports some kind of lighting effect, for example diffuse lighting, with or without ambient and specular components (this is really up to your Shaderr coding skills, or you may want to search the internet for existing examples of GLSL shaders)


I hope this helps.

Log in or register to post comments