TwoSided material

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

TwoSided material

Post by Dade »

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
Donor
Posts: 3101
Joined: Mon Dec 04, 2017 10:11 pm
Location: Ivory Coast

Re: TwoSided material

Post by Sharlybg »

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: 54
Joined: Wed Jan 09, 2019 11:34 pm

Re: TwoSided material

Post by CEROE »

Getting "Error: | Unknown material type: twosided"

Testing with newest daily build.
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: TwoSided material

Post by B.Y.O.B. »

It's not yet merged into master.
CEROE
Posts: 54
Joined: Wed Jan 09, 2019 11:34 pm

Re: TwoSided material

Post by CEROE »

Ok, I must be patient. This is an exciting new feature, so please pardon me.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: TwoSided material

Post by Dade »

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

Re: TwoSided material

Post by Dade »

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: 54
Joined: Wed Jan 09, 2019 11:34 pm

Re: TwoSided material

Post by CEROE »

It works! Thank you!!!
CEROE
Posts: 54
Joined: Wed Jan 09, 2019 11:34 pm

Re: TwoSided material

Post by CEROE »

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
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: TwoSided material

Post by B.Y.O.B. »

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