help
help > Set light position in script--possible bug?
Sep 5, 2017 05:09 PM | ajack
Set light position in script--possible bug?
Hi there,
I am using the most recent version of MRIcrogl for Mac, MRIcroGL 32-bit OSX (Cocoa) 14 July 2017.
Having a little trouble setting the light position via script. Based on what I see in the lower left hand window when I adjust the light position manually with sliders, I used the following in my script:
SHADERADJUST('Light', -180/46);
The script including this parameter successfully compiles and executes but doesn't adjust the light position (visually, no change and in lower left window, it stays on the default, 'Light', 0/70).
However, if I then click once on the left Light slider knob without moving it, the rendering changes to the correct lighting position (without changing the readout in the lower left window, which stays at 'Light' 0/70). If I then move one of the other sliders (say, specular), the lower left window updates to what I put in the script, 'Light' -180/46.
Have any thoughts about what might be going on or how I might correct this?
Thanks,
Allison
I am using the most recent version of MRIcrogl for Mac, MRIcroGL 32-bit OSX (Cocoa) 14 July 2017.
Having a little trouble setting the light position via script. Based on what I see in the lower left hand window when I adjust the light position manually with sliders, I used the following in my script:
SHADERADJUST('Light', -180/46);
The script including this parameter successfully compiles and executes but doesn't adjust the light position (visually, no change and in lower left window, it stays on the default, 'Light', 0/70).
However, if I then click once on the left Light slider knob without moving it, the rendering changes to the correct lighting position (without changing the readout in the lower left window, which stays at 'Light' 0/70). If I then move one of the other sliders (say, specular), the lower left window updates to what I put in the script, 'Light' -180/46.
Have any thoughts about what might be going on or how I might correct this?
Thanks,
Allison
Threaded View
Title | Author | Date |
---|---|---|
ajack | Sep 5, 2017 | |
Chris Rorden | May 7, 2018 | |