Results 1 to 3 of 3

Thread: Texture mapping. Need help

  1. #1
    Guest

    Texture mapping. Need help

    I've been programming for about a year now but the book I have teaches me how to texture map using generated texures. All the tutorials I have found on the net don't help. I use C++ for most of everything ecxept graphics, thats where OpenGL comes in. All the tutorials use openGL for everything and I can't figure out how to convert the format. Can somebody post some code so I can find out how to load a texture into my program Please!

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,595

    Re: Texture mapping. Need help

    Hi !

    I am not sure what your problem is, the tutorials use OpenGL to render the 3D stuff, that's why you use OpenGL in the first place... then they use standard C/C++ library functions and a some loader code to get the textures into memory, you can pick out the code from any texture tutorial and use it in your own code without any problems at all, if you need another image format then there are lots of libraries available for this (check out www.sourceforge.net and www.freshmeat.net), if you need information about image formats you can find it att www.wotsit.org

    And if you have some specific texture problem that you don't understand you can always ask questions here.

    But as I said, if you can't figure it out with one of the texture tutorials I am not sure how to help you.

    Mikael

  3. #3
    Guest

    Re: Texture mapping. Need help

    The sites weren't that helpful, but you gave me an idea and now it works thanks!

Similar Threads

  1. Texture mapping ::: 3D Face Mapping
    By 3render3 in forum OpenGL: General
    Replies: 2
    Last Post: 03-24-2013, 06:49 PM
  2. projective texture mapping and shadow mapping
    By phoenix_gl in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 10-08-2012, 08:00 PM
  3. Replies: 0
    Last Post: 01-09-2005, 05:53 PM
  4. Replies: 1
    Last Post: 01-09-2005, 05:50 PM
  5. Texture Mapping / Environmental Mapping.
    By imported_Andrew in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 12-09-2000, 01:20 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