PagedGeometry with Ogre3D 1.7

cg76

02-02-2010 16:38:15

Hi all,

I'm trying to integrate PagedGeometry with Sinbad's new terrain component but my trees and grass are not rendered. Does the new terrain component support PagedGeometry?

Regards,
CG

Fish

03-02-2010 03:31:35

You may be the first one to try it out. Technically, PG shouldn't care if you have terrain at all. It only needs a function to call to get some height at different locations.

The first thing I would check is that setHeightFunction() is being called and verify that the function being passed in is returning correct values.

-Fish

cg76

16-02-2010 16:40:14

Thanks Fish, I got confused with the TERRAIN_WORLD_SIZE and TERRAIN_SIZE, I set the boundary of the TreeLoader to 513 by 513 instead of 12000 by 12000. After plugging in the correct number (12000), my trees are standing tall :D By the way, any idea what is the difference between TERRAIN_SIZE and TERRAIN_WORLD_SIZE?

Regards,
CG

Fish

16-02-2010 19:28:51

I haven't spent much time with the new Terrain component but you can take a look at the TerrainGroup constructor docs for more info.

-Fish