How to avoid grass fireflies? - C4D
Park bench model by Pavel Zoch (Maxon certified instructor)
Sometimes when we think we have the correct setup we can still run into problems. And in this case, it's fireflies in the grass. A known rendering artifact that can appear when incorrect material settings or lighting conditions have been used. The physical properties between real-world lighting and 3D lighting can differ greatly. Real grass is more complex than CGI grass and suffers from anomalies that are less apparent due to camera imperfections. The highlight glossiness of a blade of grass (pictured below), is a natural occurrence caused by anisotropy, something that many 3D artists may overlook when setting up the material properties.
Grass created with Forester plugin by 3dquakers
Ways to avoid them?
There are various ways to avoid them from happening. One method would be to lower the reflection glossiness amount of the material to around 0.5 and introduce some anisotropy to emulate the micro groves of the structure of the blades. Using a detailed curved mesh rather than flat planes as blades are highly recommended.
Another method is to turn off the Corona Sun's visibility in reflections, found in the sun tag. This will eliminate all reflections in the grass from the sun and may result in a less realistic result.
Lighting will also play a huge part in determining whether your grass will have fireflies or not. Although Corona's Sun and Sky will produce a perfect summer's day, it will also produce a strong reflection and will surely contribute to the creation of fireflies. When possible, use an HDRI to light your scene. The VFB can also assist you greatly, taking advantage of post-processing effects such as Bloom and Glare in conjunction with Blur and Sharpen will also reduce the chances of fireflies.
- Reduce the reflection glossiness
- Introduce anisotropy into the materials reflection channels
- Make use of Post-processing ie: Bloom and Glare / Blur and Sharpen
- Use an HDRI instead of Corona's Sun and Sky
- The better your mesh, the better your result, make it detailed and curved (avoid flat planes as blades)
Highlight clamping in Cinema 4D can be used to clamp the brightest parts of the image and thus get rid of fireflies and noise.
Note: Highlight clamping will remove the high dynamic range from the image which may be often unwanted. For example Post-processing needs.
Decreased glossiness, introduced anisotropy and HDRI was used for this example.