Masking a Papervision3D Sphere

4
Nov/08
1

After searching for like, 3 days to no avail, I finally found a feasible solution for masking the ragged edges of a sphere in papervision.

Basically, you’re not masking the object itself, but you have to mask the viewport. So simply create a movieclip holding the circle you wish to use as the mask, give it an instance name, then apply this code:

viewPort:Viewport3D = new Viewport3D(220,220);

viewPort.mask = mask_mc;

That’s it. Say goodbye to your ragged sphere edges!