Results 1 to 2 of 2

Thread: generic modelling

  1. #1
    Member Contributor
    Join Date
    Nov 2002
    Posts
    96

    generic modelling

    I've been wondering about generic modelling for a while, but I can't quite figure out how to do this. The problem is that I want to speed up things with vertex/texcoord arrays but there is one thing that I can't get around:
    How do I use multiple textures in one model?


    I mean, when I throw in a vertex/texcoord array I cannot define another texture between polygons, so I kinda need to change my perception on the concept of models. No?
    Up untill now I've had quite extensive classes to give a model multiple textures.

    To narrow down my question:
    1) Is it common multiple textures are used in models?
    2) Is a model usually drawn in one call to the DrawElements() ? Or are the calls split up to change state in between?

    TY

  2. #2
    Senior Member Regular Contributor
    Join Date
    Feb 2002
    Posts
    374

    Re: generic modelling

    1) if needed
    2) glBindTexture(TexOne)
    glDrawElements() // all tris with TexOne
    glBindTexture(TexTwo)
    glDrawElements() // all tris with TexTwo
    etc.

Similar Threads

  1. modelling water
    By marshall80 in forum OpenGL: Advanced Coding
    Replies: 10
    Last Post: 04-07-2003, 09:35 AM
  2. Modelling tool
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-09-2002, 08:11 AM
  3. 3D modelling
    By tony_ee81 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 07-24-2002, 12:13 AM
  4. 3D Modelling
    By in forum OpenGL: Basic Coding
    Replies: 9
    Last Post: 11-17-2000, 06:09 AM
  5. Modelling
    By in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 08-19-2000, 09:21 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