I just released an update for my sprite system. Here is what has been updated:
1. You can now give sprites drop shadows!
The system does not require any special images to be loaded for this to work. You can specify the distance and angle of the shadow, or use a vector if you desire. One command, you have a shadow. Direction and distance can be set per sprite, so you could reduce the distance when a button is pushed down to give the impression that the button is moving in the Z axis. Shadows will become more transparent as the object that is casting them becomes more transparent as well.
2. You can now make sprites up to 2x brighter by setting color values over 255. This is done via add blending.
3. The system now gives you TFormPoint, TFormVector, and TFormNormal functions which act like 2D versions of the Blitz3D functions. They allow you to transform points and vectors from the space of one sprite to another (or global space). The shadow function uses TFormVector to determine where to draw the shadow for example.
Older sprite system info can be found here:
http://www.blitzbasic.com/Community/posts.php?topic=58037
1. You can now give sprites drop shadows!
The system does not require any special images to be loaded for this to work. You can specify the distance and angle of the shadow, or use a vector if you desire. One command, you have a shadow. Direction and distance can be set per sprite, so you could reduce the distance when a button is pushed down to give the impression that the button is moving in the Z axis. Shadows will become more transparent as the object that is casting them becomes more transparent as well.
2. You can now make sprites up to 2x brighter by setting color values over 255. This is done via add blending.
3. The system now gives you TFormPoint, TFormVector, and TFormNormal functions which act like 2D versions of the Blitz3D functions. They allow you to transform points and vectors from the space of one sprite to another (or global space). The shadow function uses TFormVector to determine where to draw the shadow for example.
Older sprite system info can be found here:
http://www.blitzbasic.com/Community/posts.php?topic=58037