Mind
19-05-2010 00:40:49
Hello,
i have currently 2 problems with PagedGeometry.
1. i use more then one OgreSceneManager. on this case i get a crash because on this crazy hack =)
so only one times creates this nodes for one SceneManager. other SceneManager dont have this ones and crashes.
Is PagedGeometry only useable for one SceneManager? i dont hope so ....
2.
i have a problem with wrong postions of objects in terrain (or missing objects) if i use following code
... new TreeLoader3D(geom, TBounds(0, 0, 255, 255));
geom->setPageSize(60);
...
if i use "geom->setPageSize(100)" its all fine.
is this ok? dont really understand this. or what values are right for the page size?
i hope the description is enough.
Mind.
i have currently 2 problems with PagedGeometry.
1. i use more then one OgreSceneManager. on this case i get a crash because on this crazy hack =)
uint32 ImpostorPage::selfInstances = 0;
...
void ImpostorPage::init(PagedGeometry *geom, const Ogre::Any &data)
{
if (++selfInstances == 1){
//Set up a single instance of a scene node which will be used when rendering impostor textures
geom->getSceneNode()->createChildSceneNode("ImpostorPage::renderNode");
geom->getSceneNode()->createChildSceneNode("ImpostorPage::cameraNode");
ResourceGroupManager::getSingleton().createResourceGroup("Impostors");
}
}
so only one times creates this nodes for one SceneManager. other SceneManager dont have this ones and crashes.
Is PagedGeometry only useable for one SceneManager? i dont hope so ....
2.
i have a problem with wrong postions of objects in terrain (or missing objects) if i use following code
... new TreeLoader3D(geom, TBounds(0, 0, 255, 255));
geom->setPageSize(60);
...
if i use "geom->setPageSize(100)" its all fine.
is this ok? dont really understand this. or what values are right for the page size?
i hope the description is enough.
Mind.