In the first example, you’re correct. The direction (and position for positional lights) depends on the view transform, but not the model transform.
In the second, I don’t know if you’re correct, cause I’m not sure I understand what you mean by constant. Constant relative to what? Anyways, if you place the light in the initialization phase, you will place the light once, and it will remain there. This means, as you move your viewpoint around, the light will appear to follow, and always appear in the same relative position to the viepwoint (like the lights on a car). On the other hand, if you place it as in the first example, the light will stay fixed in world space (like the street lights).
You speak of direction though, not position, but that doesn’t matter. It’s the same.
Originally posted by Bob:
[b]In the first example, you’re correct. The direction (and position for positional lights) depends on the view transform, but not the model transform.
In the second, I don’t know if you’re correct, cause I’m not sure I understand what you mean by constant. Constant relative to what? Anyways, if you place the light in the initialization phase, you will place the light once, and it will remain there. This means, as you move your viewpoint around, the light will appear to follow, and always appear in the same relative position to the viepwoint (like the lights on a car). On the other hand, if you place it as in the first example, the light will stay fixed in world space (like the street lights).
You speak of direction though, not position, but that doesn’t matter. It’s the same.[/b]