Jump to content
  • Advertisement


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 5460 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
Maybe a skybox would do?
Try this. (Look toward the bottom)


"You wished for a white christmas... Now go shovel your wishes!"

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

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!