PDA

View Full Version : in a ase file, by what is indicated the coordinates of texture?



airseb
04-26-2003, 11:41 AM
what key word ?
it's to use in an opengl program then.

04-26-2003, 01:36 PM
Originally posted by airseb:
what key word ?
it's to use in an opengl program then.

hi,
the tokens i use are:
*MESH_NUMTVERTEX // number of Texture coords

*MESH_TVERT // the texture coord

ase files are text files so u can open the with notepad and read them.

airseb
04-27-2003, 02:22 AM
Originally posted by FredFlint:
hi,
the tokens i use are:
*MESH_NUMTVERTEX // number of Texture coords

*MESH_TVERT // the texture coord

ase files are text files so u can open the with notepad and read them.

thanks !
but i have a problem :
with *MESH_TVERT, there are 3 coordinates of texture but the last is always at 0.0, have i to ignore this coordinate ?
and i have another question :
what is *MESH_TFACE ? what is the difference with *MESH_FACE ?
thanks.


[This message has been edited by airseb (edited 04-27-2003).]

raverbach
04-29-2003, 03:19 AM
MESH face and mesh vertex store the (x,y,x) coordinates of your geometry

tface and tvertex store the homogeneous coordinates (UV) of your model for texture mapping
hope this helps http://www.opengl.org/discussion_boards/ubb/smile.gif

[This message has been edited by raverbach (edited 04-29-2003).]

airseb
04-29-2003, 07:10 AM
Originally posted by raverbach:
MESH face and mesh vertex store the (x,y,x) coordinates of your geometry

tface and tvertex store the homogeneous coordinates (UV) of your model for texture mapping
hope this helps http://www.opengl.org/discussion_boards/ubb/smile.gif

[This message has been edited by raverbach (edited 04-29-2003).]


sorry, i haven't understood what was tface ?
and what is UV exactly ?
thanks !