3D Animation Builder Alpha 3 for REALbasic
Download:
http://www.miensoftware.com/files/rb/rbanimationbuilder.zip
What's new?
- Copying now works
- Is now memory efficient by sharing everything except the vertex
positions
- Can now easily copy subclassed Animation3D
- New FPS info in the Animation Builder to see how fast the animation
runs
- Reordering of animation states in the Animation Builder
- Runs a bit faster
- Runs better in game
- Is now Windows compatible
Finally add animation to your RB games with ease! Uses only about
30-60% more RAM than a non-animating object
How easy?
1. Add the Animation3D classes to your project
2. Make sure the super classes of all the Object3Ds you want animated
is a Animation3D
3. Load the animation you created using the Animation Builder by
calling .LoadFromFile(f as folderitem)
3. Call the .UpdateAnimation(timepassed as double) in your game loop
to update the animation
4. Call the Play, Stop, and SetAnimationState(name as string) methods
to control your animation
Animation States:
SetAnimationState(name as string)
MorphToState(name as string, Duration as double)
Support for Level of Detail:
- Set the level of detail in game with the method:
SetLevelOfDetail LOD//1=High 2=Medium 3=Low
Checking the state of your animation:
- Animation3D.isPlaying as boolean
- Animation3D.CurrentAnimationState as AnimationState
- Animation3D.CurrentAnimationName as string
- Animation3D.CurrentAnimationIndex as integer
Playback options for AnimationState:
- AnimationState.isLooping as Boolean
- AnimationState.isReversed as Boolean
- AnimationState.isLoopBackAndForth as boolean
- AnimationState.SetPosition(Time as double)
- AnimationState.SetFrame(frame as double)
- AnimationState.FrameCount as integer
Cloning:
Animation3D.Copy as Animation3D
Cloning a subclass of Animation3D:
mySubclass(Animation3D.Copy(new mySubclass)) as mySubclass
To do:
- Support for multi texturing
Notes:
The 3D Animation Builder uses the MBS Plugin collection for the multi-
folderitem dialog box. If you would like to modify the code, make
sure you have the MBS plugin or remove that section of code and
replace it with the standard single folderitem dialog box.
Author:
Lo Saeteurn
lo at miensoftware dot com
www.miensoftware.com
Please do not use my sample zombie animation. It is only there for
demonstration.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|