Results 1 to 4 of 4

Thread: textures coordinates generation

  1. #1
    Member Contributor
    Join Date
    Jul 2001
    Location
    France
    Posts
    80

    textures coordinates generation

    hello,
    can someone explain what is the meaning of
    generating texture coordinates ?
    till now i just have texture mapped some quads, so the coordinates are written in a file that i load, with the vectrices...

    when is it needed to calculate them ?

    cheers,
    Marsu

  2. #2
    Senior Member Regular Contributor
    Join Date
    Nov 2000
    Location
    Sydney, NSW, Australia
    Posts
    426

    Re: textures coordinates generation

    Well, if you were texture mapping a complex object you would obviously need to generate some complex coords, far more complex than just a quad which you can just do by hand. Therefor you will need an algorithm...
    :: Sleep is a poor substitute for caffeine ::

  3. #3
    Member Contributor
    Join Date
    Jul 2001
    Location
    France
    Posts
    80

    Re: textures coordinates generation

    ok ! i've got the point,
    so, if in your scene you've got some complex objects and some non-complex ones, is there a way to have a function that calculate both the complex and the easy objects, so everything is calculated ?
    or maybe the non complex objects coords are
    still entered by hand ?

    Marsu

  4. #4
    Senior Member OpenGL Guru zed's Avatar
    Join Date
    Nov 2010
    Posts
    2,466

    Re: textures coordinates generation

    for 99% of objects/meshes the texture coordinates will have to be calculated by the person that makes the models (with eg a 3d modelling program) exceptions where gl can calculate the coordinates are for 'effects' like reflection mapping etc

Similar Threads

  1. texture coordinates generation
    By Sagrailo in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 04-01-2008, 08:56 AM
  2. Texture Coordinates Generation
    By Myzhar in forum OpenGL ES
    Replies: 0
    Last Post: 11-21-2005, 08:44 AM
  3. Automatic mipmap generation for floating point textures on nv40
    By Xelatihy in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 12-20-2004, 01:21 PM
  4. Automatic texture generation coordinates
    By Brian Jones in forum OpenGL: Basic Coding
    Replies: 12
    Last Post: 12-14-2002, 11:59 AM
  5. Automatic Texture Coordinates Generation
    By Swan in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 03-24-2000, 04:54 AM

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