Sprite3D distortion

Advanced game related topics
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Sprite3D distortion

Post by eddy »

Is there a way to manipulate sprite3D vertex ?
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

You can distort using TransformSprite3D(), also this may be helpful:

http://www.purebasic.fr/english/viewtop ... 16&start=3
BERESHEIT
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1282
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Post by Paul »

TransformSprite3D() is pretty useless as it does not transform correctly. It breaks your image into 2 triangles and distorts those. :(
Image Image
andreyu
User
User
Posts: 16
Joined: Sun Oct 01, 2006 7:12 pm
Location: Belarus
Contact:

Post 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)).
Regards, _Andrey_
http://www.wegroup.org
Heathen
Enthusiast
Enthusiast
Posts: 498
Joined: Tue Sep 27, 2005 6:54 pm
Location: At my pc coding..

Post 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.
I love Purebasic.
Post Reply