TwoSided material

Discussion related to the LuxCore functionality, implementations and API.
CEROE
Posts: 54
Joined: Wed Jan 09, 2019 11:34 pm

Re: TwoSided material

Post by CEROE »

Actually, it is the definition of your material to be asymmetric, you need to click on "Double Sided" and to use the same parameters for front and back face ("BF"):
Yes, this was the issue with the extra glossiness!

Have you addressed the issue about mirroring? When the objects are mirrored the faces change from frontside to backside.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: TwoSided material

Post by Dade »

CEROE wrote: Tue Sep 29, 2020 4:42 pm Have you addressed the issue about mirroring? When the objects are mirrored the faces change from frontside to backside.
But isn't that expected ? I mean it is the normal of the surface to be flipped by the mirror operation (i.e. it is not related to LuxCore, it is just what Blender does) :?:
Support LuxCoreRender project with salts and bounties
CEROE
Posts: 54
Joined: Wed Jan 09, 2019 11:34 pm

Re: TwoSided material

Post by CEROE »

But isn't that expected ? I mean it is the normal of the surface to be flipped by the mirror operation (i.e. it is not related to LuxCore, it is just what Blender does) :?:
Mirroring an object in Blender does not flip the normal faces. Not in my experiences. I've mirrored twigs many times for variation and Cycles materials do not flip the faces from backside to frontside. The first time this happened for me is mirroring and using Lux materials.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: TwoSided material

Post by Dade »

CEROE wrote: Tue Sep 29, 2020 5:54 pm Mirroring an object in Blender does not flip the normal faces. Not in my experiences. I've mirrored twigs many times for variation and Cycles materials do not flip the faces from backside to frontside. The first time this happened for me is mirroring and using Lux materials.
If the normal is not flipped, material will not be. If it is flipped, the material will be. If you select, inside Blender, the original object and the mirrored one, how do the normals look ?
Support LuxCoreRender project with salts and bounties
CEROE
Posts: 54
Joined: Wed Jan 09, 2019 11:34 pm

Re: TwoSided material

Post by CEROE »

Using same file and mirroring the object Y Global you can see the difference below:
Attachments
mirror_Cycles.png
mirror_Lux.png
CEROE
Posts: 54
Joined: Wed Jan 09, 2019 11:34 pm

Re: TwoSided material

Post by CEROE »

Referring to previous post, if it is not obvious, the top image is Cycles and the bottom image is Lux.
If the normal is not flipped, material will not be. If it is flipped, the material will be. If you select, inside Blender, the original object and the mirrored one, how do the normals look ?
The normals do not flip.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: TwoSided material

Post by Dade »

Frankly, I have no idea what I'm looking at. Try to post a test scene explaining what is the problem.
Support LuxCoreRender project with salts and bounties
CEROE
Posts: 54
Joined: Wed Jan 09, 2019 11:34 pm

Re: TwoSided material

Post by CEROE »

The normals do not flip on the mirrored object, but the frontside/backside material switches in Lux. This does not happen in Cycles (Top render in previous post).

Below shows the normals of the mirrored object.

Lux is switching the frontside/backside material on a mirrored object.
Attachments
normals_of_mirrored_object.PNG
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: TwoSided material

Post by Dade »

Is the mirrored object an instance ?
Support LuxCoreRender project with salts and bounties
CEROE
Posts: 54
Joined: Wed Jan 09, 2019 11:34 pm

Re: TwoSided material

Post by CEROE »

Is the mirrored object an instance ?
No, it is a duplicate (Shift D)
Post Reply