1
Support / Diplaced objects after a call to removeRenderTarget()
« on: February 11, 2013, 03:06:03 pm »
Hi,
I have used render to texture in jpct-ae in the following way:
I paint a plane to texture, and then I texture a different plane with this rendered texture.
It works fine but after calling fb.removeRenderTarget(); the plane painted to the framebuffer is slightly displaced from its position. If I comment the first render step the plane appears in the correct position.
Is there something that I'm missing?
I have used render to texture in jpct-ae in the following way:
Code: [Select]
fb.setRenderTarget(TextureManager.getInstance().getTextureID("texMapeo"));
fb.clear(RGBColor.WHITE);
world.renderScene(fb);
world.draw(fb);
fb.display();
fb.removeRenderTarget();
I paint a plane to texture, and then I texture a different plane with this rendered texture.
It works fine but after calling fb.removeRenderTarget(); the plane painted to the framebuffer is slightly displaced from its position. If I comment the first render step the plane appears in the correct position.
Is there something that I'm missing?