enhanced sprite3d library
enhanced sprite3d library
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.
poor English...
PureBasic & Delphi & VBA
PureBasic & Delphi & VBA
Re: enhanced sprite3d library
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.
-
- Enthusiast
- Posts: 151
- Joined: Tue Apr 01, 2008 3:23 pm
Re: enhanced sprite3d library
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...
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
I had downloaded and applied your include file some time ago before this post,Kelebrindae wrote: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...

poor English...
PureBasic & Delphi & VBA
PureBasic & Delphi & VBA
Re: enhanced sprite3d library
It would be nice to attach shaders to a sprite.