jdf / peasycam

Dead-simple mouse-driven camera for Processing
http://MrFeinberg.com/peasycam/
Apache License 2.0
116 stars 35 forks source link

Incompatibility with postfx #33

Closed cgiles closed 6 years ago

cgiles commented 6 years ago

Hi, as I tried to use postfx : https://github.com/cansik/processing-postfx/ with peasycam I got this bug :

image 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 :


import ch.bildspur.postfx.builder.*;
import ch.bildspur.postfx.pass.*;
import ch.bildspur.postfx.*;

import peasy.*;
import peasy.org.apache.commons.math.*;
import peasy.org.apache.commons.math.geometry.*;

PeasyCam cam;

PostFX fx;
void setup(){
  size(400,400,P3D);
  cam=new PeasyCam(this, 800);
  fx = new PostFX(this);  
}
void draw(){
  background(100);
  pushMatrix();
translate(width/2,height/2);
rotateY(frameCount/17.0);
box(200);
    popMatrix();
 fx.render()
    .bloom(0.5, 20, 40)
    .compose();

}

regards

cgiles commented 6 years ago

I posted the issue here too : https://github.com/cansik/processing-postfx/issues/28