mnm23
24-08-2006 06:35:43
Hey guys. Back with another problem. Im not 100% sure if it is a problem with nxOgre, but i have tried this in ogre alone and it worked fine. Ok so what i am trying to do is switch from one level to the next. When i try to switch, my game crashes. My levels are in seperate .cpp files from each other.
So then i write a line to destroy the viewport. And the game crashes again at this line. In the new level it is changing to not current level that it is in.
Then i try to create a single viewport in a .cpp file so all the levels can just call from it instead of creating a new one in each level, but that didnt work either. This is very wierd because i didnt have this trouble when i did this in ogre (with out any addons). Thanks again guys.
Error # 9999
Function: Render Target::addViewport
Description: Can't create another viewport for MyOgreWindow with Z-Order 0 because a viewport exists with this Z-Oder already.
So then i write a line to destroy the viewport. And the game crashes again at this line. In the new level it is changing to not current level that it is in.
mViewport->setBackgroundColour(ColourValue(0.0, 0.0, 1.0));
Then i try to create a single viewport in a .cpp file so all the levels can just call from it instead of creating a new one in each level, but that didnt work either. This is very wierd because i didnt have this trouble when i did this in ogre (with out any addons). Thanks again guys.