Quote from: "natrist"I have noticed that the lighting disappears if you get the camera away from the light source.Is this caused by a bug in your application or the game client itself?It is a bug in the application: In the m2 header, there is a bounding box used to determine if the client needs to draw it. This is also used to determine if light sources from that model are used. When adding the light, the box needs to be extended to contain the maximum range of the light. If you don't, you can only see the light as long as at least a pixel of the bounding box is visible.
I have noticed that the lighting disappears if you get the camera away from the light source.Is this caused by a bug in your application or the game client itself?
Quote from: "schlumpf"Quote from: "natrist"I have noticed that the lighting disappears if you get the camera away from the light source.Is this caused by a bug in your application or the game client itself?It is a bug in the application: In the m2 header, there is a bounding box used to determine if the client needs to draw it. This is also used to determine if light sources from that model are used. When adding the light, the box needs to be extended to contain the maximum range of the light. If you don't, you can only see the light as long as at least a pixel of the bounding box is visible.and how it is possible to extend this bounding box?
if maybe someone could make a picture that details what controls what, and what the outcome looks like?
So.... you know, there's that search box Up there. Use it sometime.
http://www.wowdev.wiki/index.php?title=M2/WotLK#HeaderBounding boxes are at 0x0A0. Not sure which one is relevant, just update both. The first one should be the right one, though.
care to elaborate on "couldn't seem to find anything"?
It likely is 0-1, not 0-255.