Skip to main content

History: -Camera

Source of version: 5

Copy to clipboard
            {INCLUDE(page="ogrelex ext tpl")/}
---
__Camera__ - A viewpoint from which the scene will be rendered.

OGRE renders scenes from a camera viewpoint into a buffer of some sort, normally a window or a {LEX()}texture{LEX} (a subclass of {LEX()}RenderTarget{LEX}. OGRE cameras support both perspective projection (the default, meaning objects get smaller the further away they are) and orthographic projection (blueprint-style, no decrease in size with distance). Each camera carries with it a style of rendering, e.g. full textured, flat shaded, wireframe), field of view, rendering distances etc., allowing you to use OGRE to create complex multi-window views if required. In addition, more than one camera can point at a single render target if required, each rendering to a subset of the target, allowing split screen and picture-in-picture views.

Cameras maintain their own aspect ratios, field of view, and {LEX()}frustum{LEX}, and project coordinates into a space measured from -1 to 1 in X and Y, and 0 to 1 in Z. At render time, the camera will be rendering to a viewport which will translate these parametric coordinates into real screen coordinates. Obviously it is advisable that the viewport has the same aspect ratio as the camera to avoid distortion (unless you want it!).

Note that a Camera can be attached to a {LEX()}SceneNode{LEX}, using the method ''SceneNode::attachObject()''. If this is done the Camera will combine its own position/orientation settings with its parent SceneNode. This is useful for implementing more complex Camera / object relationships i.e. having a camera attached to a world object.

!!See also
* [http://www.ogre3d.org/docs/api/html/classOgre_1_1Camera.html|Ogre::Camera Class Reference]

---
{INCLUDE(page="ogrelex ext tpl")/}
---

        

History

Information Version
Wed 17 of Jun, 2020 22:24 GMT-0000 sercero 7
Thu 22 of Jul, 2010 19:16 GMT-0000 spacegaier 6
Thu 22 of Jul, 2010 19:15 GMT-0000 spacegaier 5
Wed 14 of Jul, 2010 00:00 GMT-0000 sarcacid 4
Thu 07 of Jan, 2010 23:41 GMT-0000 jacmoe 3
Tue 29 of Dec, 2009 09:26 GMT-0000 jacmoe 2
Sat 28 of Nov, 2009 17:28 GMT-0000 Spacegaier added "See also" section 1