Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: babyblueboxers on 2021-10-11, 04:14:00

Title: Render Effects
Post by: babyblueboxers on 2021-10-11, 04:14:00
Ages ago I wrote a Render Effect with MaxScript that replaced any pixel's alpha channel to 0 if it's beneath a certain threshold. To do this, it would go through and analyze the pixels in the frame buffer. Very simple and saved me a ton of post-processing time for some old-school sprite work.

It still works, but Corona uses it's own VFB. How can I get my maxscript to affect the Corona VFB? Is it even possible?
Title: Re: Render Effects
Post by: Frood on 2021-10-11, 19:53:09
Not as RenderEffect afaik - "on apply" is just not called for whatever reason. We had a thread about this years ago. Personally I switched to hook into the postrender event with a shared (centralised) startup script and do my stuff there by either calling getlastrenderedimage() or pulling (in case Corona is active) Corona VFB output by CoronaRenderer.CoronaFP.getCFBContent. (https://wiki.corona-renderer.com/maxscript) where you can include post processing like bloom & glare.


Good Luck



Title: Re: Render Effects
Post by: babyblueboxers on 2021-10-12, 03:45:34
Good ideas! Points me in the right direction. Thank you!