Can I program a Polygon to filter out colors behind it?

Wed Jul 15, 2020 5:05 pm

I'm making a prism visualizer (like Pink Floyd's Dark Side of the moon; visualized).

It's essentially all completed, but I need to find a way to have the portion of the 'rainbow' coming from inside the prism to be filtered black/white. The portion outside of the prism will remain colored, as they are naturally.

Basically, what I'm looking for is just a triangle 'window' that does nothing but remove color inside, not outside.

Is this possible? I hope I explained this well enough :P
KingSculpin
 
Posts: 3
Joined: Tue Apr 21, 2020 3:50 pm

Re: Can I program a Polygon to filter out colors behind it?

Wed Jul 15, 2020 10:58 pm

Do you mean something like this?

00000000.png
00000000.png (48.04 KiB) Viewed 203 times
Sadler
 
Posts: 694
Joined: Sat Aug 02, 2014 7:10 pm
Location: London, UK

Re: Can I program a Polygon to filter out colors behind it?

Thu Jul 16, 2020 12:02 am

Almost. That looks more like a white polygon with some transparency to fade the colors/black; which may actually work.

What I'm trying to achieve (if possible) is a polygon that filters into a monochrome affect.

Preferably, the blacks wont be affected/faded at all, and colors would be a shade of white/gray.
KingSculpin
 
Posts: 3
Joined: Tue Apr 21, 2020 3:50 pm

Re: Can I program a Polygon to filter out colors behind it?

Thu Jul 16, 2020 7:43 am

What I think you need is a weighted monochrome, though this doesn't come with Magic.

Try this: https://editor.isf.video/shaders/5e7a7f ... 18206dde8e

00000000.png
weighted mono - intensity 0.8
00000000.png (17.76 KiB) Viewed 195 times
Sadler
 
Posts: 694
Joined: Sat Aug 02, 2014 7:10 pm
Location: London, UK

Re: Can I program a Polygon to filter out colors behind it?

Thu Jul 16, 2020 4:03 pm

Use the HueSaturation module and set the Saturation parameter to -1. This makes the input monochrome.
Eric
Site Admin
 
Posts: 2807
Joined: Wed Apr 09, 2014 9:28 pm

Re: Can I program a Polygon to filter out colors behind it?

Thu Jul 16, 2020 5:38 pm

ezgif-1-85abbde1c411.gif
ezgif-1-85abbde1c411.gif (390.41 KiB) Viewed 186 times
Sadler
 
Posts: 694
Joined: Sat Aug 02, 2014 7:10 pm
Location: London, UK

Re: Can I program a Polygon to filter out colors behind it?

Thu Jul 16, 2020 6:18 pm

Ah yes, I suppose if all the colors are already fully saturated then you'd need that. I was thinking more like this:

Capture.PNG
Capture.PNG (424.21 KiB) Viewed 185 times
Eric
Site Admin
 
Posts: 2807
Joined: Wed Apr 09, 2014 9:28 pm

Re: Can I program a Polygon to filter out colors behind it?

Thu Jul 16, 2020 7:02 pm

Thank you guys! I love how quickly everyone chimed in to help.

I managed to find another method to do this (before seeing your comments). I'm going to play around now with your other suggestions. I think "my way" may be too resource-intensive.

https://i.imgur.com/zTEUykV.jpg

Eric, I'm really enjoying your visualizers. Thank you for sharing them! I'm having a lot of fun tweaking it :)
KingSculpin
 
Posts: 3
Joined: Tue Apr 21, 2020 3:50 pm

Return to General Discussion

© 2020 Color & Music, LLC • This web site is mobile-friendly