KeyShot Forum

Technical discussions => Rendering => Topic started by: zooropa on August 06, 2018, 08:36:44 AM

Title: Low quality on my shadows (shadow quality = 5)
Post by: zooropa on August 06, 2018, 08:36:44 AM
Hi,

I am dealing with a poor shadow quality. For first time I am trying to use the shadow "catcher" that comes in KS. Meaning not using any surface for my floor. Even cranking shadow quality to 5, still get a non blended effect.

Please find attached the image,

Thanks a lot.
Title: Re: Low quality on my shadows (shadow quality = 5)
Post by: bdesign on August 06, 2018, 08:44:51 AM
Hi zooropa-

Try increasing the Ground Size under the Environment tab, to at least half the size of the environment.

Cheers,
Eric
Title: Re: Low quality on my shadows (shadow quality = 5)
Post by: zooropa on August 06, 2018, 02:44:02 PM
I am afraid is not working. Just in case Did you mean the parameters highlighted ?

Title: Re: Low quality on my shadows (shadow quality = 5)
Post by: Will Gibbons on August 06, 2018, 04:19:59 PM
How many samples are you rendering to?
Title: Re: Low quality on my shadows (shadow quality = 5)
Post by: INNEO_MWo on August 06, 2018, 10:49:06 PM
Hello zooropa.

As far as I can see, you can try to render out an 32 bit image and convert it to 8bit via Photoshop using normalize histogram option.

And you can uncheck the glatten grounds option.

The advanced control render Moder allows shadow quality up to 10. If you think this would bring better renderings.


Hope that helps

Cheers
Marco
Title: Re: Low quality on my shadows (shadow quality = 5)
Post by: zooropa on August 06, 2018, 11:22:37 PM
Quote from: Will Gibbons on August 06, 2018, 04:19:59 PM
How many samples are you rendering to?

tried from 250 to 500
Title: Re: Low quality on my shadows (shadow quality = 5)
Post by: zooropa on August 06, 2018, 11:25:52 PM
Quote from: MWo on August 06, 2018, 10:49:06 PM
Hello zooropa.

As far as I can see, you can try to render out an 32 bit image and convert it to 8bit via Photoshop using normalize histogram option.

And you can uncheck the glatten grounds option.

The advanced control render Moder allows shadow quality up to 10. If you think this would bring better renderings.


Hope that helps

Cheers
Marco

Thanks Marco!

Its a 32 bit image.

Will try  unchecking flatten ground.

Regarding shadow quality I do not understand why 5 is not enough. Its quite a simple scene. It might be easier to use a physical ground and just mask the camera no? What do you think ?

Thanks
Title: Re: Low quality on my shadows (shadow quality = 5)
Post by: INNEO_MWo on August 07, 2018, 12:43:32 AM
Quality 5 for this scene should be enough or a bit too high?!
I have to test it.
Any chance to share this scene? Perhaps with a dummy object?!

Cheers
Marco
Title: Re: Low quality on my shadows (shadow quality = 5)
Post by: zooropa on August 07, 2018, 12:50:29 AM
Quote from: MWo on August 06, 2018, 10:49:06 PM
Hello zooropa.

As far as I can see, you can try to render out an 32 bit image and convert it to 8bit via Photoshop using normalize histogram option.

And you can uncheck the glatten grounds option.

The advanced control render Moder allows shadow quality up to 10. If you think this would bring better renderings.


Hope that helps

Cheers
Marco

