Archived

This topic is now archived and is closed to further replies.

How 2 load an image in the backdrop of a 3D scene

This topic is 5150 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

I''m working on a simple walkthrough of a simple 3d terrain. I want to load a bitmap image on the ''background'' i.e I have my 3D twerrain in the ''foreground'' and I wanna load a 2d image in the backdrop instead of having to change color all the time. I''m working in Directx 8.1 and Visual C++ :D Keep coding..

Share this post


Link to post
Share on other sites
I think a skybox would definetly look better, then a static image as a backdrop.

If you still want to use the backdrop idea: take a quad, made out of 4 Transformed and Lit vertex, and texture it, with your background image.
When you render it, disable the Z writing and testing.
The image should appear behind your terrain.

If you decide on using a skybox, remeber to use "texture clamping" (look this up, it will solve a texturing problem later on )
Also remember, to move your skybox with your camera, to give it a more in-depth feal.

Share this post


Link to post
Share on other sites