Hello,
Could someone please tell me how to create a simple translucent glass-like box? I know I am a complete nooby…
Assuming a point light is present:
Box b = new Box("Glass box", new Vector3f(0, 0, 0,), new Vector(1f, 1f, 1f));
What should I add next? I know it has to do with AlphaState but I looked at the documentation and still can't figure it out. I also looked at the tutorial on AlphaState but there it's dealing with textures, while I just want a simple translucent box.
Thanks in advance!
you need to enable blending use the appropriate blend functions (there is a test doing this, forgot the name) and set the box color to something like 0.5,0.5,0.5,0.5
Have a look at TestRenderQueue.