Any way to make a cube half transparent?
I want to make a jit.gl.gridshape cube half transparent so another cube which is inside it can be visible.
Any idea?
Can i achieve this with out a alpha picture? It seems that my Max can't load .png.
Thanks~
Hi Gang
Max can handle transparency, i.a. based on alpha channel from PNG. Remember to set "blend_enable" and "blend" attributes for your rendering pipeline. I have no access to my computer now, but, if you need, I can prepare for you a simple example patch later.
> Millions thanks!! It helps a lot!!
I am glad that I was able to help.
> But is there any way that i can see the back side of the cube?
Yes. Try to set "cull_face" attribute of the [jit.gl.gridshape] object to 0 (off).
small question regarding the patch above (which helped me a lot, a million thanks for sharing!)
the patch works well with cubes and spheres but i do not get it to work if i make the gridshape object a plane (@shape plane).
why is that? and what would i need to change to texture a plane with a texture including transparency?
update: ten seconds after posting i found the problem: for some odd reason it has to do with @layer. if i put the transparent plane on a higher layer it does work as expected...
sorry for bothering.