Accessibility
 
Home > Products > Director > Support > Intermediate Director 3D Features
Macromedia Director Support Center - Intermediate Director 3D Features
Adding the particle system resource to the world

Next, the model resource must be assigned to a model in the world. This points out the difference between model resources and models. Models are visible in the world, while model resources are objects that reside on the resource list of the world but don't necessarily appear in the world. This is similar to the way Director uses cast members, which are part of the Director movie but don't necessarily appear on the Stage.

The Lingo that creates a new model in the world and assigns the model resource to it uses the newModel() function. By including the model name and a reference to the model resource with the command, you create a new model, assign it the emitter resource, and place it in the 3D world so that it can be seen, all in a single step.

-- generate new model object, assigning it the created model resource
thisParticleSystemModel = pMember.newModel("particle system", thisParticleSystemModelResource)
At the end of this handler, the particle system is complete and becomes visible in the 3D sprite on the Stage.

By using these Lingo commands and functions, you can build your own particle systems from scratch.

The remaining behaviors in the sample movie are set up simply to manipulate these same properties so that you can experiment with them and observe their effects.

To Table of Contents Back to Previous document