phandasm / waveform

Audio spectral analysis plugin for OBS
https://obsproject.com/forum/resources/waveform.1423/
GNU General Public License v3.0
525 stars 37 forks source link

Line thickness? #19

Open xtex404 opened 2 years ago

xtex404 commented 2 years ago

Is there a way to make the Line render thicker than 1px in the Curve Display Mode -- or am I completely missing the setting somewhere?

I tried using a filter (SDF Effects) to add an outline, and it works, but the SDF filter has a tough time keeping up and I end up seeing two lines... which admittedly kind of a cool look, but it's not what I'm wanting for this particular scene. example video

Consider this a feature request if the setting doesn't exist. ;)

Great plugin, btw. Thank you for your time and effort on it!

xtex404 commented 2 years ago

accidentally found a semi-workaround... make the Waveform output properties around 1/4 the size I want, then drag/expand the waveform in the scene to 250% ... and then set scale filtering on the object to Lanczos. OBS makes the line much thicker.. this pretty much gets what I'm looking for.. but an actual adjustable line thickness would be better? :)

phandasm commented 2 years ago

Unfortunately setting the width of lines greater than 1 px is unreliable for multiple reasons (differences between opengl/d3d/etc), afaik the option is not even exposed by OBS's API.

This could potentially be solved with some shader magic, otherwise the rendering would have to be expanded into rectangles CPU-side. The other workaround is, as you discovered, to just upscale it.

xtex404 commented 2 years ago

Makes sense. Thanks for the response. :)