Its not flatten ground :(
Title: Re: Low quality on my shadows (shadow quality = 5)
Post by: INNEO_MWo on August 07, 2018, 02:01:29 AM
Can your share:
- this scene?
- a Screenshot of the lighting or render ?
Title: Re: Low quality on my shadows (shadow quality = 5)
Post by: zooropa on August 07, 2018, 02:05:53 AM
I made a test with a surface instead of using the environment > ground shadows

I am quite surprised. Not only the quality of the shadows were significantly better (got rid of the weird stripes). The FPS doubled with a ground. My question that comes from this experience:

What would be the reason for the future of the ground shadows. I am not challenging KS at all, not criticising either. I am trying to understand if I am missing something. I notice that when I load it in PS the camera comes without the background, but shadows. Which is super nice. Isn't this also possible with rendering the layer of my group? mmm

Now the problem is "solve", but still interested in your thoughts about when to use the environment features ?

Btw I checked in online manual ...it says "keyshot 8" mmm?

Thanks 
Title: Re: Low quality on my shadows (shadow quality = 5)
Post by: zooropa on August 07, 2018, 02:06:25 AM
Quote from: MWo on August 07, 2018, 02:01:29 AM
Can your share:
- this scene?
- a Screenshot of the lighting or render ?

yes! can I send it to your email ?
Title: Re: Low quality on my shadows (shadow quality = 5)
Post by: zooropa on August 07, 2018, 03:50:03 AM
My bad, plane under my object did not solve my shadow problem....:(
Title: Re: Low quality on my shadows (shadow quality = 5)
Post by: bdesign on August 07, 2018, 09:13:20 AM
Is the gradient banding in the shadows visible before changing down from 32 bit mode? Perhaps try first switching to 16 bit mode and adding a bit of noise to the background before downing to 8 bit. Does that help with the banding? What about saving the final image out as a better format than JPEG, such as a lossless TIFF or PNG? If you attach the KSP to your post I'll take a look as well.

Cheers,
Eric
Title: Re: Low quality on my shadows (shadow quality = 5)
Post by: INNEO_MWo on August 07, 2018, 09:39:48 AM
Quote from: zooropa on August 07, 2018, 03:50:03 AM
My bad, plane under my object did not solve my shadow problem....:(

No problem.
Just

mwodarz@inneo.com
(Currently you'll receive an "out of office reply")
Title: Re: Low quality on my shadows (shadow quality = 5)
Post by: mattjgerard on August 07, 2018, 12:34:57 PM
Quote from: bdesign on August 07, 2018, 09:13:20 AM
Is the gradient banding in the shadows visible before changing down from 32 bit mode? Perhaps try first switching to 16 bit mode and adding a bit of noise to the background before downing to 8 bit. Does that help with the banding? What about saving the final image out as a better format than JPEG, such as a lossless TIFF or PNG? If you attach the KSP to your post I'll take a look as well.

Cheers,
Eric

This is hugely common in the world I came from, the video motion graphics animation world. For a long time these slight gradients were the rage for animation backgrounds which was hell for encoding anything worth posting on the web. There was a balance of the percentage difference between the light/dark of the gradient vs the pixel distance the gradient was applied over. If the ratio was too low (80% grey to 90% grey over 1080 pixels for example) you would get banding with certain compression schemes, depending on how far you had to go with the bit rate.

So, in the still world, this translates to image compression (jpeg vs PNG vs uncompressed like TIFF or photoshop) You can certainly render out 32 bit images, but if you have a less than stellar display, the conversion to 8 bit on the way to the monitor and the monitors gamut will make that banding appear when it really isn't in the image data. Then, if you save it out as a compressed jpeg or something else, that compression will further degrade the gradients and worsen the banding.

Solutions to this in my experience is as follows-

1) What Eric mentioned, add some noise to the gradient. You are tricking the encoder to give that area more bandwidth by making the gradient imperceptibly uneven. Encoders look for similar pixels, then link them and treat them the same (oversimplified, but the idea works) Only once the pixels go beyond the threshold of being "different" from their neighbors will the encoded unlink them and give them their own data. By adding noise, you are making each pixel just different enough to trick the encoder to treat them individually.

2) Increase the contrast of the light vs dark areas of the gradient. since the shadow of your image is very close in tone to the ground it is falling on, the encoder creating the banding as a way of saving data. This can happen in supposedly uncompressed image formats too if the differences are small enough.

If you can try to look at your image on a high end monitor that will process those slight gradients well, that might give you some insight as to if the problem is your monitoring, or if its in the file itself. You can use some of the measurement tools in photoshop too in order to sample pixels across the gradient to see if they are changing smoothly or in obvious steps. I don't know what the final destination of your images are, but I know in my world, I had to focus a lot of my troubleshooting on what would work for the final delivery, be it DVD (green gradients suck) youtube (everything sucks) Vimeo (re-encoded everything no matter what) or streaming.
Title: Re: Low quality on my shadows (shadow quality = 5)
Post by: zooropa on August 08, 2018, 02:01:40 AM
Thanks so much for your detailed explanation. I think the point two that you are indicating might be the problem (the one pointing the similarities between the color of my shadow and the color of my background).

Regarding the gradient you name a few times I imagine you mean the "gradient" that the lights does in itself while projecting? I did not apply any gradient.

My renders are just for my personal web : ) thanks a lot for that much insights.
Title: Re: Low quality on my shadows (shadow quality = 5)
Post by: zooropa on August 08, 2018, 02:02:09 AM
Quote from: MWo on August 07, 2018, 09:39:48 AM
Quote from: zooropa on August 07, 2018, 03:50:03 AM
My bad, plane under my object did not solve my shadow problem....:(

No problem.
Just

mwodarz@inneo.com
(Currently you'll receive an "out of office reply")



Sent it! Thanks : )
Title: Re: Low quality on my shadows (shadow quality = 5)
Post by: mattjgerard on August 08, 2018, 06:39:29 AM
Quote from: zooropa on August 08, 2018, 02:01:40 AM
Thanks so much for your detailed explanation. I think the point two that you are indicating might be the problem (the one pointing the similarities between the color of my shadow and the color of my background).

Regarding the gradient you name a few times I imagine you mean the "gradient" that the lights does in itself while projecting? I did not apply any gradient.

My renders are just for my personal web : ) thanks a lot for that much insights.

Yes, the gradient that is caused by the lighting, not any gradient that you have applied, correct.
Title: Re: Low quality on my shadows (shadow quality = 5)
Post by: zooropa on August 09, 2018, 04:15:23 AM
Quote from: mattjgerard on August 08, 2018, 06:39:29 AM
Quote from: zooropa on August 08, 2018, 02:01:40 AM
Thanks so much for your detailed explanation. I think the point two that you are indicating might be the problem (the one pointing the similarities between the color of my shadow and the color of my background).

Regarding the gradient you name a few times I imagine you mean the "gradient" that the lights does in itself while projecting? I did not apply any gradient.

My renders are just for my personal web : ) thanks a lot for that much insights.

Yes, the gradient that is caused by the lighting, not any gradient that you have applied, correct.

I am making a test now with a lighter background...I think the biggest outcome, personally, from this topic its your insights about the ratio between the shadow/background levels. Really appreciate this !