Nexus Modding > Mod Development / Released Mods
Weapon lightsources
Arparso:
Odd... when I tried it yesterday in my Freespace mod I didn't see anything, but with regular Nexus ships and weapons I see the lighting effect. After having a look at the effect with PIX, I'd guess, Nexus uses the empty "lighting slot" of the sun to create that weapon lighting effect. That would explain, why we don't see any of that lighting when fighting in sunlight.
Nexus seems to use a single-pass lighting system with support for one or two directional lights, depending on the number of suns. Only if the current scene is not affected by sunlight, because it's hidden behind a moon or planet, the sun lighting slot gets available for local light sources. That doesn't give a realistic lighting result, because weapon lighting will be treated as directional light instead of local, but in the heat of battle noone notices that anyway.
jstubbles:
Even with a single light source (sun) weapon effects to do create light sources. In our BSG mod, the current systems only have 1 light source, but the weapons have no lighting effects :(
I guess it's just another one of those horrible Nexus limitations :'(
Arparso:
--- Quote from: jstubbles ---Even with a single light source (sun) weapon effects to do create light sources. In our BSG mod, the current systems only have 1 light source, but the weapons have no lighting effects :(
--- End quote ---
That's because Nexus uses the "single light source"-shader, if there's only one sun in your system, so there's no room for weapon lights unless you're in a moon's shadow. Nexus doesn't do multiple lighting passes on the geometry, so that's the only light you'll ever get in this kind of star system. The "two light sources"-shader is only being used in systems with two or more stars.
That's actually good news, because if you create a twin-star system and hide one of the stars behind a planet or moon, you'll actually get weapon lighting effects AND sunlight at the same time. Obviously that puts some limitations on your mission background design and care needs to be taken to not reveal the twin-star system when looking at nearby planets and such, but at least it IS possible to get both weapon lighting and sunlight at the same time.
GeoModder:
Couldn't it be possible to hide a lightsource (a tiny sun) in a planet? If it has the same orbital parameters as the planet it is hiding in nobody is the wiser except when opening the solar system builder.
Arparso:
Depends. I'm not sure, if the planet still casts a shadow, if the sun is hidden inside of it. If the sunlight "escapes" the planet's body, we'd have regular twin star lighting conditions without weapon lighting. Someone would need to test this first. ;)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version