Page 1 of 1

Sprite3D distortion

Posted: Fri Oct 06, 2006 12:01 am
by eddy
Is there a way to manipulate sprite3D vertex ?

Posted: Fri Oct 06, 2006 5:59 am
by netmaestro
You can distort using TransformSprite3D(), also this may be helpful:

http://www.purebasic.fr/english/viewtop ... 16&start=3

Posted: Fri Oct 06, 2006 4:17 pm
by Paul
TransformSprite3D() is pretty useless as it does not transform correctly. It breaks your image into 2 triangles and distorts those. :(

Posted: Mon Oct 09, 2006 8:11 am
by andreyu
Paul wrote:TransformSprite3D() is pretty useless as it does not transform correctly. It breaks your image into 2 triangles and distorts those. :(
Try to use another mode - Sprite3DQuality(1) - default 0 (No filtering (faster but uggly when zooming/rotating)).

Posted: Mon Oct 09, 2006 8:47 am
by Heathen
andreyu wrote:
Paul wrote:TransformSprite3D() is pretty useless as it does not transform correctly. It breaks your image into 2 triangles and distorts those. :(
Try to use another mode - Sprite3DQuality(1) - default 0 (No filtering (faster but uggly when zooming/rotating)).
I dont think that prevents the ugly effects from transformation. Right now PB uses 2 triangles per sprite which causes it to look messed up when skewed, you need to somehow make it so it's 4 triangles instead.