Patch Submission, support for MERL database

Discussion related to the LuxRender Material system, programming API and Scene file format.

Moderators: jromang, tomb, zcott, coordinators

Patch Submission, support for MERL database

Postby Steve132 » Thu Apr 12, 2012 8:19 pm

For some of my research, I needed the ability to use materials defined in the format specified in the MERL database of measured materials.
This format is a tabular BRDF format, captured from photographs. Examples of the format can be found by downloading the database at http://people.csail.mit.edu/wojciech/BRDFDatabase/ .

However, the code and materials there are non-free, and are only available for research use. Nonetheless, the format used to be supported by PBRT, and is used by many researchers in Computer Graphics for their materials in internal tools.

This patch (merl.h and merl.cpp) is a new material class that allows a user to specify a MERL .binary material file as a parameter to LuxRender.
This file is a from-scratch implementation of the binary file format, and does not use any code from the MERL database.

This first version is not as fast as it could be, because it simply globally samples the entire material, when MERL materials are guaranteed to be isotropic. Furthermore, importance sampling could be used.

However, the results are convincing.

To use the material, specify the material type as
"merl" or "measured" in the lxs file, and provide the path to the .binary file as a string "file" parameter.

These files need to be added to the source tree under materials/ and added to the appropriate CMakeLists.txt

For authorship+copyright purposes, my name is Steven Braeger, I claim authorship of this code and assert that to the best of my knowledge it is an original work. I hereby release it under the GNU GPL V3.
Attachments
merl.cpp.zip
(3.2 KiB) Downloaded 28 times
Steve132
 
Posts: 1
Joined: Thu Apr 12, 2012 5:02 pm

Re: Patch Submission, support for MERL database

Postby SATtva » Thu Apr 12, 2012 11:10 pm

I guess it's based on this work?

Btw, the actual rights provided under the license are "to use, copy and modify this software, data, and its documentation without fee for educational, research and non-profit purposes". So materials can be easily used by many folks here in the Lux community.
Linux builds packager
聞くのは一時の恥、聞かぬのは一生の恥
User avatar
SATtva
Developer
 
Posts: 5500
Joined: Tue Apr 07, 2009 12:19 pm
Location: from Siberia with love

Re: Patch Submission, support for MERL database

Postby jeanphi » Fri Apr 13, 2012 2:01 am

Hi,

Thanks a lot, I'll review the code and add it to the repository.

Jeanphi
jeanphi
Developer
 
Posts: 6580
Joined: Mon Jan 14, 2008 7:21 am


Return to Materials, API & Scene file format

Who is online

Users browsing this forum: No registered users and 1 guest