Unable to load PagedGeometry from ogitor to ogre application

Dragonblood

12-05-2015 15:16:47

Hi,

I've created a map in Ogitor that i've exported to my Ogre application. I can see terrain, mesh, light, sky... but there is no grass. Why ?
How can I display PagedGeometry ?


Thanks

edit: i use ogitor and ogre 1.9

Lax

08-06-2015 20:03:59

Hey,

I had exactly the same problem. I forgot to set the camera for all paged geometry instances and call update.


void PagedGeometryModule::setActiveCamera(Ogre::Camera* camera)
{
for (auto& pageGeometry : this->pagedGeometryHandles)
{
pageGeometry->setCamera(camera);
}
}

void PagedGeometryModule::update(void)
{
for (auto& pageGeometry : this->pagedGeometryHandles)
{
pageGeometry->update();
}
}


Regards
Lax

Dragonblood

11-09-2015 21:12:12

ok it works but only for terrain page 0-0. I don't know why ! other terrain page doesn't display page geometry.. :?: :?: :?: