Author Topic: Normals RE saving issue  (Read 2159 times)

2019-11-16, 16:06:41

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8850
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Sometimes i use Corona to bake geometric details onto flat surface and recently i noticed that it incorrectly saves normal shading render element. Flat surface that is perpendicular to the bottom facing camera, should have 128 128 255 colour, but it is saved as 127 127 255 instead. I did little experiment, rendered such surface with 128 128 255 sRGB colour assigned, with flat white lighting, then saved beauty and NormalShading RE. Both elements displayed correctly in VFB, but only beauty has been saved correctly. One thing i noticed, that normal element in VFB was 0.50000 0.50000 1.00000 (tonemapped sRGB), but beauty was 0.50205 0.50205 1.00000 and that got me thinking, could this be a rounding error? If so, can something be done about it? 127 127 255 in normal map is a big issue when renderer expects 128 128 255. For now, i'm correcting baked textures in Affinity, but that's hardly a viable solution.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2019-11-20, 14:48:26
Reply #1

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12767
  • Marcin
    • View Profile
Can you describe your procedure step by step?
I am getting different results depending on the file format. :/
For example, jpg and 32-bit tiff are incorrect, but 32-bit exr is fine.

Attaching an archive with various files and a max 2017 scene.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2019-11-20, 14:57:04
Reply #2

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8850
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Hm, i didn't tried different formats, just 8bit PNGs and TIFFs and  both are incorrect. I will try some different formats, but i wouldn't be happy to find, that the only solution is to save to 32bits.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2019-11-20, 16:42:05
Reply #3

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12767
  • Marcin
    • View Profile
Did you check how it works with other renderers? (V-Ray, Scanline, ...)
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us