[Papervision3D] stats view updated

o renken renkster at gmail.com
Tue Nov 11 10:37:03 PST 2008


Thats very useful John. Thanks..




2008/11/10 John Grden <neoriley at gmail.com>

> I typically want to know poly counts with models and so for my Collada
> viewer, I finally added that ability to the StatsView object in Papervision.
>
> If you haven't used it or known it was there before, you can create a nices
> stats Sprite like you often see by doing this:
>
> addChild( new StatsView(renderer));
>
> And you'd see a nice black box at the top/left giving you all the stats
> about your scene.  Except for one:  total poly count.
>
> it's purely on demand, so you'll have to update it, but doing so is as
> simple as:
>
> statsView.updatePolyCount(scene:Scene3D);
>
> you can also use the static method CountPoly's if you don't want to use the
> statsView object:
>
> StatsView.countPolys(obj:DisplayObject3D):Number
>
> this way, you can just pass specific objects to find out what their poly
> count is.
>
> have fun,
>
> John
>
> --
> [  JPG  ]
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>


-- 
http://www.renkster.de/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20081111/b6335f40/attachment.html>


More information about the Papervision3D mailing list