User Tools

Site Tools


tutorials:light-modeling-lm-functions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

tutorials:light-modeling-lm-functions [2025/02/28 21:58] – created MHtutorials:light-modeling-lm-functions [2025/05/24 15:46] (current) barley1965
Line 3: Line 3:
 So far, we only used the light model to obtain the amount of absorbed power for the objects within our scene, but there is more :) So far, we only used the light model to obtain the amount of absorbed power for the objects within our scene, but there is more :)
  
-Node: The following is only implemented for the CPU-based twilight light model of GroIMP and NOT implemented for the GPU-based Flux light model.+Note: The following is only implemented for the CPU-based twilight light model of GroIMP and NOT implemented for the GPU-based Flux light model.
  
 The twilight light model offers further functions, e.g., to obtain the received and transmitted power. The twilight light model offers further functions, e.g., to obtain the received and transmitted power.
Line 35: Line 35:
       println("transmitted = "+LM.getTransmittedPower(x).integrate() +" = "+ LM.getTransmittedPower(x),0x000000);       println("transmitted = "+LM.getTransmittedPower(x).integrate() +" = "+ LM.getTransmittedPower(x),0x000000);
       println("absorbed = "+LM.getAbsorbedPower(x).integrate() +" = "+ LM.getAbsorbedPower(x),0xff00ff);       println("absorbed = "+LM.getAbsorbedPower(x).integrate() +" = "+ LM.getAbsorbedPower(x),0xff00ff);
-      println("hit ount = "+LM.getHitCount(x),0x0000ff);+      println("hit count = "+LM.getHitCount(x),0x0000ff);
  }  }
 ] ]
Line 56: Line 56:
 As usual, the properties can be obtained for the three colour channels induvially or integrated using the //integrate()// function. As usual, the properties can be obtained for the three colour channels induvially or integrated using the //integrate()// function.
  
-Note: For white light, the obtained values should reflect the settings of the used shader - for objects which have received most direct light. When the scene is getting more complex and several reflections involved, and therefore the input light is not white anymore, the results will become a combination of the whole incoming radiation.+Note: For white light, the obtained values should reflect the settings of the used shader - for objects that have received most direct light. When the scene is getting more complex and several reflections involved, and therefore the input light is not white anymore, the results will become a combination of the whole incoming radiation.
  
  
  
tutorials/light-modeling-lm-functions.1740776320.txt.gz · Last modified: 2025/02/28 21:58 by MH