rayCaster Constructor is protected in nxogre_raycaster.h

nikhil

06-02-2007 08:55:15

was that on purpose.. I changed it to public.
now I'm stukk with
>c:\ogresdk\ogreaddons\nxogre\tutorials\nxtutorials\102.cpp(170) : error C2653: 'BetaGUI' : is not a class or namespace name

have no idea wheres tht supposed to come from

betajaen

06-02-2007 09:22:15

Yes. So you use mScene->createRaycaster(..), I assume your compiling the tutorials in Dagon, if so there is a thread or two around here giving you the instructions of what to change.

nikhil

06-02-2007 09:54:37

Yes.. I'm using Dagon 1.2.2. I'll try and look-up for the instructions

nikhil

06-02-2007 09:56:06

Yes. So you use mScene->createRaycaster(..), I assume your compiling the tutorials in Dagon, if so there is a thread or two around here giving you the instructions of what to change.

And is it ok, if I change it (constructor) to public or I should make changes throughout the projects using the createRaycaster (a lot of rework) ???

P.S - I tried looking for da solution to running the tutorials under Dagon all I could find was a reference to download a nxOgre_debugnode.cpp. But theres no refernce of BetaGUI in it, so I didn't try tht out.

My error is related to BetaGUI:-
>c:\ogresdk\ogreaddons\nxogre\tutorials\nxtutorials\102.cpp(170) : error C2653: 'BetaGUI' : is not a class or namespace name

betajaen

06-02-2007 11:15:39

I made it protected, so you go through Scene which stores a copy of the pointer, and deletes it when scene is deleted.

All of the Tutorials reference the same file so if you change that raycaster line to the mScene->createRaycaster(..) which the arguments should be the same. It should effect them all. You'll also want to comment out the delete mRayCaster line in there too.

That can be solved by copying BetaGUI into the code anywhere.

nikhil

06-02-2007 11:24:34

allright.. cool.. i'm away from my PC now.. will chk it afterwards and let u know.. BTW, where r u frm.. i just want to know whts the time whn u r mostly online.. I'll change my work timings to match tht :P

betajaen

06-02-2007 11:34:22

I thought I summed it up in my location bit underneath my avatar, but "UK" stands for United Kingdom.

nikhil

07-02-2007 06:51:38

"UK" stands for United Kingdom.

LOL..

My bad, didn't notice tht..

nikhil

07-02-2007 08:25:07

I made it protected, so you go through Scene which stores a copy of the pointer, and deletes it when scene is deleted.

All of the Tutorials reference the same file so if you change that raycaster line to the mScene->createRaycaster(..) which the arguments should be the same. It should effect them all. You'll also want to comment out the delete mRayCaster line in there too.

Well I will keep that in mind when using it myself, for the tutorials I'm keeping it public.


That can be solved by copying BetaGUI into the code anywhere.


I made a .h out of the code. But do I've to go and add the line
#include BetaGUI.h
in every tutorial project or is there any other elegant way of doing it

betajaen

07-02-2007 10:13:31

Adding it into the tutorial dagon code?

nikhil

07-02-2007 10:51:37

Adding it into the tutorial dagon code?

hey.. thnks.. whn I firt setup OgreNewt (my first experience in setting up plugins), it was a nightmare with all the references to be set and wht not. I thought setting NxOgre would be eaasy now that I know how to setup plugins and additional wrappers.. bt it had its own issues.. guess u never cease to learn..

I'm still not able to build all of the tutorials.. few of the errors i'm getting are-
2>c:\ogresdk\ogreaddons\nxogre\tutorials\nxtutorials\806x.cpp(44) : fatal error C1083: Cannot open include file: 'BetaCairo.h': No such file or directory


c:\ogresdk\ogreaddons\nxogre\tutorials\nxtutorials\410.cpp(110) : error C3861: 'CreateNodeEntity': identifier not found
9>c:\ogresdk\ogreaddons\nxogre\tutorials\nxtutorials\410.cpp(162) : error C2065: 'mConstruct' : undeclared identifier


There are more.. but I've to leave for the day.. thanks for all your help.. i appreciate it..

regards

betajaen

07-02-2007 11:17:08

Look at the tutorialSampleEihort.h code, the function is there. There are a number of fixes to get the tutorials working in the main release post, check them out there too.

The other alternative is just to use Eihort. I hear sinbad is releasing RC1 soon .

nikhil

08-02-2007 04:19:08

Ok.. I just upgraded to Dagon 1.2.5 and will continue with it.. I got a missing arrow.png.. My mouse pointer in the tutorials shows up as a square block.

so I'm rebuilding everything to check if some more tutorials will work.. from tomorrow I'm gonna start the ACTUAL work using NxOgre :D