tutorials:basic-spectral-light-modeling
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorials:basic-spectral-light-modeling [2025/06/04 13:39] – MH | tutorials:basic-spectral-light-modeling [2025/06/07 06:21] (current) – MH | ||
---|---|---|---|
Line 292: | Line 292: | ||
<code java> | <code java> | ||
+ | import de.grogra.gpuflux.imp3d.objects.PhysicalLight; | ||
+ | import de.grogra.gpuflux.imp3d.objects.SpectralLight; | ||
+ | import de.grogra.gpuflux.imp3d.spectral.IrregularSpectralCurve; | ||
+ | |||
// definition of the PLD | // definition of the PLD | ||
const double[][] DISTRIBUTION = { | const double[][] DISTRIBUTION = { | ||
Line 378: | Line 382: | ||
- | ==== Sensor nodes ==== | ||
- | |||
- | To monitor light distributions with a scene without interfering, | ||
- | |||
- | Note: The size of the sensor node directly correlates with the probability of got hit by a light ray. For a very small sphere the probability to got hit by a light ray is relatively low, so the number of light rays simulated by the light model needs to be much larger to get repayable results. Therefore, better not to use very small sensor nodes. | ||
- | |||
- | Note: The colour of the sensor node determines which wavelengths should be observed. The default value is white, what stands for monitor all colours. If, for instance, the sensor colour is set to red, only red spectra will be sensed. | ||
- | |||
- | Note: The output of a sensor node is normalized to absorbed radiance per square meter, independent of the actual size of the sensor. | ||
- | |||
- | Note: Sensor nodes can be enabled and disabled for the light model using the LM.setEnableSensors(true/ | ||
- | |||
- | <code java> | ||
- | // create a 5cm, white sensor node | ||
- | Axiom ==> SensorNode().(setRadius(0.05), | ||
- | |||
- | //check what the sensor node has sensed | ||
- | x: | ||
- | Measurement spectrum = lm.getSensedIrradianceMeasurement(x); | ||
- | float absorbedPower = spectrum.integrate(); | ||
- | ... | ||
- | } | ||
- | </ | ||
tutorials/basic-spectral-light-modeling.1749037154.txt.gz · Last modified: 2025/06/04 13:39 by MH