Chaos Corona Forum

General Category => Porting and API => Chaos Corona for Blender => Topic started by: Asticles on 2017-04-29, 11:17:06

Title: Shadow catcher projection
Post by: Asticles on 2017-04-29, 11:17:06
Hi all,

Maybe I'm wrong, but cannot make the shadow catcher matches the HDR environment projection. Maybe I'm doing something wrong?

Could be a bug?

Regards

Title: Re: Shadow catcher projection
Post by: blanchg on 2017-04-29, 11:47:36
What might be the case is that I am adding 180 degrees of rotation to the HDR to match the setting in 3ds.  Maybe this isn't added to the shadow catcher?  Can you provide the .blend I don't really know how to use the shadow catcher correctly.
Title: Re: Shadow catcher projection
Post by: Asticles on 2017-04-29, 11:58:14
Yes, hdr is from openfootage.

Edit: File corrected with blanchg solution.
Title: Re: Shadow catcher projection
Post by: blanchg on 2017-04-29, 12:14:39
In the shadow catcher UVMap set the x scale to -1 and leave the environment rotate at 0.
Title: Re: Shadow catcher projection
Post by: Asticles on 2017-04-29, 12:51:49
Yes! this did the trick, I suppose it is something to be fixed?

Thanks
Title: Re: Shadow catcher projection
Post by: blanchg on 2017-04-29, 12:54:13
No it is -1 to match 3ds and I can't make that the default in the uvmap because that would break it in other ways.

Not sure how to fix it. Maybe a default uvmap on the shadow catcher shader...
Title: Re: Shadow catcher projection
Post by: Asticles on 2017-04-29, 13:00:56
Only for Environment projection. In case backplates get mirrored.
Title: Re: Shadow catcher projection
Post by: blanchg on 2017-04-29, 13:07:43
I could create a new Shadow Capture Texture node that has this default.

It is quite difficult to detect this is part of a shadow texture input.
Title: Re: Shadow catcher projection
Post by: Asticles on 2017-04-29, 13:13:19
Don't know which is the best way, of course. As you wish, but I think it's better not to have similar nodes for specific functions. Can this be done within Corona Shadowcatcher node?

Also, as a feature request, It could be great that you can set an image background that does not contribute to Environment, so you can preview and match the shadow catcher without compositing. Maybe on camera settings or on Corona Render settings, where transparent background is selected. Is this possible?.
Another good place could be in Corona Shadowcatcher node, switching something like: Use input for background.
Title: Re: Shadow catcher projection
Post by: blanchg on 2017-04-29, 13:35:22
Sorry no can do with the feature request, you will need to request that Corona support that.  Using the compositor is likely the only way you can do this.
Title: Re: Shadow catcher projection
Post by: Asticles on 2017-04-29, 13:38:22
Okkk Thanks :)