kottore / away3d

Automatically exported from code.google.com/p/away3d
0 stars 0 forks source link

[Away3DLite] Clipping base class fails to include all faces #72

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago

Original comment by katopz on 10 Dec 2009 at 7:02