OctreeSceneManager

Post those lines of code you feel like sharing or find what you require for your project here; or simply use them as tutorials.
sudi
Posts: 1686
Joined: Fri Aug 26, 2005 8:38 pm

Post by sudi »

Well the problem u are adressing has nothing todo with my scenemanager. its a problem with the irrlicht sourcecode. and it could be easily addressed by just saving the iterator with the scenenode when adding just like i do it

Code: Select all

void COcttreeManager::OcttreeAnimator::setNode(OcttreeNode* node)
{
    if (CurrentNode == node)
        return;
    if (CurrentNode)
    {
        CurrentNode->SceneNodes.erase(IT);
    }
    CurrentNode = node;
    if (CurrentNode)
    {
        CurrentNode->SceneNodes.push_back(this);
        IT = CurrentNode->SceneNodes.getLast();
    }
} 
that way i don't have to iterate
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
slavik262
Posts: 753
Joined: Sun Nov 22, 2009 9:25 pm
Location: Wisconsin, USA

Post by slavik262 »

Ever finish those updates? :D
Post Reply