Using PagedGeometry for all my static geometry

Maxi

07-12-2007 01:00:31

Hi

At the moment I use PagedGeometry for trees, bushes and grass, but I do not realy know if I should use it for the rest of my geometry (e.g buildings).
The problem is that there ara normaly a few meshes for trees and bushes that are used over and over again on a terrain and I know that PagedGeometry handles this very well. But what I don't know is how it will affect the performance of my aplication if I use PagedGeometry to display a hundred different meshes, each used only once or twice in my scene.

I would be glad if someone could give me an advice if I should use PagedGeometry for other, unique objects.

JohnJ

07-12-2007 03:36:27

But what I don't know is how it will affect the performance of my aplication if I use PagedGeometry to display a hundred different meshes, each used only once or twice in my scene.
As you probably expected, you really won't get much of a speed boost using PagedGeometry for this purpose. For many different meshes, it's often better to just use plain old Ogre Entity's, since batching won't help much (however it could if your entities reuse the same materials a lot), and PagedGeometry's impostor system might not look very good for things like buildings.

If I were you, I'd consider using tuan kuranes' real-time impostoring library:
http://www.ogre3d.org/wiki/index.php/Re ... mpostoring

I've never actually used it myself, but it should work well for many unique objects, and will hopefully give you a good speed boost over normal entities or even StaticGeometry.