Dividing a texture into new textures

Started by
2 comments, last by asvsfs 13 years, 2 months ago
Hello everybody,

my question is how can i divide my sprite into (for instance) 4 sprites, for example i have a circle and i want to divide it into 4 unequal pieces
and every new sprite would be a quad with texture on it,

K7ZRD.gif


i want an efficient way for doing it

Thx ,
Regards
Advertisement
another way i thought is maybe i could define every thing in world as a polygon with triangles ,
and when i want to divide an object i just create new polygon and with triangulation make new triangles to render

i don't know which way is more efficient,
the fastes way would be to just replace your spirit geometry, with 4 new geometrys.
Either threw calculations or with prcalculated geometry.

This has the possitiv effect that u don't need to copy the texture data around, you can use the same texture for everything.

the fastes way would be to just replace your spirit geometry, with 4 new geometrys.
Either threw calculations or with prcalculated geometry.

This has the possitiv effect that u don't need to copy the texture data around, you can use the same texture for everything.


could you give some details about it?

This topic is closed to new replies.

Advertisement