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


Texture Coordinate Generation..

Recommended Posts

I am writing an OpenGL engine, and I want it to use calculated texture coordinates, rather than stored ones, like Quake. Quake doesn''t store the texture coordinates in the map file, it just stores scaling and offset info. I have been trying to figure out how to slap a texture on a triangle without deforming the texture at all. The triangle isn''t always facing along one axis so I can''t use it''s vertices as texture coordinates. Worldcraft (Quake/HL level editor) does it, you make a brush and all sides are texturemapped without deformation, etc.. Can someone please point me in the correct direction or explain it to me? Thx in advance

Share this post

Link to post
Share on other sites