Chaos Corona Forum

General Category => Porting and API => Chaos Corona for Blender => Topic started by: monkriss on 2018-09-09, 18:07:24

Title: Tone map shader invert button doesn't work correctly
Post by: monkriss on 2018-09-09, 18:07:24
If i have a texture which is a roughness map but I need to plug it into the gloss input for Corona, I need to invert it so I use the tonemap shader.
However, the tone map shader invert button doesn't appear to work correctly and instead puts the gloss to almost 100% gloss/ignores the map altogether

If I use the colour ramp and switch the white and black input (to invert the texture) it works correctly.
(https://imgur.com/a/N87APrO)

If I use the tone map shader invert button. its wrong
(https://imgur.com/a/Z51v9I0)

If i set the gloss to 100%, it looks exactly the same as setting the tone map shader to invert.
(https://imgur.com/a/N5F82V7)

So its almost as if the invert button just completely makes it ignore the texture altogether?

Title: Re: Tone map shader invert button doesn't work correctly
Post by: monkriss on 2018-09-09, 18:08:21
Sorry the images didn't attach?


Here it is with 100% gloss
https://imgur.com/a/N5F82V7

Here it is with tone map shader (same as the one above)
https://imgur.com/a/Z51v9I0

Here it is with colourramp, which is how it should looK
https://imgur.com/a/N87APrO
Title: Re: Tone map shader invert button doesn't work correctly
Post by: blanchg on 2018-09-09, 23:03:42
Can you show me the multiply values on the tone map and the .mtl file that is generated.
Title: Re: Tone map shader invert button doesn't work correctly
Post by: monkriss on 2018-09-11, 09:09:03
Hey,

here is a file for you with a glossy map and the tone map shader set up, along with the .mtl file :)
Title: Re: Tone map shader invert button doesn't work correctly
Post by: blanchg on 2018-09-15, 23:38:19
Thanks I will look at this shortly