• Advertisement
Sign in to follow this  

Help on putting image inside a cube

This topic is 4363 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement