Background textures

Hey everyone,

I was wondering how I would go about putting a background into my program? What I want to do is have mountains in the background of my scene. If I turn away, I won’t be able to see them. If I walk towards them, I’ll never get any closer. That’s what I want. But the only way I know how to do this is by creating a quad and mapping the texture onto it, but that really won’t do for two reasons: a) I will actually get closer to the mountain range when walking towards it, and b) it would make my far clipping plane a very large distance away. Does anyone have a good solution to this? Thanks.

I would just draw the quad before you transform the modelview matrix, so it is always located in the same place. Just disable depth writes so that it doens’t cover any of your other geometry. So long as you scale the texture right you can place it 1 unit away from the camera and it will look like a background