TwoSided material

Discussion related to the LuxCore functionality, implementations and API.
User avatar
Dade
Developer
Posts: 4685
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

TwoSided material

Post by Dade » Tue Sep 15, 2020 2:37 pm

Added the support for TwoSided material:

Code: Select all

##
scene.materials.mat_2s_a.type = matte
scene.materials.mat_2s_a.kd = 0.7 0.3 0.0
scene.materials.mat_2s_a.bumptex = scaled_bumpmap
##
scene.materials.mat_2s_b.type = glossy2
scene.materials.mat_2s_b.kd = 0.5 0.0 0.0
scene.materials.mat_2s_b.ks = 0.5 0.5 0.5
scene.materials.mat_2s_b.uroughness = 0.02
scene.materials.mat_2s_b.vroughness = 0.02
##
scene.materials.mat_2s.type = twosided
scene.materials.mat_2s.frontmaterial = mat_2s_b
scene.materials.mat_2s.backmaterial = mat_2s_a
2s.jpg
Support LuxCoreRender project with salts and bounties

User avatar
Sharlybg
Donor
Posts: 2288
Joined: Mon Dec 04, 2017 10:11 pm
Location: Ivory Coast

Re: TwoSided material

Post by Sharlybg » Tue Sep 15, 2020 2:41 pm

That is a nice add.
Now tree leaves and Books page can be done efficiently without the need for Solidify modifier.
Support LuxCoreRender project with salts and bounties

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

CEROE
Posts: 37
Joined: Wed Jan 09, 2019 11:34 pm

Re: TwoSided material

Post by CEROE » Wed Sep 16, 2020 6:40 pm

Getting "Error: | Unknown material type: twosided"

Testing with newest daily build.

User avatar
B.Y.O.B.
Developer
Posts: 3768
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: TwoSided material

Post by B.Y.O.B. » Wed Sep 16, 2020 6:51 pm

It's not yet merged into master.

CEROE
Posts: 37
Joined: Wed Jan 09, 2019 11:34 pm

Re: TwoSided material

Post by CEROE » Wed Sep 16, 2020 6:55 pm

Ok, I must be patient. This is an exciting new feature, so please pardon me.

User avatar
Dade
Developer
Posts: 4685
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: TwoSided material

Post by Dade » Wed Sep 16, 2020 8:24 pm

B.Y.O.B. wrote:
Wed Sep 16, 2020 6:51 pm
It's not yet merged into master.
Do you mean the LuxCore branch ? I merged the branch ... or at least I assume I did :?:
Support LuxCoreRender project with salts and bounties

User avatar
Dade
Developer
Posts: 4685
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: TwoSided material

Post by Dade » Wed Sep 16, 2020 8:28 pm

Dade wrote:
Wed Sep 16, 2020 8:24 pm
B.Y.O.B. wrote:
Wed Sep 16, 2020 6:51 pm
It's not yet merged into master.
Do you mean the LuxCore branch ? I merged the branch ... or at least I assume I did :?:
I did but apparently I didn't pushed the changes to GitHub. Done.
Support LuxCoreRender project with salts and bounties

CEROE
Posts: 37
Joined: Wed Jan 09, 2019 11:34 pm

Re: TwoSided material

Post by CEROE » Wed Sep 16, 2020 9:42 pm

It works! Thank you!!!

CEROE
Posts: 37
Joined: Wed Jan 09, 2019 11:34 pm

Re: TwoSided material

Post by CEROE » Thu Sep 17, 2020 2:19 am

There are a couple issues:

The backside seems to be extra glossy. I have tried the same settings for each, and the backside is different.

When mirroring a twig the faces are also switching.
Attachments
mirror.PNG

User avatar
B.Y.O.B.
Developer
Posts: 3768
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: TwoSided material

Post by B.Y.O.B. » Thu Sep 17, 2020 9:55 am

The glossy material has a weird legacy behaviour, see https://github.com/LuxCoreRender/LuxCore/issues/301

Post Reply