I'm with Reinorvak, z-ordering is tricky.  After trying what seems
logical, its usually a lot of testing with combinations of ownCanvas,
pushback, and pushfront.  If they aren't giving me the desired
results, I then might resort to changing the renderer on specific
objects to CORRECT_Z_ORDER or INTERSECTING_OBJECTS if it doesn't
hammer my performance too much.

One thing to consider that helped me in a project I was working on is
to break apart the modeled pieces into smaller pieces.  For example, I
was using a modeled/textured cube as an interior and ran into issues
when I needed to use "ownCanvas = true" on the cube.  What solved it
for me was creating the interior as 6 planes making the z-ordering
work as I expected it to.  Is your roof one solid object?  Can you
split it into 2 sides?  pushfront on the near one, pushback on the far
one?

On Apr 30, 2:55 pm, Reinorvak <[email protected]> wrote:
> I can tell you one thing, getting Z-ordering to work with you is a
> pain in itself. I've been fighting with it ever since I started this
> project and there are just so many things that can go wrong.
>
> The model you're using I believe can be resolved by using
> pushback=true on all the lower model pieces. If that doesn't solve the
> issue you can try screenZOffset. The only problem I have with
> screenZOffset is that its not truly dynamic and you'll need to figure
> out what the farthest point from the object is and set it up every
> time.
>
> On Apr 30, 8:58 am, martinillo <[email protected]> wrote:
>
>
>
> > Hi all
>
> > i am facing the following problem which can be seen 
> > here:http://groups.google.com/group/away3d-dev/web/pushfront.jpg
>
> > i am loading 5 floors of a house (5 .dae - files from collada) into a
> > scene. when loading only 3 they appear perfect. loading more causes
> > the problem visible in the picture i uploaded here.
> > each floor is a ObjectContainer3D with ownCanvas = true.
> > Renderer is CORRECT_Z_ORDER
> > for this screenshot i tried pushfront=true for the roof which improves
> > the situation a bit.
> > I am using away3d 2.4 for flash 9.
> > I don't get why the other floors work fine but the one under the roof
> > causes problems.
> > may anyone give me a hint?
>
> > Thank you very much!
> > Cheers martin

Reply via email to