Closed cgiles closed 6 years ago
I posted the issue here too : https://github.com/jdf/peasycam/issues/33
I have to tell you that this behaviour is not directly an issue. The PostFX library uses 2d textures to apply shaders, so compose()
is drawing the output texture onto the screen. If you are using peasycam, which changes the view matrix, then you have to reset the matrix before drawing the effect texture.
With peasycam you can use beginHUD()
and endHUD()
to reset the view matrix:
cam.beginHUD();
fx.render()
.bloom(0.5, 20, 40)
.compose();
cam.endHUD();
I have added your example to the examples: PeasyCamExample.pde
Great, thanks, it works 👍
Hi, as I tried to use postfx with peasycam : http://mrfeinberg.com/peasycam/ , I got this bug : As you can see, the original is displayed in the background, and the post fx render appears in the front, scaled down.
I tried to move the focus point of my peasycam object, but it doesn't fix the issue :/
a sketch which reproduce this bug :
regards