Author Topic: Render Effects  (Read 845 times)

2021-10-11, 04:14:00

babyblueboxers

  • Active Users
  • **
  • Posts: 5
    • View Profile
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?

2021-10-11, 19:53:09
Reply #1

Frood

  • Active Users
  • **
  • Posts: 1902
    • View Profile
    • Rakete GmbH
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. where you can include post processing like bloom & glare.


Good Luck



Never underestimate the power of a well placed level one spell.

2021-10-12, 03:45:34
Reply #2

babyblueboxers

  • Active Users
  • **
  • Posts: 5
    • View Profile
Good ideas! Points me in the right direction. Thank you!