Clipping problem

13 views
Skip to first unread message

wsvdmeer

unread,
Nov 9, 2009, 4:11:22 PM11/9/09
to away3d.dev
Hi there,

I'm working on a away3d project where the user can navigate through a
interactive street in first person view.
Everything is working rather well but i have a problem with the
clipping of the houses.
The models are low poly .md2 models and when you come to close and
view the houses in a angle you see triangle pieces of the house
disappearing.
I'm currently using the FrustomClipping class for the clipping.
Is there a workaround for this probleme or am i doing something wrong?

You can see my project here : http://labs.speak.nl/3d/away3d/demo14/bin/.

Use WSAD to move the camera and the mouse to look around.
The map on the left side shows the collision bounderies and you can
change the view with the 1,2,3 keys

Peter Kapelyan

unread,
Nov 9, 2009, 4:25:02 PM11/9/09
to away3...@googlegroups.com
I think it's the floor getting in the way, no?

Try:

myFloor.ownCanvas=true
myFloor.pushBack=true;

If that doesn't help you can try:

myFloor.ownCanvas=true
myFloor.screenZOffset=1000;//some large number

-Pete
--
___________________

Actionscript 3.0 Flash 3D Graphics Engine

HTTP://AWAY3D.COM

wsvdmeer

unread,
Nov 9, 2009, 4:37:06 PM11/9/09
to away3d.dev
Thanks very much Pete!

Haha .pushBack works great.
Didn't think it would be so easy :S.
Reply all
Reply to author
Forward
0 new messages