silentpolygon
08-09-2008 18:31:13
Hello everybody
right now I'm trying to set up a working Third Person camera system in Python ogre. I found not much to help me in the Python-Ogre wiki so i searched in the Ogre3D wiki and found that.
http://www.ogre3d.org/wiki/index.php/3r ... m_tutorial
Its quite good explained and i brought the player(the node and entity) into my scene but now he writes a ExtendedCamera class. I´m not too good in C++ so its quite confusing where he creates the camera actually.
For Info
I translated the Player Class( Character Class in the Example) to that
any help would be great.
Espacially from people who are much better in C++ than me, which is not hard to be
(
Thanks in Advance
right now I'm trying to set up a working Third Person camera system in Python ogre. I found not much to help me in the Python-Ogre wiki so i searched in the Ogre3D wiki and found that.
http://www.ogre3d.org/wiki/index.php/3r ... m_tutorial
Its quite good explained and i brought the player(the node and entity) into my scene but now he writes a ExtendedCamera class. I´m not too good in C++ so its quite confusing where he creates the camera actually.
For Info
I translated the Player Class( Character Class in the Example) to that
import ogre.renderer.OGRE as ogre
class Player():
def __init__(self, name, sceneManager):
self.name = name
self.sceneManager = sceneManager
# Setup Node Structure
self.RootNode = self.sceneManager.getRootSceneNode()
self.PlayerNode = self.RootNode.createChildSceneNode(self.name + '_sight', ogre.Vector3(0,0,100))
self.PlayerSightNode = self.PlayerNode.createChildSceneNode(self.name + '_camera', ogre.Vector3(0,50,-100))
# Apply Mesh to Player
self.PlayerEntity = self.sceneManager.createEntity(self.name, 'OgreHead.mesh')
self.PlayerNode.attachObject(self.PlayerEntity)
def __del__(self, name, sceneManager):
self.PlayerNode.detachAllObjects()
self.PlayerNode.removeAndDestroyAllChildren()
self.sceneManager.destroySceneNode(self.name)
any help would be great.
Espacially from people who are much better in C++ than me, which is not hard to be

Thanks in Advance