Contents
Are there any problems with screen space decals?
Screen-space/deferred decals are not the only technique suffering from this kind of problems. Any kind of technique that relies on the screen-space information reprojected to the world space and used as the UV source for the texturing will have such problems and artifacts.
What are the properties of a decal projector?
The projector is just a 3D rectangular prism with three properties: size, position, and orientation. Of these, the orientation can be the most confusing. For decal projectors, I represent the orientation as an orthogonal basis, which is a set of three vectors that are all perpendicular to each other.
What’s the best way to project decals on a computer?
The secret to projecting decals is to not think about creating a mesh that conforms to the model. Instead, think of it as starting with the model, and cutting away everything that is not in the projector box. I found that thinking of the problem like this made it easier to figure out what to do.
How are screen space decals used in deferred rendering?
The beauty of screen-space decals used together with deferred rendering is that they provide further “ defer ” of another part of the rendering pipeline – in this case of layered materials and in general – modifications to the rendered surface, both static and dynamic.
How to draw stuff with deferred screenspace?
Things like surface texture colour, depth, normal and shininess all get written into a texture called the GBuffer. Once the GBuffer is complete you follow that up with a series of passes which process the GBuffer information into a finished image.
Why are there no deferred decals on textures?
However, mip mapping is applied on textures for a reason – removing aliasing and information in frequency higher than rasterizer can even reproduce. For things like shiny, normal mapped deferred decals like blood splats the effect of having no mip maps can be quite extreme and the noise and aliasing unacceptable.