A baking test scene

Discussion related to the LuxCore functionality, implementations and API.
epilectrolytics
Donor
Posts: 741
Joined: Thu Oct 04, 2018 6:06 am

Re: A baking test scene

Post by epilectrolytics » Sun Aug 15, 2021 2:34 pm

I remember there is also a light map option?
This should be great for render speedup with less bias than indirect cache.
Except from gltf export there could be a normal render result (from bakecpu engine) that can be composed/denoised like any other render for reuse in production rendering.

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

Re: A baking test scene

Post by Dade » Mon Aug 16, 2021 11:59 am

u3dreal wrote:
Sun Aug 15, 2021 10:32 am
You can find the gltf exported from luxcoreui here
http://q3de.com/wp-content/uploads/2021/08/testbake.zip
It is working fine here: unpack the .zip, drag the unpacked directory on https://gltf-viewer.donmccurdy.com/ and it works :?:

scr.jpg

The https://github.khronos.org/glTF-Validator/ also works fine (it is only complaining of not begin able to find the not uploaded .png).

I need a description of how to replicate your problem.

Yes, the denoiser work, you can find an example of usage with light maps here: https://github.com/LuxCoreRender/LuxCor ... ke.cfg#L39

Note: you need also to use the BAKEMAP_MARGIN image pipeline plugin to avoid the annoying border on the edge of objects.

Note 2: you have also to be careful on how to configure image pipeline gamma correction because you may end with gamma correction applied two times when exporting in glTF.
Support LuxCoreRender project with salts and bounties

User avatar
u3dreal
Developer
Posts: 525
Joined: Tue Dec 03, 2019 3:23 pm
Location: Ulm
Contact:

Re: A baking test scene

Post by u3dreal » Mon Aug 16, 2021 12:11 pm

Strange. Import into Blender or BabylonJS does not work ...

Could you try it with Blender ? That is where i got the error..

Also here in babylonjs sandbox there is a json error when i drop the folder there.
https://sandbox.babylonjs.com/
In gltf viewer it works for me as well. Strange that treejs works and babylon doesn't.

I think it is just some format of the text file since Blender throws an

binascii.Error: Incorrect padding

It is the same in macos and windows so i doubt it is a big/lttle endian problem.
So you should get an error when inporting to Blender 2.93.2
check out my newest stuff http://q3de.com/research/
portfolio http://q3de.com/


MB Pro i7 2.3Ghz, IrisPro 1.5GB, GTX750m 2GB - High Sierra
Xeon X5650@4Ghz, RX 5700 - BigSur / Catalina / High Sierra, Windows 10, Ubuntu 18.04

User avatar
u3dreal
Developer
Posts: 525
Joined: Tue Dec 03, 2019 3:23 pm
Location: Ulm
Contact:

Re: A baking test scene

Post by u3dreal » Mon Aug 16, 2021 12:37 pm

check out my newest stuff http://q3de.com/research/
portfolio http://q3de.com/


MB Pro i7 2.3Ghz, IrisPro 1.5GB, GTX750m 2GB - High Sierra
Xeon X5650@4Ghz, RX 5700 - BigSur / Catalina / High Sierra, Windows 10, Ubuntu 18.04

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

Re: A baking test scene

Post by Dade » Tue Aug 17, 2021 10:38 am

I added the work around and it should have fixed the problem. The Blender import now works.
Support LuxCoreRender project with salts and bounties

User avatar
u3dreal
Developer
Posts: 525
Joined: Tue Dec 03, 2019 3:23 pm
Location: Ulm
Contact:

Re: A baking test scene

Post by u3dreal » Tue Aug 17, 2021 11:02 pm

Exellent :!:
check out my newest stuff http://q3de.com/research/
portfolio http://q3de.com/


MB Pro i7 2.3Ghz, IrisPro 1.5GB, GTX750m 2GB - High Sierra
Xeon X5650@4Ghz, RX 5700 - BigSur / Catalina / High Sierra, Windows 10, Ubuntu 18.04

Post Reply