Author Topic: How to use displacement and gloss image from POLIIGON  (Read 15658 times)

0 Members and 1 Guest are viewing this topic.

Offline bdesign

  • Hero Member
  • *****
  • Posts: 795
Re: How to use displacement and gloss image from POLIIGON
« Reply #30 on: December 13, 2016, 01:25:50 pm »
Thanks very much, Søren. I really appreciate all your technical enlightenment.

Eric
« Last Edit: December 17, 2016, 06:37:30 pm by bdesign »

Offline Will Gibbons

  • Hero Member
  • *****
  • Posts: 2849
  • willgibbons.com
    • My Website
Re: How to use displacement and gloss image from POLIIGON
« Reply #31 on: December 20, 2016, 08:31:45 am »
The recent enlightening information from Søren concerning the non-linear relationship between gloss and roughness got me wanting to delve futher into this subject. When searching, I came across this great post from 4 years ago by DriesV: https://www.keyshot.com/forum/index.php?topic=4751.0 .
Based on his findings, I opened a new 32-bit document in Photoshop and created a custom gradient in 10% increments, entering the floating point roughness values provided. I then opened a gloss map from Poliigon (Tiles 40_GLOSS_3K) and applied a Gradient Map adjustment layer using the custom gradient, then saved out as a new file. I used this new map in the Roughness channel along with the rest of the Tiles 40 texture map set. To my eye, the resulting render is significantly improved in overall appearance and realism. I'm attaching the custom PS gradient (GlossInversion_GradientMap.grd) for any who wish to give it a try. Place it into your AppData/Roaming/Adobe/Adobe Photoshop/Presets/Gradients folder and load it into the Gradient Editor window when applying the Gradient Map adjustment layer. Thanks again to Søren and Dries for the inspiration to dig deeper into this.

Cheers,
Eric

Hi Eric, quick question. How did you arrive at those values for each stop in creating the gradient adjustment layer?

Thanks,

Offline bdesign

  • Hero Member
  • *****
  • Posts: 795
Re: How to use displacement and gloss image from POLIIGON
« Reply #32 on: December 20, 2016, 03:17:11 pm »
The recent enlightening information from Søren concerning the non-linear relationship between gloss and roughness got me wanting to delve futher into this subject. When searching, I came across this great post from 4 years ago by DriesV: https://www.keyshot.com/forum/index.php?topic=4751.0 .
Based on his findings, I opened a new 32-bit document in Photoshop and created a custom gradient in 10% increments, entering the floating point roughness values provided. I then opened a gloss map from Poliigon (Tiles 40_GLOSS_3K) and applied a Gradient Map adjustment layer using the custom gradient, then saved out as a new file. I used this new map in the Roughness channel along with the rest of the Tiles 40 texture map set. To my eye, the resulting render is significantly improved in overall appearance and realism. I'm attaching the custom PS gradient (GlossInversion_GradientMap.grd) for any who wish to give it a try. Place it into your AppData/Roaming/Adobe/Adobe Photoshop/Presets/Gradients folder and load it into the Gradient Editor window when applying the Gradient Map adjustment layer. Thanks again to Søren and Dries for the inspiration to dig deeper into this.

Cheers,
Eric

Hi Eric, quick question. How did you arrive at those values for each stop in creating the gradient adjustment layer?

Thanks,
Hey Will-
In the old post by Dries that I referenced (reply #4 under this thread: https://www.keyshot.com/forum/index.php?topic=4751.0 ), he presents a chart with paint gloss values from 10%-90%, with the corresponding roughness values in orange. 0% and 100% gloss are assumed to be black and white, respectively. I used the floating point values in orange, with pure white and pure black on each end.

Eric

Offline Will Gibbons

  • Hero Member
  • *****
  • Posts: 2849
  • willgibbons.com
    • My Website
Re: How to use displacement and gloss image from POLIIGON
« Reply #33 on: December 21, 2016, 06:05:29 am »
That makes sense. So, assuming those values are the ideal ones, each stop in your gradient doesn't need any tweaking, correct?

Thanks,

Offline bdesign

  • Hero Member
  • *****
  • Posts: 795
Re: How to use displacement and gloss image from POLIIGON
« Reply #34 on: December 22, 2016, 12:08:28 am »
That makes sense. So, assuming those values are the ideal ones, each stop in your gradient doesn't need any tweaking, correct?

Thanks,
Well...that's the way I look at it. This isn't a "scientifically accurate" inversion I'm sure, but I think it's close, and I'm quite happy with the results :)

Eric
« Last Edit: December 22, 2016, 03:02:27 pm by bdesign »

Offline Will Gibbons

  • Hero Member
  • *****
  • Posts: 2849
  • willgibbons.com
    • My Website
Re: How to use displacement and gloss image from POLIIGON
« Reply #35 on: December 22, 2016, 07:26:29 am »
That makes sense. So, assuming those values are the ideal ones, each stop in your gradient doesn't need any tweaking, correct?

Thanks,
Well...that's the way I look at it. This is in no way, of course, a scientifically accurate inversion I'm sure, but I'm pretty happy with the results :)

Eric

Understood. Thanks!

Offline bdesign

  • Hero Member
  • *****
  • Posts: 795
Re: How to use displacement and gloss image from POLIIGON
« Reply #36 on: December 22, 2016, 03:04:09 pm »
Understood. Thanks!
Sure thing, Will :)

Cheers,
Eric

Offline Esben Oxholm

  • KeyShot Beta
  • Hero Member
  • *****
  • Posts: 1667
  • esbenoxholm.dk/keyshot-video-course
    • Freelance CG Artist
Re: How to use displacement and gloss image from POLIIGON
« Reply #37 on: December 23, 2016, 12:03:10 am »
Interesting thread, guys!
I never thought about the relationship between gloss and roughness not being linear.  ???

Would it be possible in some way to do the gradient conversion with the material graph directly inside KeyShot, to save the additional conversion in Photoshop? I guess not, but I keep being surprised with your solutions, Eric :)

Offline Søren

  • Developer
  • Jr. Member
  • *****
  • Posts: 81
  • KeyShot Developer
    • KeyShot
Re: How to use displacement and gloss image from POLIIGON
« Reply #38 on: January 11, 2017, 06:40:15 am »
For gradient node conversion, see mtl-file posted here https://www.keyshot.com/forum/index.php?topic=13929.0

/Søren