Firstly I apologise if this is a simple question that has been answered many many times - I have spent the past few hours trawling the forum and google trying to piece together a working solution but am yet to have much success. Please can someone help me out?
I am trying to make panes of glass in my environment - all the glass objects are attached to a node called "glassNode". Below you can see the code that I am running to try and make all the objects attached to the "glassNode" transparent:
The code above has been pieced together from multiple code examples I've found - I know that I'm trying to apply multiple Render States to the same node, can I even do this?
I really need somebody to help me sort through the code I don't need. If you could also explain exactly what the ZBuffer object is doing I would really appreciate it.
Many thanks in regards,
Thanks for your speedy reply dude. The code I posted above half works…let me explain…
If I apply it to a box object I've made, the face closest to the camera view becoming transparent but the corresponding face on the other side of the box is still opaque. This means that if I've made a window from a box object I still cant see completely through the Box and out to the surrounding skybox. Can you suggest any explanation on how to resolve this?
Unfortunately I'm still having the same issues - the face of the box closest to the camera is transparent but the outer face is still opaque. Can anyone else help to shed light on the problem?
Once again many thanks in advance,
EDIT: BTW, if it makes any difference the object does already have a texture applied to it. Perhaps this makes a difference? I've included the code that applies the texture below. Please note, the texture is applied and then I try to make the Box transparent using the code above.