Skip to main content
GameDev.net gamedev.net
🔒 Locked

unreal models texture format??

Started by orenk2k Apr 21, 2001 at 1:08 PM 5 replies 400+ views
Original Post
orenk2k
orenk2k
Hello. i''m working on unreal tournament model viewer and i have a little problem, i read all the info form the model files, and draw it on screen but from some resone i didn''t understand the idea of storing the UV texture coords in a ''char'' variable. i get some values of U = 178 , V = 56 and so on, my question is: HOW DO I CONVERT THOSE VALUES TO BE USED IN MY glTexCoord function? (float vars!) --> Thanks alot <--
orenk2k
orenk2k
orenk2k
well, i tried this ofcourse!, but my texture image size isn''t 256 x 256 it''s
252 x 195. and it''s not looking good at all, any ideas??

--> thanks <--
orenk2k
orenk2k
orenk2k
this is my code:

A = (frame * header.numofVertices) + triangles.iVertex[0];
B = (frame * header.numofVertices) + triangles[i].iVertex[1];
C = (frame * header.numofVertices) + triangles[i].iVertex[2];

TexCoord[0][0] = (float)(triangles[i].mTex[0][0])/255;
TexCoord[0][1] = (float)(triangles[i].mTex[0][1])/255;

TexCoord[1][0] = (float)(triangles[i].mTex[1][0])/255;
TexCoord[1][1] = (float)(triangles[i].mTex[1][1])/255;

TexCoord[2][0] = (float)(triangles[i].mTex[2][0])/255;
TexCoord[2][1] = (float)(triangles[i].mTex[2][1])/255;

glTexCoord2d(TexCoord[0][0] , TexCoord[0][1]);
glVertex3f(x+(points
--> THANKS ALOT <--
' Target=_Blank>Link
orenk2k
orenk2k
orenk2k
(hey why the code cut away??!) well this is the rest of the code:

glTexCoord2d(TexCoord[0][0] , TexCoord[0][1]);
glVertex3f(x+(pointsLink
orenk2k
_DarkWIng_
_DarkWIng_
orenk2k : Could you send me some specifications(structure/file reading code/your code?/links..anything would be useful) of UT models.. can your program also open levels? ... could you post some images...
TNX
email : mirko.teran@guest.arnes.si

There are more worlds than the one that you hold in your hand...
You should never let your fears become the boundaries of your dreams.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.