TokisanGames/Terrain3D

Orthogonal View in Editor prevents Brush position from updating

Closed this issue · 2 comments

Terrain3D version

v0.9.0

System information

Godot v4.2.1.stable - Ubuntu 22.04.3 LTS 22.04 - X11 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 2060 (nvidia; 535.154.05) - Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz (12 Threads)

Is the issue reproducable in the demo?

Not applicable

Issue description

When switching to an orthogonal view (ie, KP 7 for TopDown) in the Godot editor, the terrain brush position does not update and is instead locked into the half-position or center of view.

Workaround exists by unchecking Auto Orthogonal Enabled to keep view in Perspective mode when using view alignment. May be related to #225.

Logs

No response

Orthogonal is unsupported because of the non-collision based method used to detect where the terrain is without physics. Specifically, Godot's Camera3D.project_ray_normal() doesn't work in orthogonal mode. A new method is being worked on for #121 which might fix this.

This will fix the orthographic view (top down only). Permanent fix coming in #313.