Special

Clearance Sale!

We've been publishing for over five years now and it's time to clear out our inventory of back issues, so we're slashing prices!

RBD Magazines

Check out this amazing clearance sale of all our past issues. Missing some issues? This is a great time to complete your RBD collection. Save up to 40% off the regular price of our printed back issue packages. These prices are only good until the end of the year May 2008 and supplies are limited, so place your order today.

Article Preview


Buy Now

Print:
PDF:

The Topographic Apprentice

Shape Animation

An animation system based on Object3D's Shape property

Issue: 2.1 (August/September 2003)
Author: Joe Nastasi
Author Bio: Joe Nastasi is a full-time REALbasic consultant and the developer of A-OK! The Wings of Mercury and FTP Suite. He also wonders where the heck the last year went!
Article Description: No description available.
Article Length (in bytes): 7,522
Starting Page Number: 38
RBD Number: 2119
Resource File(s): None
Related Web Link(s):

http://support.realsoftware.com/feedback

Known Limitations: None

Excerpt of article text...

A new year of REALbasic Developer and a new direction for The Topographic Apprentice! This month starts a series of articles that describe the design of an animation library that is based on Object3D's Shape property and facilitates the execution of shape animations. It will be fairly flexible and will be designed to be compatible with a yet-to-be-designed animation editor.

The Concept

RB3D allows you to load more than one 3DMF model into an Object3D. The models could be a set of models of a figure walking, fighting, and falling down, for example. Each model is a slightly different pose. The Shape property is the vehicle that allows you to switch between models. If three models are loaded into an Object3D, the models are instantly switched by setting the Shape property to 0, 1, or 2. (The array that holds the models is zero-based.)

Let's say you've created a figure that has four running positions, two punching positions, and two blocking positions. This means a total of eight 3DMF models will be loaded into Object3D. It is important to load the models in the proper order because the loading order defines what Shape property value will access what model. Table 1 defines our models and their Shape value.

...End of Excerpt. Please purchase the magazine to read the full article.

Article copyrighted by REALbasic Developer magazine. All rights reserved.


 


|

 


Weblog Commenting and Trackback by HaloScan.com