mrdoob/three.js — Issue #1459: Z-sorting and culling issue
Author: ekitson
Created: 2012-03-06 19:34:04+00:00
State: open

Discussed this briefly in #1374. If the vertices for a geometry are not centered around the local origin, it can cause z-sorting and culling issues since they both assume the geometry is centered. This code illustrates the z-sorting issue:
http://jsfiddle.net/zYnqL/

You can comment out the section under "Z-sorting looks bad" and uncomment the section under "Z-sorting looks good" to see the transparency as it should look. The bug could be fixed by adding a `position` property to `boundingSphere` that indicates the COG. @mrdoob I can implement the fix later, I just wanted to raise this issue so you could see it. I know you've got a handful of pull requests already so I'll hold off on creating a new one for now.