Sign in to follow this  
wilsonsuryajaya

Help on putting image inside a cube

Recommended Posts

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

Share this post


Link to post
Share on other sites
Bob Janova    769
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this