@Caroline_Record wrote:
In the bottom of the doc for ofLight it says that you can choose whether to position your light relative to the camera position or globally independent of the camera position. I tried both and it seems that it is always positioned relative to the camera. How do I set up my light so it stays fixed even when I move the camera?
Both of these yield the same results:
light.enable(); cam.begin(); ofPushMatrix(); animals.at(animalPos).draw(); ofPopMatrix(); cam.end(); light.disable();
And
cam.begin(); light.enable(); ofPushMatrix(); animals.at(animalPos).draw(); ofPopMatrix(); light.disable(); cam.end();
I am displaying a textured model loaded using ofxAssimp, I am using a point light, and I am on 0.9.0
Posts: 4
Participants: 2