Author Topic: Gaussian Blur |Post Processing Bloom| MultiPass Rendering in jpct ae  (Read 8170 times)

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Gaussian Blur |Post Processing Bloom| MultiPass Rendering in jpct ae
« Reply #30 on: May 12, 2017, 08:17:47 am »
Cool!

Offline AeroShark333

  • float
  • ****
  • Posts: 319
    • View Profile
Re: Gaussian Blur |Post Processing Bloom| MultiPass Rendering in jpct ae
« Reply #31 on: June 19, 2017, 01:22:30 am »
I was just wondering about this multipass rendering thing...
Is it not possible to use one single rendertarget for multipass rendering? (so with every pass the rendertarget is used for blitting)
I wonder why in this thread at least 2 rendertarget textures were needed.

In this thread:
Render world into rendertarget1.
Blit rendertarget1 into rendertarget2 (with blit shader 1)
Blit rendertarget2 into the normal framebuffer (with blit shader 2)

But why not just this?:
Render world into rendertarget1.
Blit rendertarget1 into rendertarget1 (with blit shader 1)
Blit rendertarget1 into the normal framebuffer (with blit shader 2)

I kind of tried the second method but it didn't really work...
Though I wonder why it didn't work

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Gaussian Blur |Post Processing Bloom| MultiPass Rendering in jpct ae
« Reply #32 on: June 19, 2017, 07:57:10 am »
You can't use the an input buffer as an output buffer at the same time.