Skip to main content
Participant
February 5, 2012
Question

Depth sorting problem in 3D space

  • February 5, 2012
  • 1 reply
  • 472 views

Hi everybody,

With flash builder and away3d I have made a 3D building where you can walk through.

When you start, you are outside the building and you can enter the building through a door.

This building has an outside wall made of bricks and an inside wall. There is a little space between the inside wall and the outside wall (just as a cavity wall).

But when I walk outside the building, I can see sometimes parts of the inside wall through the outside wall (depth sorting problem). The same as I walk into the building, I see parts of the outside wall through the inside wall.

Some of these depth sorting problems you can solve with pushfront and pushback, but not all. For example when you are outside the building, you can use pushfront for the outside wall. You don't see the inside wall through the outside wall anymore. But when you walk into the building you see the outside wall through the inside wall (of course because you used pushfront for the outside wall).

Actually it depends on your position in the 3D space for which wall you have to use pushback or pushfront.

Is there a way to solve this kind of depth sorting problems?

This topic has been closed for replies.

1 reply

Bertie72Author
Participant
February 6, 2012

I found out that you can also solve the depth sorting problem with Renderer.CORRECT_Z_ORDER.

But the project becomes very slow when I use that (you can hardly walk around).

To make it fast again I think you  have to let the gpu do all the renderings instead of the cpu.

Does anyone know how you can let the gpu do all the renderings?

I work with flash builder 4.5.