Important Step Missed in WIKI?

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
Drew_Benton
Halfling
Posts: 95
Joined: Sun Apr 03, 2005 6:58 pm

Important Step Missed in WIKI?

Post by Drew_Benton » Mon Apr 04, 2005 9:07 pm

hey guys, I've been messing around with OGRE and I noticed a step was skipped in the WIKI. On Tutorial 8 it says:
Now we need to make some changes to TutorialFrameListener. There are a number of ways the FrameListener could have been setup. We created it as a separate class. We could of instead, also had the TutorialApplication inherit from ExampleFrameListener, and that would of saved us from having to pass the scene nodes. But, no, I did not do it the simple way. This time at least. Go to our method TutorialApplication::createFrameListener(), we need to add the two new scene node in the following way, so go ahead and make the changes:

mFrameListener = new TutorialFrameListener(
mWindow, mCamera, mControlNode, mShipNode, mCameraNode );

That does it for working in TutorialApplication.cpp and TutorialApplication.h.
However, after doing this my FrameListener never worked. I took a look at this page on OGRE How-to's and it says that:
You must also register your FrameListener to the Root. This can be done in the createFrameListener()-function of the class that is derived from ExampleApplication. You can register as many FrameListeners to the root as you want. It will look something like this:

void createFrameListener(void)
{
MyFrameListener listener = new MyFrameListener(mWindow, mCamera);
mRoot->addFrameListener(listener);
}
So the part of the

Code: Select all

mRoot->addFrameListener(listener);
was left out in the WIKI I believe. Just pointing this out, if I am wrong, feel free to tell me, I am new to OGRE :D
0 x

User avatar
DWORD
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 1365
Joined: Tue Sep 07, 2004 12:43 pm
Location: Aalborg, Denmark
Contact:

Post by DWORD » Mon Apr 04, 2005 9:37 pm

You are right. Feel free to edit the text; it's a wiki just for that. :)
0 x

Drew_Benton
Halfling
Posts: 95
Joined: Sun Apr 03, 2005 6:58 pm

Post by Drew_Benton » Mon Apr 04, 2005 9:55 pm

Ok cool. I went back and started reading some more, and I noticed it was done around tutorial 5, but for someone such as myself that likes to jump around, I think that was an essential step that was worth being shown again :) I didn't know working with wiki's was so easy either.
0 x

User avatar
Clay
OGRE Community Helper
OGRE Community Helper
Posts: 518
Joined: Wed Mar 17, 2004 4:14 am
Contact:

Post by Clay » Mon Apr 04, 2005 10:38 pm

For the most part you can skip around in the tutorials, but any tutorial that's marked "Part x of y" you should read in order. =)
0 x

Post Reply