![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
![]() |
#1 |
Rear Admiral
![]() |
Starshell illumination - or rather, lack thereof
Anyone have any idea of a shader file associated with the starshell illumination? I spent some time looking the associated dat files with starshells and its effects, and if theres any setting therein (particles.dat, materials.dat), that makes the illumnation.....illuminate, i didn't see it. Which leads me to believe im looking for a shader file.
Trouble is, theres so many to choose from. ![]() |
![]() |
![]() |
![]() |
#2 |
Silent Hunter
![]() Join Date: Apr 2007
Posts: 4,404
Downloads: 29
Uploads: 0
|
I have a stupid q for ya Ducimus - is this in regards to getting player usable shells to work? I have noticed that the enemy starshells seem to function. If so, why not just use their starshells as a baseline and then change em to fit your need?
__________________
Good Hunting! Captain Haplo ![]() |
![]() |
![]() |
![]() |
#3 |
Rear Admiral
![]() |
![]()
Did that.. sorta. I loaded the player deck gun with starshells so i could test. Player and AI use the same thing as starshells go. I just wanted it to light up the sea like it did in Sh3.
|
![]() |
![]() |
![]() |
#4 | |
Ocean Warrior
![]() Join Date: Jan 2008
Posts: 2,909
Downloads: 77
Uploads: 11
|
![]() Quote:
Having said that, would the starshell object not need to have an omnidirectional light source attached to it, rather than it being controlled from a shader? |
|
![]() |
![]() |
![]() |
#5 |
Ocean Warrior
![]() Join Date: Jan 2008
Posts: 2,909
Downloads: 77
Uploads: 11
|
![]()
OK, I finally had time to take a look. Very strange.
Node @Flare in particles.dat is attached to Light node - Flare_omni in materials.dat. This node is set up as an omni directional light sourcce. This is made up of a mix of three graphics, blured_spikey_star_add, blured_sharp_star_add and expl_hallo. The only difference that was obvious to me was the opacity settings of the files was 255, whereas the opacity for lightning was 0. I tried various things, but nothing see,ed to have an effect. As far as pixel shaders goes, the only files I found that mention omnidirectional lights are in the InteriorIllumination folder. Lightning does light up the whole scene doesn't it? Come to think of it, I can't remember seeing any effects that light up the sea / ship at night. |
![]() |
![]() |
![]() |
|
|