[Papervision3D] Problems with QuadrantRenderEngine
andysk8er
elbarto37 at yahoo.com
Thu Nov 13 12:44:51 PST 2008
Ahh... The problem is that I'm an idiot...
I have been using the non-trunk PV3D code. Once I pointed my classpath to
the PV trunk, it compiled fine, but it created another issue:
when using the trunk files, my collada doesn't appear in the same place. It
appears to be related to the fact I was using the old FreeCamera class,
which doesn't exist in the trunk. So, I'm guessing that the default setting
on the Camera3D need to be changed to match the FreeCamera. But, the
parameters of the Camera3D are different in the trunk than in the old
classes that I had been using.
Can anyone explain how the new Camera3D constructor parameters
(fov:Number=60, near:Number=10, far:Number=5000, useCulling:Boolean=false,
useProjection:Boolean=false) relate to the old parameters
(target:DisplayObject3D=null, zoom:Number=11, focus:Number=100)? I know that
in the old class, I need the zoom=2 and focus = 100;
Any help?
-Andy
andysk8er wrote:
>
> Hey,
> I am trying to switch over from the BasicRenderEngine to the
> QuadRenderEngine, but Flash is throwing compiler errors from the PV3D
> classes.
>
> I initiate it with the following code (similar to how I use
> BasicRenderEngine):
>
> import org.papervision3d.render.QuadrantRenderEngine;
> ...
> public var renderer:QuadrantRenderEngine;
> ...
> renderer = new QuadrantRenderEngine();
>
> and when I compile, it repeatedly gives me this:
> 1119: Access of possibly undefined property _______ through a reference
> with static type org.papervision3d.core.render.command:RenderableListItem.
>
> it tells me that the following properties are undefined in QuadTree.as:
> maxX, maxY, minX, minY, quadrant
>
> in the following places:
> QuadTree.as, lines 64, 86, 140, 175, 176, 177, 178, 181, 182
>
> Am I making some really stupid, basic error? The online API has not been
> updated to include the new render engine (as far as I can see).
>
> Thanks,
> Andy.
>
>
--
View this message in context: http://www.nabble.com/Problems-with-QuadrantRenderEngine-tp20384411p20489167.html
Sent from the Papervision3D mailing list archive at Nabble.com.
More information about the Papervision3D
mailing list