Date: Monday October 2, 2000 @ 1:48
Update of /cvsroot/crystal/CS/libs/csengine/polygon
In directory slayer.i.sourceforge.net:/tmp/cvs-serv6896/libs/csengine/polygon
- Added new csPolygon3D::SetTextureSpace() function which accepts
three vertices and three uv coordinates and extracts the
texture matrix from that information. This is sometimes easier
to handle as many formats actually give uv coordinates for every
- I also extended csloader with a new format for the texture mapping
specification. You can now say:
POLYGON 'p' (
The format is as follows:
UV (i1,u1,v1, i2,u2,v2, i3,u3,v3)
i1, i2, and i3 are the local indices of vertices in the polygon
(so i1==0 corresponds to vertex 1 from the set).
ux,vx are uv coordinates for that vertex.