Priyanka Rane

January 12, 2010

VectorVision and Papervision 3D example source Code Error 1119

There is an extension of Papervision 3D called VectorVision that allows for the creation of vector based objects within PV3D. VectorVision was developed by Mark Barcinski & Adrien Jeanjean. The vectorvision source code contains good examples. but when you try to compile these examples you will win compile errors:

1119: Access of possibly undefined property screenDepth through a reference with static type org.papervision3d.core.render.command:RenderVectorShape.

1119: Access of possibly undefined property screenDepth through a reference with static type org.papervision3d.core.render.command:RenderVectorShape.

It is being caused in the VectorShape3D class which you can trace to org\papervision3d\objects\special package. To fix the issue, open the VectorShape3D class and change the two instances of the following line:

renderCommand.screenDepth = this.screenZ;
should read
renderCommand.screenZ = this.screenZ;
and recompile the Flex project. You wont see those compile errors.

Create a free website or blog at WordPress.com.