Texturing Loaded Models in OpenGL

This is a discussion on Texturing Loaded Models in OpenGL within the Game Programming forums, part of the General Programming Boards category; Hi, guys. I'm new to OpenGL and C++, so try to keep answers simple as possible. I have written some ...

  1. #1
    Registered User
    Join Date
    Aug 2011
    Posts
    2

    Texturing Loaded Models in OpenGL

    Hi, guys. I'm new to OpenGL and C++, so try to keep answers simple as possible. I have written some code to upload the stanford bunny or other geometry in OpenGL. I am at a point where I need to texture the any model. I understand how to texture a cube, but that specifies each texture coordinate before each vertex. The question is how can I upload a texture map to my models, since it will be difficult to input texture coordinates before every vertex if I have thousands of vertices? I also can use blender to create UV maps, but I don't understand how to read them in yet. Thanks

  2. #2
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    1,625
    Quote Originally Posted by dreamslayerx View Post
    ... since it will be difficult to input texture coordinates before every vertex if I have thousands of vertices?
    Sorry, but in OpenGL that's how things work. Not sure I understood your question though.
    Devoted my life to programming...

  3. #3
    Registered User
    Join Date
    Oct 2006
    Posts
    250
    You don't 'manually' specify the texture coordinates, you have a modeling program do that for you. All your program has to do is to just load in the data, and render it.
    iMalc: Your compiler doesn't accept misspellings and bad syntax, so why should we?
    justin777: I have no idea what you are talking about sorry, I use a laptop and there is no ascii eject or something

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. importing 3D models into openGL
    By juniorCoder in forum Game Programming
    Replies: 1
    Last Post: 05-10-2004, 10:14 AM
  2. Deep Exploration, OpenGL, and 3d models
    By DavidP in forum Game Programming
    Replies: 18
    Last Post: 04-06-2003, 02:12 PM
  3. OpenGL, texturing...and...more OpenGL
    By Sunny in forum Game Programming
    Replies: 2
    Last Post: 07-08-2002, 03:34 PM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21