VectorVision and Papervision 3D

Friday, 7 November 2008 07:48 by shawny

Over the past couple days, I have been working on a project that requires excellent quality text to be rendered within a Flex 3 project using Papervision 3D.  Papervision uses a bitmap based enigne which just doesn't provide high quality text.  Throughout my web travels this week, I was lucky to find an extension of Papervision 3D called VectorVision that allows for the creation of vector based objects within PV3D.  VectorVision was created by a couple developers (they have been called "mad scientists") from Amsterdam, Mark Barcinski & Adrien Jeanjean.  The website for this dynamic duo is located at http://blog.barcinski-jeanjean.com/.

Right off the bat, I noticed that there isn't a lot of discussion regarding vectorvision examples on the web, however the vectorvision source code contains several good examples.  So far, I have not been able to compile my Flex project when I create vectorvision objects due to a couple 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.

Tracing the error, we find that it is actually being caused in the VectorShape3D class under the org\papervision3d\objects\special package.

This appears to be a known bug according to the vectorvision google code issues page.  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;

If you recompile your Flex project, you will see the errors disappear. 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Add comment


(Will show your Gravatar icon)  

  Country flag

biuquote
  • Comment
  • Preview
Loading