Doc bug: Camera Near/Far Z matters in Ortho

In Camera component manual, the docs say:

Near Z

(Perspective camera only) - The Z-value of the near clipping plane.

Far Z

(Perspective camera only) - The Z-value of the far clipping plane.

Turns out these are not only for perspective cameras. I have an ortho camera and was wondering why my game object was not showing up. The default Near Z = 0.1, whereas my GO was Z = 0, behind the frustum. Changing the Near/Far Z to [-1, 1] fixed my issue, when in fact I have an ortho camera.

Defold 1.4.3, Editor 2.0.

1 Like

Thanks for pointing this out. The manual has been updated and the change will be live soon.

1 Like