When materials are not used optimally, they can give Papervision3D a hard time rendering them. In Chapter 4 about materials, you have already seen some techniques to keep them as lightweight as possible. In this section, we will discuss these techniques one by one and introduce more optimization strategies.
Transparency can set on instances of MovieMaterial
or classes that inherit from MovieMaterial
. By default, transparency of movie materials is turned off. Whenever you can, you should keep it this way. Transparent images are 32-bit and non-transparent images are 24-bit. The latter are much faster to render.
Always try setting the tiled
property of a material to true
. Depending on your situation this will slightly increase the performance due to the presence of a performance bug in the Flash player.
Power of two textures enable mipmapping, which allows you to set smoothing
on materials to true
without losing any performance. Chapter...