February 8, 2009 at 13:46Papervision3D and ShadowCaster

remitoffoli-com_demo-1

Here is a Papervision3D demo using Zupko’s ShadowCaster class and a little tip to prevent the floor plane from hiding the objects :

viewport.containerSprite.sortMode = ViewportLayerSortMode.INDEX_SORT;
viewport.getChildLayer(floor,true).layerIndex = 1;
viewport.getChildLayer(objects,true).layerIndex = 2;

Click once to lift object’s layer up and once more to release it :
View the demo

Written by Rémi.T under Coding.
Tags: .
Add a comment »