Mixed material bug

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.
daros
Posts: 280
Joined: Thu Dec 12, 2019 3:25 pm
Location: inside human language
Contact:

Mixed material bug

Post by daros »

I encountered this bug because suddently, in an exterior scene, an asphalt material which uses a mix node + two disney nodes, was not receiving shadows correctly. Then i discovered that i was getting the correct brightness only by removing the mixed node.

using mixed
no shadows.JPG
single disney only
shadows.JPG


The attached scene is a simplified set-up of the same problem.
It's a closed box with an environnment outside.
the camera is inside the box.
To the base of the box i applied two mixed disney nodes. Each disney node has a bum map.
In theory, being the box sealed the resulting image should be completely black.

Instead, i get this:
mix bug.png

if i keep one single disney node with the same bump applied the result is black as expected.
So it seems a mix+bump problem
Attachments
mixedBug2.zip
(1.66 MiB) Downloaded 132 times
User avatar
Sharlybg
Donor
Donor
Posts: 3101
Joined: Mon Dec 04, 2017 10:11 pm
Location: Ivory Coast

Re: Mixed material bug

Post by Sharlybg »

Here the issue reproduced in blender :
mix bug.jpg
In the blendfile you have 2 nodetrees.
one create the bug (bump in each of the shader being mixed )
and the second (bump in the mix node only) is fine.

the files : https://drive.google.com/file/d/1IP3dS_ ... sp=sharing
Support LuxCoreRender project with salts and bounties

Portfolio : https://www.behance.net/DRAVIA
S0rda
Posts: 96
Joined: Sun May 27, 2018 8:34 am

Re: Mixed material bug

Post by S0rda »

Hello.
Excuse me, but why highlight the asphalt at all?
daros
Posts: 280
Joined: Thu Dec 12, 2019 3:25 pm
Location: inside human language
Contact:

Re: Mixed material bug

Post by daros »

hi, exactly this is the problem... it should be full black.
User avatar
Sharlybg
Donor
Donor
Posts: 3101
Joined: Mon Dec 04, 2017 10:11 pm
Location: Ivory Coast

Re: Mixed material bug

Post by Sharlybg »

S0rda wrote: Wed Jan 26, 2022 11:02 am Hello.
Excuse me, but why highlight the asphalt at all?
It is a bug that let light pass throught object.
light come from the outside. object are solid
with no emissive material on them.
Support LuxCoreRender project with salts and bounties

Portfolio : https://www.behance.net/DRAVIA
S0rda
Posts: 96
Joined: Sun May 27, 2018 8:34 am

Re: Mixed material bug

Post by S0rda »

Add thickness to asphalt?
daros
Posts: 280
Joined: Thu Dec 12, 2019 3:25 pm
Location: inside human language
Contact:

Re: Mixed material bug

Post by daros »

S0rda wrote: Wed Jan 26, 2022 5:17 pm Add thickness to asphalt?
It do not makes any difference. It's a reflection issue.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Mixed material bug

Post by Dade »

daros wrote: Tue Jan 25, 2022 10:38 am So it seems a mix+bump problem
The scene includes the definition of some very strange normal map:

imagemap-00001.png

used as a normal map:

Code: Select all

scene.textures.92411_1_sub1_normal01.type = "normalmap"
scene.textures.92411_1_sub1_normal01.texture = "92411_1_sub1_normal01_texture_mergeColor"
scene.textures.92411_1_sub1_normal01.scale = 0.25
This is wrong because the above image clearly not a normal map (i.e. it is a bump map). This is likely to be the source of your problem.

Normal maps have a very specific look, they looks like this:

normal.png
normal.png (163.48 KiB) Viewed 3025 times

where the R, G and B channels are used to encode the X, Y and Z offset.
Support LuxCoreRender project with salts and bounties
daros
Posts: 280
Joined: Thu Dec 12, 2019 3:25 pm
Location: inside human language
Contact:

Re: Mixed material bug

Post by daros »

Hi Dade, sorry for the long delay replaing you, i simply missed your answer despite thinking about it everyday,
If you look in depth to the scene you will notice that this normal map is not used. The texture with name 92411_1_sub1_normal01 is in fact not used by any material in the scene.

And for this reason Charles gets the same results i got, by setting up the scene in blender.
Did you revised Charles scene?
Thanks for you help dade.
User avatar
Sharlybg
Donor
Donor
Posts: 3101
Joined: Mon Dec 04, 2017 10:11 pm
Location: Ivory Coast

Re: Mixed material bug

Post by Sharlybg »

Here is the blend Scene with no Normal map involved :

https://drive.google.com/file/d/1IP3dS_ ... sp=sharing
Support LuxCoreRender project with salts and bounties

Portfolio : https://www.behance.net/DRAVIA
Post Reply