User Tools

Site Tools


tutorials:light-modeling-first-steps

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
tutorials:light-modeling-first-steps [2025/06/02 19:16] MHtutorials:light-modeling-first-steps [2025/06/02 20:13] (current) MH
Line 21: Line 21:
 In GroIMP/XL, this can be done as following: In GroIMP/XL, this can be done as following:
  
-For the twilight (CPU-based) implementation:+For the Twilight (CPU-based) implementation:
  
 <code java> <code java>
Line 60: Line 60:
 Direct after saving the code, the light model will be executed and the following will be printed in the XL Console Window: Direct after saving the code, the light model will be executed and the following will be printed in the XL Console Window:
  
-{{ :tutorials:console_output.png.png?direct&400 |}}+{{ :tutorials:console_output.png?direct&500 |}} 
 + 
 + 
 +While in the above example the object is black, what means that all incoming radiation is absorbed (and nothing reflected), the line below will shange the object colour to some orange 
 + 
 +<code java> 
 +  Axiom ==> Box(0.1,1,1).(setShader(new RGBAShader(1,0.5,0))) M(2) RL(180)  
 +</code> 
 + 
 +what means that all of red and 50% of green are reflected while all blue radiation is absorbed as the resulting output confirms. 
 + 
 + 
 +{{ :tutorials:console_output2.png?direct&500 |}}
  
  
tutorials/light-modeling-first-steps.txt · Last modified: 2025/06/02 20:13 by MH