need help reducing overdraw for this case

hey

here’s an example of a setup we have (probably doesn’t matter for this case, but each subcube actually has a different texture, but it’s the same texture on all 6 sides of the subcube).

Each subcube can be extruded, like you can see in the example. Now I’m getting lots of overdraw as shown in render1.

Any ideas how to effectively control overdraw in this case?

thanks
akeem
overdraw.toe (19 KB)

It’s very difficult in an example like this. You could use a bunch of different copies of the geometry, each sorted along a different axis (Using a Sort SOP and sorting by primitive). Then depending on which axis you are looking down, pick the sorting that gives the best overdraw results.