Page 1 of 6
Baking Bevel in Cycles
Posted: Wed Mar 03, 2021 9:36 am
by AndreasResch
Hey.
Has anybody successfully tried to bake the Bevel node in Cycles and used it as an interim Bevel shader in Luxcore? The baking part in Cycles seems to work well, but using the baked normal map doesn't look right in Luxcore. Is there anything I have to take care about in Luxcore when using this workflow?
Here's a simple mesh and the corresponding normal map that I baked in Cycles - I used the OpenGL version of baking it.
http://www.argfx.at/upload/BakeBevel_01.zip
And here is the node setup that I used in Luxcore.
Cheers.
Re: Baking Bevel in Cycles
Posted: Wed Mar 03, 2021 1:57 pm
by kintuX
imported fbx, set scene for cycles, rendered with eevee & cycles for reference,
switch to LuxCore, "use cycles settings", set ibl/hdr, render looks fine...
Cycles
Eevee
LuxCore
LuxCore Node Tree
1. edit: updated with LuxCore Material Node Tree
2. edit: indeed, after further testing it looks like there's discrepancy in one of the axes(?)
OGL
DX
Re: Baking Bevel in Cycles
Posted: Wed Mar 03, 2021 3:16 pm
by AndreasResch
Thanks for giving it a try and the elaborate reply. But somehow I can't get it to work properly - even with your scene.
Here are the 4 version that I compared. As you can see, the faces in the Cycles rendering look the same, no matter if the edges are beveled or not. In the Luxcore version, the faces already look a bit odd - even in the non-beveled version. Somehow they don't seem to be completely flat. And once the bevel is applied, the normals are completely off.
Here's the scene ...
http://www.argfx.at/upload/BakeBevel_02.zip
Which version of Luxcore are you using? The latest version of V2.5 as well?
Cheers.
Re: Baking Bevel in Cycles
Posted: Wed Mar 03, 2021 3:20 pm
by Dade
Can you bake a cube with bevel edges and post the the texture image you are using for the LuxCore rendering ?
Are you sure the baked texture image is a normal map and not a bump map ?
Re: Baking Bevel in Cycles
Posted: Wed Mar 03, 2021 3:25 pm
by AndreasResch
It's a normal map. In my initial posting you can see a link and download it. Did the scene from my previous post work for you?
Re: Baking Bevel in Cycles
Posted: Wed Mar 03, 2021 5:23 pm
by JulianoLisboa
I intrude into the discussion, wasn't the shader bevel expected to come in version 2.5?
Re: Baking Bevel in Cycles
Posted: Wed Mar 03, 2021 5:24 pm
by Dade
AndreasResch wrote: Wed Mar 03, 2021 3:25 pm
It's a normal map. In my initial posting you can see a link and download it. Did the scene from my previous post work for you?
I have no idea how Blender/Cycles/etc. work.
Re: Baking Bevel in Cycles
Posted: Wed Mar 03, 2021 5:34 pm
by AndreasResch
Dade wrote: Wed Mar 03, 2021 3:20 pm
Can you bake a cube with bevel edges and post the the texture image you are using for the LuxCore rendering ?
Here's a normal map for a beveled cube, baked in Cycles.
http://www.argfx.at/upload/BevelBake_Normal_02.zip
Re: Baking Bevel in Cycles
Posted: Thu Mar 04, 2021 9:39 am
by Dade
JulianoLisboa wrote: Wed Mar 03, 2021 5:23 pm
I intrude into the discussion, wasn't the shader bevel expected to come in version 2.5?Bevel Shader.png
The work is going on this (v2.6) branch:
https://github.com/LuxCoreRender/LuxCor ... geom_bevel
Re: Baking Bevel in Cycles
Posted: Thu Mar 04, 2021 10:02 am
by AndreasResch
kintuX wrote: Wed Mar 03, 2021 1:57 pm
2. edit: indeed, after further testing it looks like there's discrepancy in one of the axes(?)
Thanks for confirming this. Maybe this could be investigated. If you need any assets, let me know.
Cheers.