Missing camera methods.

Brad

28-08-2006 07:22:17

The camera's setOrientation and getOrientation methods seem to be missing.

['FOVy', 'INFINITE_FAR_PLANE_ADJUST', 'ProjectionMatrixRS', '__class__', '__del__', '__delattr__', '__dict__', '__doc__', '__getattribute__', '__hash__', '__init__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__str__', '__swig_destroy__', '__weakref__', '_getManager', '_notifyCreator', '_notifyManager', 'addQueryFlags', 'addVisibilityFlags', 'aspectRatio', 'attached', 'autoAspectRatio', 'autoTrackOffset', 'autoTrackTarget', 'boundingBox', 'boundingRadius', 'castShadows', 'castsShadows', 'createAnimableValue', 'cullingFrustum', 'derivedDirection', 'derivedOrientation', 'derivedPosition', 'derivedRight', 'derivedUp', 'direction', 'disableCustomNearClipPlane', 'disableReflection', 'enableCustomNearClipPlane', 'enableReflection', 'farClipDistance', 'getAnimableValueNames', 'getCameraToViewportRay', 'getCustomParameter', 'getDefaultQueryFlags', 'getDefaultVisibilityFlags', 'getFocalLength', 'getFrustumOffset', 'getFrustumPlane', 'getFrustumPlanes', 'getRenderingDistance', 'getSquaredViewDepth', 'getTypeFlags', 'getVisibilityFlags', 'getWorldSpaceCorners', 'inScene', 'isCustomNearClipPlaneEnabled', 'isCustomProjectionMatrixEnabled', 'isCustomViewMatrixEnabled', 'isWindowSet', 'lodBias', 'lookAt', 'material', 'movableType', 'move', 'moveRelative', 'name', 'nearClipDistance', 'normaliseNormals', 'numWorldTransforms', 'orientation', 'parentNode', 'parentSceneNode', 'pitch', 'polygonMode', 'polygonModeOverrideable', 'position', 'projectSphere', 'projectionMatrix', 'projectionMatrixWithRSDepth', 'projectionType', 'queryFlags', 'realDirection', 'realOrientation', 'realPosition', 'realRight', 'realUp', 'reflected', 'reflectionMatrix', 'reflectionPlane', 'removeQueryFlags', 'removeVisibilityFlags', 'renderQueueGroup', 'resetWindow', 'right', 'roll', 'rotate', 'sceneManager', 'setAutoTracking', 'setCustomParameter', 'setCustomProjectionMatrix', 'setCustomViewMatrix', 'setDefaultQueryFlags', 'setDefaultVisibilityFlags', 'setFixedYawAxis', 'setFocalLength', 'setFrustumOffset', 'setProjectionType', 'setRenderingDistance', 'setVisibilityFlags', 'setWindow', 'technique', 'this', 'thisown', 'up', 'useIdentityProjection', 'useIdentityView', 'useRenderingDistance', 'viewMatrix', 'viewport', 'visible', 'worldBoundingBox', 'worldBoundingSphere', 'worldOrientation', 'worldPosition', 'worldSpaceCorners', 'yaw']

Followup. sceneNodes and cameraNodes alike can use a non-Ogre API property called "orientation" for both getting and setting. No function call is needed as you can work off the property directly.

I assume it's a modified version of the protected property mOrientation from both types.

futnuh

22-09-2006 07:03:43

I believe this got solved in CVS. Can someone confirm?

dermont

24-09-2006 13:51:17

The setOrientation and getOrientation functions are wrapped as orientation, refer to OgreCamera.i


%ogre_attribute(Camera, const Ogre::Quaternion &, orientation,
getOrientation, setOrientation)



futnuh wrote:

I believe this got solved in CVS. Can someone confirm?


From memory this is the way it's always been. I've just tested this with Ogre1.2.3 and pydev1.2 with the following which appears to work correctly.

orient = ogre.Quaternion(ogre.Degree(-15.0).valueRadians(), ogre.Vector3.UNIT_Y)
self.camera.orientation = orient

Is there something not working correctly?