[gameprogrammer] Texture Coordinates
- From: Richard Sabbarton <richard.sabbarton@xxxxxxxxx>
- To: gameprogrammer@xxxxxxxxxxxxx
- Date: Wed, 22 Jul 2009 23:42:21 +0100
Hi Guys,
I am looking for some advice on how best to determine texture
coordinates for vertices. I have been developing a 3D model utility
that can be used to create models for use in games and I am looking
for the best way of setting up texture coordinates. The model format
is a simple array of vertices that are arranged into stacks of
TRIANGLE_STRIPS. Each vertex has an assigned set of Texture
Coordinates. I can create a new mesh, say a 4 vertex quad with
texture coordinates assigned correctly. I can then subdivide the mesh
into 9 vertices and again into 25 vertices. I don't have a problem
preserving the texture coordinates during subdivision but when I start
maniplulating the vertex coordinates it will stretch and skew the
texture. I have no issues with why this is occuring, I am just
looking for advice on how best to manage texture coordinates.
At the moment, the application allows you to select vertices and
adjust the texture coordinates manually but I am sure there must be a
better way of doing it that that...
Any thoughts?
Richard
P.S. If anyone is interesting in assisting with some testing of this
app then let me know. I am thinking of making it freely available
when completed if there is some interest.
---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html
Other related posts: