Page 6 of 6

Re: Transitioning from VRay to LuxCoreRender

Posted: Sat Jul 13, 2019 1:26 am
by happyboy
B.Y.O.B. wrote: Fri Jul 12, 2019 7:18 am As far as LuxCore is concerned, every length is in meters.
Thanks!

Re: Transitioning from VRay to LuxCoreRender

Posted: Thu Jul 18, 2019 5:11 am
by happyboy
Another question: can we store OBJECT_ID AOV in an exr? I'm getting this error:

RuntimeError: Object ID image can be saved only in non HDR formats: 4

But in wiki (https://wiki.luxcorerender.org/LuxCore_ ... ka_AOVs.29) OBJECT_ID is marked as "HDR".

And with VRay, it is stored in a channel of uint type instead of float type and my program can successfully read from it (and values are correct).

Is this intended, or a bug? If it's not a bug, how is it stored? I'm asking because I tried to store luxcore's OBJECT_ID AOV in LDR (a png file), but the file looks different than VRay's png.

Re: Transitioning from VRay to LuxCoreRender

Posted: Thu Jul 18, 2019 5:20 am
by happyboy
Also, if I defined an "ALBEDO" output, but don't have an "AVG_SHADING_NORMAL" output defined, ALBEDO won't be saved. If I defined both, both will be saved. It looks like a bug? (I'm not using OIDN in this case)

Re: Transitioning from VRay to LuxCoreRender

Posted: Thu Jul 18, 2019 8:12 am
by Dade
happyboy wrote: Thu Jul 18, 2019 5:11 am Another question: can we store OBJECT_ID AOV in an exr? I'm getting this error:

RuntimeError: Object ID image can be saved only in non HDR formats: 4

But in wiki (https://wiki.luxcorerender.org/LuxCore_ ... ka_AOVs.29) OBJECT_ID is marked as "HDR".

And with VRay, it is stored in a channel of uint type instead of float type and my program can successfully read from it (and values are correct).

Is this intended, or a bug? If it's not a bug, how is it stored? I'm asking because I tried to store luxcore's OBJECT_ID AOV in LDR (a png file), but the file looks different than VRay's png.
OBJECT_ID, MATERIAL_ID and SAMPLECOUNT AOVs are saved in RGB 8 bits (so only 24 bits are stored): https://github.com/LuxCoreRender/LuxCor ... t.cpp#L483

Re: Transitioning from VRay to LuxCoreRender

Posted: Thu Jul 18, 2019 10:15 am
by happyboy
Dade wrote: Thu Jul 18, 2019 8:12 am OBJECT_ID, MATERIAL_ID and SAMPLECOUNT AOVs are saved in RGB 8 bits (so only 24 bits are stored): https://github.com/LuxCoreRender/LuxCor ... t.cpp#L483
Thanks! The results (luxcore vs VRay) matched now.

Re: Transitioning from VRay to LuxCoreRender

Posted: Mon Jul 22, 2019 9:28 am
by Dade
happyboy wrote: Thu Jul 18, 2019 5:20 am Also, if I defined an "ALBEDO" output, but don't have an "AVG_SHADING_NORMAL" output defined, ALBEDO won't be saved. If I defined both, both will be saved. It looks like a bug? (I'm not using OIDN in this case)
It was a bug and I should have fixed this problem.

Re: Transitioning from VRay to LuxCoreRender

Posted: Tue Jul 23, 2019 2:03 am
by happyboy
Dade wrote: Mon Jul 22, 2019 9:28 am It was a bug and I should have fixed this problem.
Thanks! It works now.