|
Post by quicksilva on Mar 26, 2005 20:14:51 GMT
I think it would be neat if you could somehow add some predefined filter effects such as the bloom filter and maybe a motion blur (also heat distortion using a blurred sin effect etc...) that can be applied to a hud. I know that this can be done by the user as many people in the Blitz community have already proved but it would make a nice new addition to your library which is fast becoming the best all in one 2D lib that Blitz 3D has seen. Another request would be a premade timing system so that the user only has to specify the desired frame rate and Sprite Candy controls all timing\update issues. Again this is fairly easy to add but it would make the lib even more user friendly. What do you think?
Oh and the abilty to apply the filter effects to specific layers would be nice too so you could blur the background\foreground for example but not the middle ground, kind of for depth of field.
And how about some simple physics effects for bouncing objects, simple gravity and so on.
Jason.
|
|
|
Post by Xpressive on Mar 27, 2005 13:55:21 GMT
Bouncing effects shouldn't be a problem - but filter effects will require to modify a texture directly. This means that ALL images using the same texture would be modified at the same time. I am not sure if this would be useful.
BTW: object motion blurring (motion trails) are very simple to achieve - just create a copy of your image etc. every 25 millisecs, for example, and let Sprite Candy fade it out and remove automatically:
; MOTION TRAIL If MilliSecs() - lastTime > 25 Then
lastTime = MilliSecs() Temp% = HUD_CreateCopy(MyImage) HUD_SetObjectAlpha Temp,.5 HUD_FX_AlphaFade Temp,0,400 HUD_FX_AutoRemove Temp,400
End If
Just place this code within your main loop and you're done. Keep in mind that your original image should be moved to see this effect. You can move it using a simple wave effect, for example:
HUD_FX_Wave MyImage, 275,.25, -175,.50 ; THIS IS AN ARC
|
|
Ed-2D
Junior Member
Posts: 59
|
Post by Ed-2D on Mar 27, 2005 16:19:46 GMT
Framerate control is a good idea
A snippet could be made easily. ;D
|
|
|
Post by Xpressive on Mar 28, 2005 5:22:17 GMT
Another request would be a premade timing system so that the user only has to specify the desired frame rate and Sprite Candy controls all timing\update issues.
I am not sure what you mean exactly - could you explain that in more detail? All the animation effects (HUD_FX...) are time-based, thus framerate-independent.
|
|
|
Post by quicksilva on Mar 31, 2005 17:40:55 GMT
Firstly, sorry for the late reply. Ok what I meant was some sort of way of limiting the timing to a 60 fps refresh rate, like BlitzMax can do so that people`s games can run at an identical set rate on all computers. I think there should be a simple command to set this (with possible variable frame rate option) so that the programmer doesn`t have to worry about the game timing themselves, just set and forget.
Jason.
|
|