Results 1 to 2 of 2

Thread: Texture coordinates

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2000
    Location
    Kiev,Ukraine
    Posts
    3

    Texture coordinates

    I'm coded a program, which simply imports and visualizes a data, containing in .ASE file.

    ASE file format is simple text, generated by 3D Studio Max.

    While using Vertex coordinates, faces and e.t.c. - there is no problems.

    But: texture mapping coordinates in this file is given in three float values (in bounds between 0.00 to 1.00) instead of two, for mapping a 2-d textures.

    Is it correct to use these coordinates to produce texture coordinates in OpenGL?

    I'm not quite understand the "r" and "q" coordinates in texture mapping in OpenGL function glTexCoord4f(s,t,r,q).
    How "r" and "q" affect the visualization of 2-D texture?

    Also, i can't find anywhere the explanation and/or examples how to use 3 or 4 mapping coordinates.

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

    Re: Texture coordinates

    I assume that the 3rd component in the ASE files stand for the 3D textures coordinates. So, simply use glTexCoord2f() and put in only the first two.

Similar Threads

  1. Texture Coordinates and Depth Buffer to obtain world coordinates
    By snkhan42 in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 04-27-2018, 11:52 AM
  2. Texture coordinates to screen pixel coordinates
    By lucafr in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 04-13-2011, 04:19 AM
  3. Texture Mapping & Texture Coordinates
    By senem in forum OpenGL: Basic Coding
    Replies: 20
    Last Post: 10-03-2007, 08:50 AM
  4. How to get texture coordinates from screen coordinates
    By geckosenator in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 01-28-2006, 07:23 AM
  5. 3D Models with Texture Coordinates and Texture images
    By dimensionX in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 04-15-2004, 11:59 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