Chaos Corona Forum

Official Stuff => News => Topic started by: Ondra on 2013-01-22, 21:43:46

Title: Added support for normalbump, Hair&Fur
Post by: Ondra on 2013-01-22, 21:43:46
Available in the daily builds.
Hair&Fur is pretty rudimentary though, it works only in the geometry mode.
Title: Re: Added support for normalbump, Hair&Fur
Post by: Chakib on 2013-01-22, 21:59:29
Awesome !!!

is this available for legacy too ? :D
Title: Re: Added support for normalbump, Hair&Fur
Post by: Ondra on 2013-01-22, 22:25:20
no, I'll make it when I have some time.
Title: Re: Added support for normalbump, Hair&Fur
Post by: Chakib on 2013-01-22, 22:59:08
no, I'll make it when I have some time.

ok waiting for it...
Title: Re: Added support for normalbump, Hair&Fur
Post by: racoonart on 2013-01-23, 11:37:01
mmhhh... looks like normal bump is just working in local/world space modes. Nothing happens if set to tangent... or did i miss something?
Title: Re: Added support for normalbump, Hair&Fur
Post by: lacilaci on 2013-01-23, 12:18:23
Great news :)!
Title: Re: Added support for normalbump, Hair&Fur
Post by: Ludvik Koutny on 2013-01-23, 13:14:58
mmhhh... looks like normal bump is just working in local/world space modes. Nothing happens if set to tangent... or did i miss something?

For me, tangent mode works, but produces very odd results...
Title: Re: Added support for normalbump, Hair&Fur
Post by: racoonart on 2013-01-23, 13:17:50
Tangent "works" if i crank up the values to max but even then there are only some kind of outlines visible
Title: Re: Added support for normalbump, Hair&Fur
Post by: maru on 2013-01-23, 19:52:07
Haven't tried it with Corona as I don't have access to newer builds but normal bumps sometimes have problems with gamma when loading them. If it's the case, setting bitmap's gamma to 1.0 when loading it could help.
Title: Re: Added support for normalbump, Hair&Fur
Post by: racoonart on 2013-01-23, 21:01:48
yes, normal maps should always(!) be loaded with 1.0. Same for displacement maps, reflection etc - Everything non-directly-visible (which means: maps that are used for controlling specific effects)) ;)
But tangent is definitely broken here.
Title: Re: Added support for normalbump, Hair&Fur
Post by: jrcenator on 2013-01-29, 13:55:28
yes, normal maps should always(!) be loaded with 1.0. Same for displacement maps, reflection etc - Everything non-directly-visible (which means: maps that are used for controlling specific effects)) ;)
But tangent is definitely broken here.

could you please tell me how to do that? :)
Title: Re: Added support for normalbump, Hair&Fur
Post by: racoonart on 2013-01-29, 14:41:46
could you please tell me how to do that? :)

That's pretty easy to do.
First you need to have gamma workflow setup correctly ("Rendering" -> "Gamma/Lut Setup".
I keep it this way:
(http://forum.corona-renderer.com/index.php?action=dlattach;topic=360.0;attach=1461;image)

input and output to 2.2 (whereas output is more a personal decision, I have it setup to 2.2 for scripting reasons, normally - in an exr workflow - I'd tend to use 1.0)

After that the important step is documented here... If you load a bitmap texture you have to check "override" and set it to 1.0, this means the map will be loaded with gamma 1.0 (which will obviously look too bright in your editor but that's ok)
(http://forum.corona-renderer.com/index.php?action=dlattach;topic=360.0;attach=1463;image)

Title: Re: Added support for normalbump, Hair&Fur
Post by: jrcenator on 2013-01-29, 15:36:45
could you please tell me how to do that? :)

That's pretty easy to do.
First you need to have gamma workflow setup correctly ("Rendering" -> "Gamma/Lut Setup".
I keep it this way:


input and output to 2.2 (whereas output is more a personal decision, I have it setup to 2.2 for scripting reasons, normally - in an exr workflow - I'd tend to use 1.0)

After that the important step is documented here... If you load a bitmap texture you have to check "override" and set it to 1.0, this means the map will be loaded with gamma 1.0 (which will obviously look too bright in your editor but that's ok)

Thanks a lot, this really helped me out :)
Title: Re: Added support for normalbump, Hair&Fur
Post by: Polymax on 2013-03-01, 09:19:15
NormalMap is not working! Or working not correctly(dayli update from 01/03/2013)
Title: Re: Added support for normalbump, Hair&Fur
Post by: Ludvik Koutny on 2013-03-01, 09:41:32
NormalMap is not working! Or working not correctly(dayli update from 01/03/2013)

This is a great example. Very simple scene with reproduced bug.... This will help a lot to fix this problem.
Title: Re: Added support for normalbump, Hair&Fur
Post by: lacilaci on 2013-03-01, 10:46:27
Try object space normal map.
Title: Re: Added support for normalbump, Hair&Fur
Post by: Paul Jones on 2013-03-01, 11:07:36
also some shading artefacts on the faces of the RH sphere, maybe a smoothing issue?
Title: Re: Added support for normalbump, Hair&Fur
Post by: lacilaci on 2013-03-01, 11:12:35
The shading artifacts are the "terminator effect" it's just from a low subdivisions of the sphere. The problem is tangent map used for normal mapping. I haven't had problems using object space normal maps, so until it's fixed I guess you could bake your normals in object space if you need normal mapping.
Title: Re: Added support for normalbump, Hair&Fur
Post by: Polymax on 2013-03-01, 11:54:46
The shading artifacts are the "terminator effect" it's just from a low subdivisions of the sphere. The problem is tangent map used for normal mapping. I haven't had problems using object space normal maps, so until it's fixed I guess you could bake your normals in object space if you need normal mapping.
Here is local XYZ, but also not good(
Title: Re: Added support for normalbump, Hair&Fur
Post by: lacilaci on 2013-03-02, 20:40:41
Alright, so I've looked at the scene you provided...

First of all, you do not override gamma settings on normal and displacement maps. You should always set it to "use image default gamma" to use the gamma settings they were created with and since you used 8bit jpeg with 2.2 even "system default" would work.

Another thing is that to get tangent normal somehow look alive with corona you have to use higher bump values(i used 10 in this image)
However some shading issue appears to cause that noise on the sphere with normal map and it doesn't go away... I tried playing with max shading normal difference but that makes the whole normal mapping fade away.
Title: Re: Added support for normalbump, Hair&Fur
Post by: Polymax on 2013-03-03, 09:44:17
In this case, the bump is much more correct fit.