AnyPortrait > Manual > Billboard and Perspective Camera

Billboard and Perspective Camera


1.1.0



AnyPortrait is basically an editor for 2D games.
However, it is also supported for various game methods such as introducing 2D character in 3D background.
This page describes how to render characters created with AnyPortrait in the Perspective camera used in 3D games and how to set up a billboard for them.
You may also want to check out the "Pirate Game 3D" demo using this feature.


Perspective camera: A camera with perspective. The opposite is the Orthographic method.
Billboard: A rendering method that always looks in front of the camera, mostly used in effects.




(1) Open the Bake dialog.
(2) Change the Billboard setting in the Setting tab.
- None : Do not use the billboard. Perspective camera is not supported.
- Billboard : Rendered as a billboard.
- Billboard with fixed Up Vector : It is rendered as a billboard and maintains the Up (+ Y) direction of the world coordinate system.


There is no option for Perspective camera.
If the Billboard setting is not None, the Perspective camera is automatically supported, recognizing the way the camera is rendered.
(Orthographic cameras are supported regardless of the billboard option.)


Note
If you use the Billboard method, the camera's "Camera.transparencySortMode" property will be changed to "TransparencySortMode.Orthographic".




When the billboard setting is turned on, when the game is launched, it will automatically search for "camera to render" and keep looking in that direction.
After recognizing whether the camera is Orthographic or Perspective, the shape is corrected to fit the camera.




Billboard setting: None
It does not look at the camera, it does not render properly in order.




Billboard setting: Billboard
It always looks at the camera.
Even if the camera has a perspective, it will render normally.
When the camera is tilted, it always renders straight.




Billboard setup: Billboard with fixed Up Vector
It always looks at the camera.
Even if the camera has a perspective, it will render normally.
Unlike the Billboard method, the Y direction of the world coordinate system is fixed, so the camera is skewed as much as it is tilted and rendered.