Results 1 to 8 of 8

Thread: Textures for dummies

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2001
    Location
    reston,va usa
    Posts
    6

    Textures for dummies

    Hi,

    I am a dummy. I have been through the NeHe lesson on texture mapping and got it to work through sheer luck and sweat off my brow.

    How do you manage multiple textures? I mean, I assume you just can't keep loading textures until you run out of memory on your card. Therefore I assume at some point you have to start unloading textures from GL memory. And keeping track of whats loaded, whats not, and what needs to be can be difficult.

    Am I missing something that makes this easier?

    If not, are there some common practices for managing textures?

    Thanks for any help.

    Regards,

    Shep

  2. #2
    Senior Member Regular Contributor
    Join Date
    Jul 2000
    Location
    Arlon, Belgium
    Posts
    477

    Re: Textures for dummies

    Hi,

    You make a loop to put the textures in memory.

    I've done a loop and it works well !

  3. #3
    Junior Member Newbie
    Join Date
    Jan 2001
    Location
    reston,va usa
    Posts
    6

    Re: Textures for dummies

    Hi Leyder,

    So your saying just loop through all the possible textures I will ever use and load them in to GL memory and GL knows how to deal with them all? I am talking thousands of textures and up here.

    Thanks

    Shep

  4. #4
    Junior Member Newbie
    Join Date
    Jan 2001
    Posts
    27

    Re: Textures for dummies

    That's what I've always done - just loaded all the textures I've needed and let OpenGL handle it... but I don't think I've ever exceeded my card's 8mb limit.

    Just curious, but what are you using thousands of textures for?

  5. #5
    Senior Member Regular Contributor
    Join Date
    Jul 2000
    Location
    Arlon, Belgium
    Posts
    477

    Re: Textures for dummies

    Hi,

    I you want, I can post my source code for do this.

    My code does :

    Read in a file the path to load texture.
    Loop to put in memory the textures.

    Interested ? Send me a mail.

  6. #6
    Senior Member OpenGL Pro
    Join Date
    Dec 2007
    Posts
    1,077

    Re: Textures for dummies

    Okay modern cards have AGP. AGP is good for texture loading over the bus. Just put all your textures up as long as they don't take 128 megs and be happy. The driver will have all not-in-card-memory-fitting textures in your main memory and will reload them if you need it. That's another reason why sorting polys after texture is good.

  7. #7
    Junior Member Newbie
    Join Date
    Jan 2001
    Location
    reston,va usa
    Posts
    6

    Re: Textures for dummies

    I am planning to write an opengl ultima online client, actually I have already started. I am trying to write a texture cache object to handle loading textures into and dumping textures from GL/AGP Memory.

  8. #8
    Junior Member Newbie
    Join Date
    Jan 2001
    Location
    reston,va usa
    Posts
    6

    Re: Textures for dummies

    Leydar,

    Yeah I would like that but the email button in the board doesn't work.

    Shep

    Originally posted by Leyder Dylan:
    Hi,

    I you want, I can post my source code for do this.

    My code does :

    Read in a file the path to load texture.
    Loop to put in memory the textures.

    Interested ? Send me a mail.

Similar Threads

  1. FBO Attached Textures Reused as Shader Source Textures
    By Rennie Johnson in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 06-22-2012, 09:43 PM
  2. smooth/noperspective for Dummies?
    By Dark Photon in forum OpenGL: GLSL
    Replies: 4
    Last Post: 03-05-2010, 08:57 AM
  3. Lots of small textures or fewer large textures?
    By jlamanna in forum OpenGL: Advanced Coding
    Replies: 30
    Last Post: 01-12-2004, 03:53 AM
  4. Hardware for dummies?
    By in forum OpenGL: User Software
    Replies: 1
    Last Post: 05-17-2001, 02:02 PM
  5. Opengl for Dummies
    By catherine in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 04-06-2000, 11:19 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