How to fix light position with rotating cube

You want a light that moves with objects but not in the room ? I think I miss what you want to do.

Hi again,

Thanks for the tips. In fact, that’s exactly what I tried and it worked! :slight_smile:

Its surprising how many of these OBJ loaders for Android platform on the net are wrong. I had to do exactly what you mentioned here and it works now as expected.

Once again, your tips were much appreciated. :slight_smile:

You want a light that moves with objects but not in the room ? I think I miss what you want to do. [/QUOTE]

I simply want to simulate an aquarium tank for this particular project. Lots of fishes will be swimming around within the tank but the light source stays exactly where it is. If I place the light placement code right before draw, the lights will appear to be moving around with the fishes which isn’t exactly what I want. In my case, the camera doesn’t move at all.