Transitioning from VRay to LuxCoreRender

Discussion related to the LuxCore functionality, implementations and API.
happyboy
Posts: 63
Joined: Sat Jun 22, 2019 5:39 am

Re: Transitioning from VRay to LuxCoreRender

Post 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!
happyboy
Posts: 63
Joined: Sat Jun 22, 2019 5:39 am

Re: Transitioning from VRay to LuxCoreRender

Post 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.
happyboy
Posts: 63
Joined: Sat Jun 22, 2019 5:39 am

Re: Transitioning from VRay to LuxCoreRender

Post 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)
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Transitioning from VRay to LuxCoreRender

Post 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
Support LuxCoreRender project with salts and bounties
happyboy
Posts: 63
Joined: Sat Jun 22, 2019 5:39 am

Re: Transitioning from VRay to LuxCoreRender

Post 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.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Transitioning from VRay to LuxCoreRender

Post 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.
Support LuxCoreRender project with salts and bounties
happyboy
Posts: 63
Joined: Sat Jun 22, 2019 5:39 am

Re: Transitioning from VRay to LuxCoreRender

Post 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.
Post Reply