What steps will reproduce the problem?
1. Set up a scene using the Clipping base class for face culling
2. Render more than one mesh
3. See that the clipping step removes valid faces
What is the expected output? What do you see instead?
In Clipping.as:collectFaces(), a local index (i) into the top of the face
list is kept in the method, and reset to -1 on each call. The face list is
not normally empty after the first call per render, so previous faces get
overwritten.
What version of the product are you using? On what operating system?
away3dlite svn -r1955
Please provide any additional information below.
The RectangleClipping subclass stores no index and adds the faces using:
faces[faces.length] = face;
Using this method in Clipping.as as well fixes the problem.
Original issue reported on code.google.com by ken.rai...@gmail.com on 16 Oct 2009 at 9:43
Original issue reported on code.google.com by
ken.rai...@gmail.com
on 16 Oct 2009 at 9:43