Page 1 of 5
TwoSided material
Posted: Tue Sep 15, 2020 2:37 pm
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
Re: TwoSided material
Posted: Tue Sep 15, 2020 2:41 pm
by Sharlybg
That is a nice add.
Now tree leaves and Books page can be done efficiently without the need for Solidify modifier.
Re: TwoSided material
Posted: Wed Sep 16, 2020 6:40 pm
by CEROE
Getting "Error: | Unknown material type: twosided"
Testing with newest daily build.
Re: TwoSided material
Posted: Wed Sep 16, 2020 6:51 pm
by B.Y.O.B.
It's not yet merged into master.
Re: TwoSided material
Posted: Wed Sep 16, 2020 6:55 pm
by CEROE
Ok, I must be patient. This is an exciting new feature, so please pardon me.
Re: TwoSided material
Posted: Wed Sep 16, 2020 8:24 pm
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
Re: TwoSided material
Posted: Wed Sep 16, 2020 8:28 pm
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.
Re: TwoSided material
Posted: Wed Sep 16, 2020 9:42 pm
by CEROE
It works! Thank you!!!
Re: TwoSided material
Posted: Thu Sep 17, 2020 2:19 am
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.
Re: TwoSided material
Posted: Thu Sep 17, 2020 9:55 am
by B.Y.O.B.
The glossy material has a weird legacy behaviour, see
https://github.com/LuxCoreRender/LuxCore/issues/301