Page 1 of 1
enhanced sprite3d library
Posted: Sun Apr 21, 2013 2:09 pm
by leonhardt
nowadays people use D3D sprite3d more and more ,compared to sprite2d, I think the PB native sprite3d library is very poor,it lacks some functions like mirror sprite,set color etc. although there are many codes that can handle this,I hope PB can support it natively,if can't,at least offer us some programming interface, like object structure, which officially hide from us.
Re: enhanced sprite3d library
Posted: Sun Apr 21, 2013 2:28 pm
by eesau
IIRC Fred said the whole screen/sprite etc. libraries will be reworked for a future PB version, I'm sure the new version will be much more robust.
Re: enhanced sprite3d library
Posted: Sun Apr 28, 2013 10:37 am
by Kelebrindae
You can try this:
http://keleb.free.fr/codecorner/downloa ... rite3D.zip
It's a little collection of macros to:
- Define a hotspot for a Sprite3D;
- Color a Sprite3D or its vertices individually;
- Flip a Sprite3D;
- Perform a "clipSprite" to animate a Sprite3D;
- And a few other things...
Here's the original topic:
http://www.purebasic.fr/english/viewtop ... =3&t=41787
[EDIT]: In the "ship.pb" source, please replace "medias/star.png" by "star.png" at line 83...

Re: enhanced sprite3d library
Posted: Sun Apr 28, 2013 3:22 pm
by leonhardt
I had downloaded and applied your include file some time ago before this post,

really nice lib,I just wonder why PB doesn't support this natively.
Re: enhanced sprite3d library
Posted: Tue Apr 30, 2013 10:18 am
by Kruno
It would be nice to attach shaders to a sprite.