enhanced sprite3d library

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
leonhardt
Enthusiast
Enthusiast
Posts: 220
Joined: Wed Dec 23, 2009 3:26 pm

enhanced sprite3d library

Post 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.
poor English...

PureBasic & Delphi & VBA
eesau
Enthusiast
Enthusiast
Posts: 589
Joined: Fri Apr 27, 2007 12:38 pm
Location: Finland

Re: enhanced sprite3d library

Post 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.
Kelebrindae
Enthusiast
Enthusiast
Posts: 151
Joined: Tue Apr 01, 2008 3:23 pm

Re: enhanced sprite3d library

Post 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... :oops:
User avatar
leonhardt
Enthusiast
Enthusiast
Posts: 220
Joined: Wed Dec 23, 2009 3:26 pm

Re: enhanced sprite3d library

Post by leonhardt »

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... :oops:
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.
poor English...

PureBasic & Delphi & VBA
Kruno
User
User
Posts: 31
Joined: Fri Apr 26, 2013 3:17 pm

Re: enhanced sprite3d library

Post by Kruno »

It would be nice to attach shaders to a sprite.
Post Reply