mix material need help to understand

Discussions about LuxRender's materials, and how to make the most of them.

Moderator: coordinators

mix material need help to understand

Postby hedphelym » Thu May 27, 2010 12:21 pm

Hi, I'm trying to understand how the mix material should be implemented.
(I'm working on the Luxmax exporter).

I have no experience with blender what so ever - so I'm not able to get my answer from there.

Let's say I have a scene, 3 boxes.
box A - B - C

A material = Glass
B material = Metal
C material= Mix of these two.

How does C's material definition look like?

My two boxes has the following:

Box A
Code: Select all
Material "glass" "color Kr" [1.000000 1.000000 1.000000]
"color Kt" [1.000000 1.000000 1.000000]
"float index" [1.000000]
"bool architectural" ["false"]


Box B
Code: Select all
Material "metal"
   "string name" ["aluminium"]
"float vroughness" [0.001000]
"float uroughness" [0.001000]


Thanks in advance.
User avatar
hedphelym
Developer
 
Posts: 792
Joined: Mon Aug 18, 2008 7:37 am
Location: Kristiansand Norway

Re: mix material need help to understand

Postby dougal2 » Thu May 27, 2010 1:23 pm

Box A
Code: Select all
MakeNamedMaterial "MATERIAL1" "glass"
"color Kr" [1.000000 1.000000 1.000000]
"color Kt" [1.000000 1.000000 1.000000]
"float index" [1.000000]
"bool architectural" ["false"]


Box B
Code: Select all
MakeNamedMaterial "MATERIAL2" "metal"
"string name" ["aluminium"]
"float vroughness" [0.001000]
"float uroughness" [0.001000]


Box C
Code: Select all
Material "mix"
"string namedmaterial1" ["MATERIAL1"]
"string namedmaterial2" ["MATERIAL2"]
"float amount" [0.5]


Reference:
http://www.luxrender.net/wiki/index.php ... ile_format
http://www.luxrender.net/static/materia ... ters.xhtml
http://www.luxrender.net/static/texture ... ters.xhtml
User avatar
dougal2
Developer
 
Posts: 3074
Joined: Mon Jan 14, 2008 7:21 am


Return to Materials Help

Who is online

Users browsing this forum: No registered users and 2 guests