Close

The Difference Between A Comma And A Dot

A project log for Affordable Reflectance Transformation Imaging Dome

A simple and inexpensive way to image and analyze subtle surface details on objects.

Leszek PawlowiczLeszek Pawlowicz 12/12/2016 at 22:030 Comments

Got an email telling me that the RTI Processor program was throwing up an error at startup concerning a bad conversion from string to double. Threw me for a minute, until I realized that the emailer was from France (thanks, Jean-Roc!). The .lps file loaded by the program when it starts has light positions in string decimal format, where the decimal point character is the standard US ".". In France, that character is a ",", so the program was labeling that string as unconvertible since it had a non-standard decimal point character. This was easy to fix since the subroutine where that problem arises is no longer needed - deleted that, and the problem went away. Also added a check for the ptmfitter.exe program required to generate PTM-format datafiles; if it doesn't find it, it disables the PTM fitting options, and sends you to the website where you can download the needed files. The new RTI Processor executable program is now up in the Files section; the source code will be up shortly.

Discussions