Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Enouk

Quake3 textcoords

This topic is 6136 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have written a small quake3 viewer. But the texcoords is not correct,the vertex pos seems fine. Do i have to modify the textcoord in some way, to make the level look like in GtkRadient?

Share this post


Link to post
Share on other sites
Advertisement
Are you using the correct set of texture coords?

There are 2 sets inside the vertex structure, one set being for lightmaps, the other for textures, make sure you are using the right one.

Edited by - terminate on February 24, 2002 7:54:10 PM

Share this post


Link to post
Share on other sites
Yeah i know that,one set for the lightmap to right.

Does it have something to do with the shaders?

I havent looked at those.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Yes the textures are upside down , If i divide the coords with 4 it starts to look like something. but still not right. It look like they are repeated a few times

Share this post


Link to post
Share on other sites
Yes the textures are upside down , If i divide the coords with 4 it starts to look like something. but still not right. It look like they are repeated a few times

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
struct Q3_Vertex
{
float Position[3]; ///< Position
float TexCoords[2]; ///< Texcoords of
float LightCoords[2]; ///< Texcoords of
float Normal[3]; ///< Normal
int Color;
};

Its like this. i can post a pic later.

Thanx for your help.

Share this post


Link to post
Share on other sites
That seems to be in order. All I can suggest is that you''re somehow reading in the file incorrectly, or the structure is being padded wrongly by the compiler.

To check this in MSVC++, use this:

  
#pragma pack (push, 1)
struct Q3_Vertex
{
float Position[3]; // Position

float TexCoords[2]; // Texcoords

float LightCoords[2]; // Lightmap coords

float Normal[3]; // Normal

int Color;
};
#pragma pack (pop)


- Pete

Share this post


Link to post
Share on other sites
The lightmaps (for the most part) have nothing to do with shaders. They should render correctly.

By the way, have you had any chance to mess with the curved surfaces? they are giving me hell.

--------------------------

Those who dance are considered insane by those who cannot hear the music.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!