I want to add some post processing effects like bloom etc to my rendering. For this, I need to first render my scene to a texture, apply the effects and then render it to a quad that is directy in front of the camera.
This is already basically working fine, but I ran into a problem I cant solve. Here is a screenshot to show my problem:
The first image is rendere well. But on the second image you can see some black lines on the walls. That is, because my walls consists of several pieces. When I move the camera back, these lines even get bigger. I dont want these artifacts.
The first image shows my scene rendered by a simple call to the scene managers DrawAll() method:
Code: Select all
this.driver.SetRenderTarget(null, true, true, this.clearColor);
this.SceneManager.DrawAll();
Code: Select all
this.driver.SetRenderTarget(myTexture, true, true, this.clearColor);
this.SceneManager.DrawAll();
this.driver.SetRenderTarget(null, true, true, new Color(0x0));
this.screenQuad.Material.SetTexture(0, myTexture);
this.screenQuad.Render(this.driver);
//EDIT: updated a better fitting image