QodotPlugin / qodot-plugin

(LEGACY) Quake .map support for Godot 3.x
MIT License
974 stars 70 forks source link

Improved normal smoothing #71

Closed Shfty closed 4 years ago

Shfty commented 4 years ago

Currently, smooth mesh normals are generated on a per-brush basis, meaning that artifacting occurs on contiguous shapes made up of multiple brushes (such as the arch in the test map).

This can be solved by combining these brushes into a single mesh, stripping away non-visible faces, and calculating smooth normals on a per-triangle basis.

Need to think on a solution, as this is non-trivial QBSP-esque functionality.

Shfty commented 4 years ago

Not feasible for now- Qodot works in brushes, so this is better left to something else like eventual BSP support.