laoniusanche / papervision3d

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

COb in StatsView displays incorrect value #200

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create and add a primitive
2. add a StatstView instance
3. set camera.useCulling to true
4. moving the primitive outside the frustum will show a COb value of 2 

What is the expected output? What do you see instead?
It should show a COb value of 1, but it shows a value of 2

What version of the product are you using? On what operating system?
rev. 873,  Mac OS x

Please provide any additional information below.
This happens because both DisplayObject3D and TriangleMesh3D have the next
line in their project() method:
renderSessionData.renderStatistics.culledObjects++;

So when the object is culled it is added twice to the render statistics as
being culled.

See also:
http://www.seedylifestyle.com/pv3d_bugs/TestStatsView.html

Original issue reported on code.google.com by huate...@gmail.com on 12 Jun 2009 at 9:06