What am I doing worng?


28-09-2006 06:30:33

Hi, I'm totally newbie with pyogre, so I started checking out the tutorials from the wiki.
But there's something I can't make it work, and i was only at the second tutorial :oops: (http://www.ogre3d.org/wiki/index.php/PyOgre_Beginner_Tutorial_2)

Ok, the thing is that when I execute the program it goes right until it says...
NotImplementedError: No matching function for overloaded 'Light_setSpotlightRange'
At line 37 I've got this:
light.setSpotlightRange(ogre.Degree(35), ogre.Degree(50))
I did the tutorial step by step. So... what's the problem?

Thank you!


28-09-2006 10:50:00

If you are using the pyogre 1.2 build, you may need to fix the degrees to radians, I think it something like this...

light.setSpotlightRange(ogre.Degree(35).valueRadians(), ogre.Degree(50).valueRadians())

if not then I'm not sure what it could be. try doing a dir(ogre.Light) in the python shell (after 'import pyogre.ogre as ogre') to check whether your keywords are correct.


29-09-2006 01:27:33

Great! that fixed it

I'll come back with more problems :oops: