MarginallyClever / Robot-Overlord-App

Simulation and control software for robots
https://www.marginallyclever.com/
GNU General Public License v2.0
157 stars 48 forks source link

outline shapes with GLSL #138

Closed i-make-robots closed 1 year ago

i-make-robots commented 1 year ago

Is your feature request related to a problem? Please describe. The current programmable shader uses https://alexanderameye.github.io/notes/rendering-outlines/#vertex-extrusion method 2, "Normal vector". In the process it uses the stencil buffer to erase everything inside the shape, creating the halo effect.

It would be better to use the jump fill a

Describe the solution you'd like https://www.reddit.com/r/opengl/comments/11mb9lm/screenspace_outline_using_stencilbuffer/

Describe alternatives you've considered leave it as is.

Additional context Priority: low. Difficulty: high.

i-make-robots commented 1 year ago

image Current selected view shown here. note gaps between offset fragments.

i-make-robots commented 1 year ago

See also https://open.gl/depthstencils and https://alexanderameye.github.io/notes/rendering-outlines/ and https://github.com/kiwipxl/GLSL-shaders/blob/master/outline.glsl

i-make-robots commented 1 year ago

2023-05-27-01

i-make-robots commented 1 year ago

completed in #168