[email protected]

Casting shadows in Papervision 3D. V.2

Shadows can come in handy for bringing life to your 3D object. They will add that extra dimension to the scene. Here is another tutorial which shows how to implement shadow effect easily. Don’t be afraid of the number of code lines – much of them are the author’s comments. The code hightlighted in red shows all necessary steps. If you want to cast shadows of multiple objects you can do so by grouping your objects together into a single DisplayObject3D object and then use the DisplayObject3D as your model to cast a shadow in the castModel method of your ShadowCaster instance. The tutorial is supplemented with the demo and Flash/Flex source code to download.

Note: You will need to download the ShadowCaster class: see this post for the source files.

Tina Zennand
Tina is a writer who has been working with MotoCMS since early 2010. In her articles she covers various aspects of web design and web development. She is also a marketing manager for MotoCMS websites. You can follow her on Twitter or Google +.
More articles by Tina Zennand

Related Posts