Cameras
Cameras are essential components in Foxel that define how scenes are viewed and rendered, determining the perspective from which users experience the virtual environment. Foxel supports two types of cameras: Orbit Camera and First Person Camera.
Shared Properties
Both camera types share the following properties:
- Resolution: Defines the output resolution of the camera, affecting the clarity and detail of the rendered image.
- Projection: Specifies the type of projection used by the camera, such as perspective or orthographic.
- Roll: Adjusts the camera's rotation around its forward axis, allowing for tilted views.
- Near: Sets the near clipping plane, determining the closest distance at which objects are rendered.
- Far: Sets the far clipping plane, determining the maximum distance at which objects are rendered.
- Field of View: Defines the extent of the observable world seen through the camera, measured in degrees.
Additionally, both camera types include render settings grouped under Render Effects and Environmental Settings, which enhance the visual quality and overall atmosphere of the scene. These effects include options such as Bloom, Ambient Occlusion, Vignette, Depth of Field, Sun, Sky, and others.
Most render settings can be animated, allowing for dynamic visual effects that enhance the user experience.
For more information on render settings, refer to the Render Effects Reference and Environmental Settings Reference sections of this manual.
Orbit Camera
The Orbit Camera enables users to rotate around a specified target point, providing a dynamic view of the scene. This camera type is ideal for exploring environments from various angles and is particularly useful for showcasing 3D models or scenes.
Additional Properties
- Target: Specifies the point in space that the camera orbits around, allowing users to focus on specific areas of the scene.
First Person Camera
The First Person Camera offers a viewpoint from the user's perspective, simulating a first-person experience. This camera type is ideal for immersive gameplay or applications where user interaction is key.
Additional Properties
- Yaw: Controls the horizontal rotation of the camera, allowing users to look left and right.
- Pitch: Controls the vertical rotation of the camera, allowing users to look up and down.