Results 1 to 2 of 2

Thread: Backgrounds

  1. #1
    Junior Member Newbie
    Join Date
    May 2001
    Location
    Pawtucket, Rhode Island, USA
    Posts
    10

    Backgrounds

    Hey,

    I'm doing a 3-D scene and I need a background. Right now I just have a huge cube around my scene with the background textured to the inside of the box. I translate the box everytime you move in the scene so that you can never approach the background and therefore never go beyond it.

    I know that there must be better ways to do this but I can't find anything on them. I looked quickly through the NeHe tutorials and it seems that he was doing it this way. Does anybody know a better method for doing the background?

  2. #2
    Member Newbie
    Join Date
    May 2001
    Location
    Hungary
    Posts
    30

    Re: Backgrounds

    The problem with this method is that when you render a face in your scene, you render the background first, so you render every pixel at least twice. So I suggest drawing the sky as seen in Quake. For examle you have an cube with an open side (it has 5 faces). You draw the other one too, with cube mapping. The cube map is defined to be the background. (GL_EXT_texture_cube_map extension needed)

Similar Threads

  1. Transparent backgrounds
    By ti83magic in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 05-13-2009, 05:28 AM
  2. efficiency when displaying backgrounds
    By neilw in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 11-06-2002, 07:28 AM
  3. Backgrounds
    By Running_Wolf in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 07-02-2001, 06:41 PM
  4. Drawing backgrounds
    By rIO in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 09-19-2000, 02:39 AM
  5. Backgrounds
    By Galileo430 in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 07-25-2000, 06:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean