HI,
I have a plane(2 faces, 4 vertices), and i tried to modify its UV setup.

i have a texture which contains 16*16 tiles, and i want to place the UV setup on one tile.

So i thought for the quick and dirty way, i use vec_to_uv. But somehow the effect does not apply.

for the "num" parameter, i use the vertex number of the mesh vertex and not the uv-vertex?
x/y are normalized 0..1 right?

so, shouldnt this setip the surface for the first tile in the upper left corner of the texture?

Code:
LVec.x = 0;
	LVec.y = 1/16;
	vec_to_uv(LVec, ACell.ent, 1);
	LVec.x = 0;
	LVec.y = 0;
	vec_to_uv(LVec, ACell.ent, 3);
	LVec.x = 1/16;
	LVec.y = 0;
	vec_to_uv(LVec, ACell.ent, 4);
	LVec.x = 1/16;
	LVec.y = 1/16;
	vec_to_uv(LVec, ACell.ent, 2);




MY Website with news of my projects:
(for example my current
Muliplayer Bomberman,
GenesisPrecompiler for LiteC
and TileMaster, an easy to use Tile editor)
Sparetime-Development