wiki:material_database

Version 10 (modified by necro, 6 years ago) (diff)

--

Material Database

Use of values

All parameters have to be in range of [0 .. 255]. Instead of using integer values one can also use the decimal representation of them. A value of 163 could also be written as 163/255 = 0.639. Care of the floating point when using decimal values. The value 1 will be detected as 1/255 = 0.0039 until the value of 1.0 will be detected as 255 / 255 = 1.0.

Reference Materials

Standard

"diffuse" : "163,163,163,255", 
"Ax" : "7", 
"Ay" : "7", 
"m" : "127", 

https://lh3.googleusercontent.com/-TX7Nx9-pzlA/Uk1oxSwe73I/AAAAAAAADFw/fxzndENglz8/s310-no/mat_std.gif

Glass

"diffuse" : "0.15,0.15,0.15,0.99", 
"Ax" : "0.108", 
"Ay" : "7", 
"m" : "0.02", 

https://lh5.googleusercontent.com/-kaKZyurI7C8/Uk1qXbnQlvI/AAAAAAAADGI/LnZq4Jd-RZw/s318-no/mat_glass.gif

Ax

The Ax coeficient influences the reflectance of the material. Small values behave like matte and bigger values like metalic materials. The following examples show the effect of several Ax values. See material for further information