Hi guys.
Is there a way to count the number of polygons rendered on the scene?
Rafael
Hi guys.
Is there a way to count the number of polygons rendered on the scene?
Rafael
Yes, there is:
long polyCount = canvas.get3DPeer().getTriangles();
Marvin
Thanks Marvin ;D
Rafael
Question : Does it also work with static geometries ? I saw once that when running a test with statig geometries on (thus display lists used) it displayed “0” triangles rendered… Has it been fixed ?
Oh! Good hint. No, it hasn’t been fixed. I simply wasn’t aware of. I will put it on my list ;).
Marvin
Lists tend to reach tremendous lengthes, these days…
I think a variable with the number of polygons displayed in the display list will do the trick, what do you think ? (of course it’s grossly simplified)
Yeah, that’s exactly, what I planned to do. I’m currently having a look at the lighting problem. I will do this fix together with it.
Marvin
The polygon count retrieved by canvas.get3DPeer().getTriangles() is now correct even if DisplayLists are used. Please checkout your SVN.
Marvin