Mapping the meshes

Mapping the meshes


Replies | Reply | Tomb Raider Level Editor & Utility Discussion Forum

Posted by E.Popov on March 01, 2000 at 06:48:37:

To those interested:

You must make some corrections on texture coordinates before using them for mapping meshes (I think it's the same thing when mapping the rooms, but I didn't test, and the problem should be less visible because faces making a room are typically large). Specifically, you have to add / substract one to u,v coordinates, based on these rules:

- if the coord. is the min. coord for the face, add 1
- if the coord. is the max. coord for the face, sub 1

A u coord. is the min one if the XCoordinate field of the tr2_object_texture_vert structure is 1, and is the max if XCoordinate = 255. Similarly for the v coord. (use the YCoordinate field).

If you don't make these adjustments, some artifacts will appear between faces, the mapping will not be "smooth" all over the mesh.

E.Popov



Replies:



Reply

Name:

Email:

Subject:

Message:

Optional
Link URL:

Link Title:

Image URL:


Replies | Reply | Tomb Raider Level Editor & Utility Discussion Forum