Help on putting image inside a cube

Started by
0 comments, last by Bob Janova 18 years, 1 month ago
Hi all, I'm new in 3D programming and i would like to create my own environment in 3D. Here is the task that i need to do: i have 4 images: bottom, left, right, front, which i would like to map it inside a 3D transparent cube, hence i can see the inside from outside. Can anyone help me with the idea? Thank you. Wilson
Advertisement
Are you using a 3D library (OpenGL/DirectX) to do this? In which case you can draw a semitransparent quad by setting the alpha channel of the base colour, viz.
glColor4f(1, 1, 0, 0.3)

... and texture map it as normal.

If you're doing it yourself ... well, don't is the simple advice. You need to project the textures and do alpha-blending yourself in that case.

This topic is closed to new replies.

Advertisement