Page 17 of 17

Re: A baking test scene

Posted: Sun Aug 15, 2021 2:34 pm
by epilectrolytics
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.

Re: A baking test scene

Posted: Mon Aug 16, 2021 11:59 am
by Dade
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.

Re: A baking test scene

Posted: Mon Aug 16, 2021 12:11 pm
by u3dreal
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

Re: A baking test scene

Posted: Mon Aug 16, 2021 12:37 pm
by u3dreal

Re: A baking test scene

Posted: Tue Aug 17, 2021 10:38 am
by Dade
I added the work around and it should have fixed the problem. The Blender import now works.

Re: A baking test scene

Posted: Tue Aug 17, 2021 11:02 pm
by u3dreal
Exellent :!: