The Third Dimension

Repeat after me "Satori is not a 3-D graphics tool" and then take a look at this scene:-

More Detailed Notation

When it matters which layer a canvas is loaded to I shall use subscripts L1 L2 L3... to represent layers. e.g:-

A = [AL1 AL2 AL3 ] is a 3 layer canvas.

The room scene at the top of the page is made up of the following canvases:-

There really is only one lamp in this scene and it has only been loaded once; it is in the layer PartL1 and nowhere else. Mirror really is a mirror reflecting the lamp and Mag. really is a magnifying glass, loaded twice to give two magnifying glasses on the final image.

Mag. and Mirror are both canvasFX filters, which only operate on objects below them in the same layer in which they have been placed.

Apart from being fun to play with there are a lot of advantages should you decide to alter the scene a bit. For example:-

  1. Move the magnifying glasses and they will magnify different parts of the scene.
  2. Move or change the lamp and its reflection in the mirror and both magnified views change as well.

The point of this example is to illustrate that canvasFX filters can be included in a nested canvas structure and behave like objects in the scene if that is what you want them to do. You can also nest canvasFX filters within canvasFX filters (which I have not shown).

Rendering Magnifying Glasses

When rendering a scene with a magnifying glass the image which is seen in the glass can look blurred. If this is not what you wanted then you can can get a sharper image by rendering in two stages. Firstly render the canvas to an rir file which is significantly larger than the final version. This creates a file with lots of detail. Then load the rir file to a new canvas and render that to the required size.  

<--- Back to Part 2 (Painting By Objects)

 

Forward to Part 4 (Nested Animations) ------>

 Nigel Sutton