digimikeh
19-02-2009 01:27:46
Someone noticed the following error?
** Warning: Unable to locate a suitable plugins.cfg file.
** Warning: Please check your ogre installation and copy a
** Warning: working plugins.cfg file to the current directory.
Doing a tutorial I got that error... here is the code.. is a bit large...
** Warning: Unable to locate a suitable plugins.cfg file.
** Warning: Please check your ogre installation and copy a
** Warning: working plugins.cfg file to the current directory.
Doing a tutorial I got that error... here is the code.. is a bit large...
import ogre.renderer.OGRE as ogre
import SampleFramework as sf
class TutorialApplication(sf.Application):
def _createScene(self):
sceneManager = self.sceneManager
sceneManager.ambientLight = (1, 1, 1)
ent1 = sceneManager.createEntity("Robot", "robot.mesh")
node1 = sceneManager.rootSceneNode.createChildSceneNode("RobotNode")
node1.attachObject(ent1)
##node1.yaw(ogre.Degree(-90))
node1.yaw(ogre.Degree(-90).valueRadians())
ent2 = sceneManager.createEntity("Robot2", "robot.mesh")
node2 = sceneManager.rootSceneNode.createChildSceneNode("RobotNode2", ogre.Vector3(50, 0, 0))
node2.attachObject(ent2)
##node2.pitch(ogre.Degree(-90))
node2.pitch(ogre.Degree(-90).valueRadians())
ent3 = sceneManager.createEntity("Robot3", "robot.mesh")
node3 = sceneManager.rootSceneNode.createChildSceneNode("RobotNode3", ogre.Vector3(100, 0, 0))
node3.attachObject(ent3)
##node3.roll(ogre.Degree(-90))
node3.roll(ogre.Degree(-90).valueRadians())
if __name__ == '__main__':
ta = TutorialApplication()
ta.go()