Sorry to bring this topic back to life... but I am working with this kind of stuff, but as usual, I prefer to make some sketches of the algorithms first on Scilab or Matlab.
Anyways, my question is: I know how to load the BSDF matrix without much trouble. However, I do not understand how the matrix written in the xml file is converted in a Color Matrix. Are they just grey matrices? is there any easy calculation? If it is complicated just let me know, and I will make some trivial tests on the algorithm before going into C. THANKS German 2013/4/22 Andrew McNeil <[email protected]> > Hi Aitor, > > I recommend considering using the BSDF parser library from Radiance if you > can. The library has load and query routines to get everything you need. > It supports both Klems and TensorTree BSDFs without any need to > differentiate between them your side. > > I used it for BSDF viewer, and it would have been a breeze if I didn't > need to use Java Native Interface in the process. > > Andy > > > On Mon, Apr 22, 2013 at 9:43 AM, Greg Ward <[email protected]> wrote: > >> Hi Aitor, >> >> This question probably belongs on the radiance-dev list, so I am >> cross-posting there and ask you to sign up (if you haven't already) and >> respond on that list. (Same goes for others -- thanks!) >> >> The data order in the file is a matrix running from smallest to largest >> Klems patches, with the columns (inner loop data) corresponding to the >> input directions. This is verified by a tag in the "DataDefinition" >> section that says: >> >> <IncidentDataStructure>Columns</IncidentDataStructure> >> >> If "Rows" appears there instead of Columns, then the outgoing directions >> are the inner loop, but this would be unusual and probably not supported by >> WINDOW. >> >> The units of a BSDF are 1/steradians. >> >> If you have the opportunity to link to C code, you may also use the >> existing BSDF parser library included in the Radiance source tree to do the >> data loading and interpretation. >> >> Best, >> -Greg >> >> *From: *leceta <[email protected]> >> >> *Date: *April 22, 2013 9:23:06 AM PDT >> >> * >> * >> >> Hi all, >> >> i would like to write a BSDF/xml parser for Rhino/Grasshopper 3d >> modelling software. >> >> In order to correctly interpret the data contained in <ScatteringData> >> element in the xml file, i would appreciate to know: >> >> -The order of this data related to Klem´s patches. supposed that they are >> measuremts for each input/output direction >> >> - The units of this data. Lumens? Percentage? >> >> thanks >> aitor >> >> >> _______________________________________________ >> Radiance-dev mailing list >> [email protected] >> http://www.radiance-online.org/mailman/listinfo/radiance-dev >> >> > > _______________________________________________ > Radiance-dev mailing list > [email protected] > http://www.radiance-online.org/mailman/listinfo/radiance-dev > >
_______________________________________________ Radiance-dev mailing list [email protected] http://www.radiance-online.org/mailman/listinfo/radiance-dev
