[Papervision3D] Frustrum Clipping frustrating me

Benjamin Haller bh at pano-life.de
Thu Sep 9 03:41:21 PDT 2010


  I have a plane 256 by 256 pixels with a bitmapMaterial on z=127 right 
in front of my camera xyz=0.
Now I rotate the camera onRenderTick rotationY+=value.
I then get the weirdest clipping errors playing with zoom, focus, 
useCulling, useClipping, autoClipping, autoCulling, segements of the 
plane for hours... nothing.
I do a little research and find this:
http://blog.zupko.info/?p=170
Sounds great. I try it out and it clips nicely BUT what seems to happen 
is this: clip the plane -> rotate the camera -> render
The result ist that I can see the clipped border. When I stop the camera 
rotation I can watch the clipping catching up until
my plane fills the viewport nicely again.
As in the blogpost by andy it works nicely I tried out his script as a 
flexproject, as an actionscript project and in flash itself, same 
problem as I have... doesn?t work
any more.
Anybody knows how to fix this?
In the blog post some guy seemed to have the same problem:
"Joe <http://usecake.com>

I think there is a bug with the edges -- seems be ok until you rotate 
the camera. Here's and example...

http://testing.usecake.com/game2.html

It seems like, when the camera rotates, the scene is clipped before the 
planes are updated.

Joe Wheeler <http://usecake.com>

Ok I found a fix but I think it will probably need to be optimised.

I've basically stuck this:

renderSessionData.camera.updateTransform();

On line 145 --- just before this line:

_matrix.copy( renderSessionData.camera.transform );"

Class Name would have been nice.

Help is much appreciated and thanks in advance.
-Benjamin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20100909/b99cbc51/attachment.html>


More information about the Papervision3D mailing list