Baking Bevel in Cycles

Use this forum for general user support and related questions.
Forum rules
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
AndreasResch
Posts: 135
Joined: Fri Jul 06, 2018 9:32 am

Baking Bevel in Cycles

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

Cheers.
kintuX
Posts: 810
Joined: Wed Jan 10, 2018 2:37 am

Re: Baking Bevel in Cycles

Post 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
BakeBevel_01_X-Cycles.jpg

Eevee
BakeBevel_01_X-Eevee.jpg

LuxCore
BakeBevel_01_X-LuxCore.jpg

LuxCore Node Tree
BakeBevel_01_X-LuxCoreNodes.jpg
BakeBevel_01_X-LuxCoreNodesTree.jpg
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
BakeBevel_01_X-LuxCoreNormal-OFF-OGL.jpg

DX
BakeBevel_01_X-LuxCoreNormal-OFF-DX.jpg
Attachments
BakeBevel_01_X.blend
(110.78 KiB) Downloaded 151 times
AndreasResch
Posts: 135
Joined: Fri Jul 06, 2018 9:32 am

Re: Baking Bevel in Cycles

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

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

Re: Baking Bevel in Cycles

Post 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 ?
Support LuxCoreRender project with salts and bounties
AndreasResch
Posts: 135
Joined: Fri Jul 06, 2018 9:32 am

Re: Baking Bevel in Cycles

Post 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?
JulianoLisboa
Posts: 146
Joined: Sat Feb 22, 2020 3:29 am

Re: Baking Bevel in Cycles

Post by JulianoLisboa »

I intrude into the discussion, wasn't the shader bevel expected to come in version 2.5?
Bevel Shader.png
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Baking Bevel in Cycles

Post 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.
Support LuxCoreRender project with salts and bounties
AndreasResch
Posts: 135
Joined: Fri Jul 06, 2018 9:32 am

Re: Baking Bevel in Cycles

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

Re: Baking Bevel in Cycles

Post 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
Support LuxCoreRender project with salts and bounties
AndreasResch
Posts: 135
Joined: Fri Jul 06, 2018 9:32 am

Re: Baking Bevel in Cycles

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