Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add camera system & component #14

Closed
bkloster opened this issue May 13, 2013 · 0 comments
Closed

Add camera system & component #14

bkloster opened this issue May 13, 2013 · 0 comments
Assignees

Comments

@bkloster
Copy link
Contributor

Currently, the camera is hard-coded in OgreEngine::Implementation::setupCamera. To make the camera properties scriptable, a CameraComponent should be created to enable entities to become cameras. The CameraComponent should have at least the following properties:

Ogre::Real nearClipDistance;
Ogre::Real farClipDistance;
Ogre::ProjectionType projectionType;
Ogre::Radian fovY;
Ogre::Real focalLength;
Ogre::Real aspectRatio;

The accompanying CameraSystem should create an Ogre::Camera if necessary and apply the above settings, together with position and orientation from a TransformComponent.

This was referenced May 13, 2013
@ghost ghost assigned bkloster May 17, 2013
bkloster added a commit that referenced this issue May 17, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant