Been a while since I used the exporter.
Anyway i tried to render a scene with this new version, and I got an error message, which I never had before.
This scene uses my tabulated spectrum data for water.
Error: Scene parsing error: start_wavelength must be <= 0.7e-6 m (700 nm). (In element 'regular_tabulated', around line 198, column 25)
This is what the exported scene file reads as for the water medium
Code: Select all
<medium>
<uid>9</uid>
<name>MedWater with ISL displacement</name>
<precedence>5</precedence>
<basic>
<ior>1.3300000429153442</ior>
<cauchy_b_coeff>0.0030000000260770</cauchy_b_coeff>
<step_size>0.1000000000000000</step_size>
<absorption_coefficient>
<constant>
<regular_tabulated>
<start_wavelength>0.0000000000000000</start_wavelength>
<end_wavelength>0.0000000000000000</end_wavelength>
<num_values>83</num_values>
<values>0.03250 0.02640 0.02040 0.01800 0.01560 0.01350 0.01140 0.01070 0.01000 0.00940 0.00880 0.00790 0.00700 0.00600 0.00560 0.00520 0.00540 0.00610 0.00640 0.00690 0.00830 0.00950 0.01100 0.01200 0.01220 0.01250 0.01430 0.01300 0.01570 0.01680 0.01850 0.02130 0.02420 0.03000 0.03820 0.04620 0.04740 0.04850 0.05050 0.05270 0.05510 0.05940 0.06540 0.06900 0.07150 0.07430 0.08040 0.08900 0.10160 0.12350 0.14870 0.18180 0.24170 0.27950 0.28760 0.29160 0.30470 0.31350 0.31840 0.33090 0.33820 0.35130 0.35940 0.38520 0.42120 0.43110 0.43460 0.43900 0.45240 0.46900 0.49290 0.53050 0.62290 0.75220 0.86550 1.04920 1.26900 1.52530 1.96240 2.53040 2.76800 2.83380 2.84840 </values>
</regular_tabulated>
</constant>
</absorption_coefficient>
</basic>
</medium>
It appears the exporter is not putting in the correct start and end wavelength numbers. Which are 100 and 700
The same medium output from an older exporter
Code: Select all
<medium>
<name>MedWater_with_ISL_displacement_mid2</name>
<precedence>5</precedence>
<basic>
<ior>1.330000</ior>
<cauchy_b_coeff>0.003000</cauchy_b_coeff>
<absorption_coefficient_spectrum>
<regular_tabulated>
<start_wavelength>3.4e-007</start_wavelength>
<end_wavelength>7.5e-007</end_wavelength>
<num_values>83</num_values>
<values>0.0325 0.0264 0.0204 0.018 0.0156 0.0135 0.0114 0.0107 0.01 0.0094 0.0088 0.0079 0.007 0.006 0.0056 0.0052 0.0054 0.0061 0.0064 0.0069 0.0083 0.0095 0.011 0.012 0.0122 0.0125 0.0143 0.013 0.0157 0.0168 0.0185 0.0213 0.0242 0.03 0.0382 0.0462 0.0474 0.0485 0.0505 0.0527 0.0551 0.0594 0.0654 0.069 0.0715 0.0743 0.0804 0.089 0.1016 0.1235 0.1487 0.1818 0.2417 0.2795 0.2876 0.2916 0.3047 0.3135 0.3184 0.3309 0.3382 0.3513 0.3594 0.3852 0.4212 0.4311 0.4346 0.439 0.4524 0.469 0.4929 0.5305 0.6229 0.7522 0.8655 1.0492 1.269 1.5253 1.9624 2.5304 2.768 2.8338 2.8484</values>
</regular_tabulated>
</absorption_coefficient_spectrum>
</basic>
</medium>