When you nest scenes, you organize your project into a hierarchy. In its simplest form, nesting means you combine two or more scenes into one main scene which will be shown when you play the demo. When you nest a scene inside another scene, it becomes an effect (showing the child scene) within that parent scene.
You can use nesting to reuse anything you build. For example, if you create an animation and you want to use it ten times in a project, you only have to build the animation once. Build it in its own scene, then drag it into any other scene as many times as you want.
Complex projects can be split into multiple parts and edited separately. Each part would be a new scene. Then at the final stage, the demo is composed in one part, possibly adding some transitions and overlay graphics if necessary.
It is possible to use nesting to create infinite loops when rendering a scene. To prevent this, Demopaja prompts a dialog showing the error situation. If you have built a very complex hierarchy, it can be difficult to see what went wrong. The rendering stack will help you to spot the problem.
The stack may look uneasy to follow at first. The picture above presents a following situation:
As seen in the example, an effect in Scene1 would call Scene2, and an effect in Scene2 would call Scene2. This situation would loop forever if it would not be checked.
Nesting also happens when a scene is used as an image. The rendering process only differs so that the output is rendered to an invisible buffer instead of the screen.
See also:
Copyright © 2000-2002 Moppi Productions