QodotPlugin / qodot-plugin

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

Smooth normal support #70

Closed Shfty closed 4 years ago

Shfty commented 4 years ago

Use the same interface as ericw's light tool- a brush entity property named _phong that causes normals for that brush to be smoothed on import.

Shfty commented 4 years ago

I've implemented an initial pass of this in the latest commits.

It only works on a per-brush basis for now, meaning it'll exhibit artifacts on contiguous shapes made up of multiple brushes (ex. the example map arch).

These artifacts can be prevented by ignoring hidden internal faces during normal generation, but that's easier said than done. Will close for now and open a separate issue.