reading flm files

Discussion related to the LuxCore functionality, implementations and API.
bartek_zgo
Posts: 60
Joined: Mon Oct 26, 2020 11:42 am

Re: reading flm files

Post by bartek_zgo » Tue Mar 30, 2021 1:47 pm

As you can see in my previous post I followed you suggestions and I'm using all indexes from 0. Where you have explained why the image is different?

The strange image for me is:
film.outputs.7.type = "RADIANCE_GROUP"
film.outputs.7.filename = "/home/node/matadorNode/tmp/0_FI_68803_271618_0000_radiance_group_0.exr"
film.outputs.7.id = 0
In this image I do not define any pipeline so radiance scales are not necessary.

I compare it to pipeline 1 where I define all radiancescales.

bartek_zgo
Posts: 60
Joined: Mon Oct 26, 2020 11:42 am

Re: reading flm files

Post by bartek_zgo » Wed Mar 31, 2021 8:27 am

Abut pipeline names. Where can you see them? In documentation there is:
film.imagepipelines.<pipeline #>.
So it is a number not name like textures etc:
scene.textures.<texture name>.

If I put some string in <pipeline #> I will get an ERROR. (I've tested it)

You have written that they are referenced by a position. So even if there is some way to add some name to pipeline, how can a get this names.
I load film from file. I have found film->GetOutputCount(OUTPUT_RGB_IMAGEPIPELINE) but no idea how I could get some names.

User avatar
Dade
Developer
Posts: 5108
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: reading flm files

Post by Dade » Thu Apr 01, 2021 10:05 am

The attached scene works, just copy it.
Attachments
lightgroups.zip
(3.02 KiB) Downloaded 7 times
Support LuxCoreRender project with salts and bounties

bartek_zgo
Posts: 60
Joined: Mon Oct 26, 2020 11:42 am

Re: reading flm files

Post by bartek_zgo » Tue Apr 06, 2021 2:16 pm

You may think that I'm "stupid or something" but I'm not.
I copy your pipelines and repeat the test. I got the same error. So I started to compare your scene and mine. What I have found:
if I render with BIDIRCPU the radiance group images are broken, when I render with PATHCPU they are OK!

If you render please wait until 20spp. Before the difference is invisible. More the render takes, more the difference is visible. Take a look at: rg1_BIDIRCPU.exr vs rg1_PATHCPU.exr
luxcore_multilight2.PNG
Here you can find complete scene with exr images:
https://files.fm/u/a69zxnrh8

User avatar
Dade
Developer
Posts: 5108
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: reading flm files

Post by Dade » Thu Apr 08, 2021 9:29 am

I should have fixed the problem with BIDIRCPU and RADIANCE_GROUP AOV.
Support LuxCoreRender project with salts and bounties

bartek_zgo
Posts: 60
Joined: Mon Oct 26, 2020 11:42 am

Re: reading flm files

Post by bartek_zgo » Fri Apr 09, 2021 6:58 am

Thanks Dade. I will try

Post Reply