Forum > Resources and Tools
[C++] LightAdder
<< < (4/7) > >>
tehrob:
--- 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? --- End quote --- 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. --- End quote ---
and how it is possible to extend this bounding box?
schlumpf:
--- Quote from: "tehrob" --- --- 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? --- End quote --- 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. --- End quote ---
and how it is possible to extend this bounding box? --- End quote --- http://www.pxr.dk/wowdev/wiki/index.php ... tLK#Header Bounding boxes are at 0x0A0. Not sure which one is relevant, just update both. The first one should be the right one, though.
Heliocratic:
I'm going to try this out and tell you if I used/implemented everything right. I was bummed out when I got Milly's darker nights to find out torches don't actually produce light on their own. Now I have the power to change that, thanks.
Vortalex:
For someone like me who knows absolutely nothing about emitters, knowing what values do what, and what size my values should be, is confusing.
Has anyone got a tool with a helpful interface that can do this? Or if maybe someone could make a picture that details what controls what, and what the outcome looks like?
I'm sorry but this is just too confusing for me.
PhilipTNG:
--- Quote from: "Vortalex" ---if maybe someone could make a picture that details what controls what, and what the outcome looks like? --- End quote ---
So.... you know, there's that search box Up there. Use it sometime. :) The stuff you can find is pretty amazing. Generally if you're thinking about something and you're pretty late in the game, it's possible that others have already discussed and gossiped about it, using that search box can lead to a lot of helpful hints from those of the past. :D :( ;) :)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
|