View Full Version : Making Hospital Ships Light Up
Marhkimov
11-29-05, 05:00 AM
Does anyone know how these building windows are lit up at night?
http://img211.imageshack.us/img211/2007/15jn2.jpg
I reason that if we know how these function, then we can also make hospital ships have "lighted" windows and whatnot.
So does anyone think they can give it a shot?
It's an overlay texture, basically the night time texture is the same as the daylight one except that everything except the lit up windows is an alpha (transparent) layer and the texture is then unlit.
I don't know how to apply this to ships, or if its hardcoded.
The overlay textures are in some dat or other, maybe harbor_kit or something.
Type941
11-29-05, 05:22 PM
That would be one beautiful and awesome sight in dark seas - a fully lit up ship... Than watch it sink and lights blink on and off? how evil. :huh: :arrgh!: :nope:
In fact, I believe this was already brought up before, when someone asked if it's possible to have ships travel with their identification lights. And nothing ever came our of that, so I reckon it's impossible at this point.
Marhkimov
11-29-05, 05:42 PM
In fact, I believe this was already brought up before, when someone asked if it's possible to have ships travel with their identification lights. And nothing ever came our of that, so I reckon it's impossible at this point.
I saw the old thread, but I don't know if any modders tried to look for results... This time maybe someone might give it a try...
iambecomelife
11-29-05, 06:14 PM
That would really be a nice touch. I wanted to do it for the Hospital Ship mod, as well as another mod in the works, but it's beyond my ability :nope: .
The key would be to look in harbor_kit.dat or wherever these textures are stored, comparing to another land object dat and see if there's some sort of value that defines the night skin.
If there is, some advanced modder might be able to hack into a ship .dat, somehow - it could also be in the model material settings.
Not my area of expertise however.
Marhkimov
12-01-05, 04:41 PM
Not my area of expertise however.
Not mine either...
timetraveller
12-01-05, 07:44 PM
I had a look.
Some of the building textures in the Harbor_kit.dat come with a night overlay, like Orgy mentioned. Each night overlay file is also referenced in the Harbor_kit.dat file.
Unpack the Harbor_kit.dat and you can see 5 textures, each having night counterparts. Kit_01.tga + Kit_01_N.tga (that's the night counterpart for Kit_01), through Kit_05.tga/Kit_05_N.tga.
Unfortunately, ships, subs, planes don't have a night version of their texture. The only thing I could come up with was the dynamic lighting and shadows, but not sure how to tweak that stuff, or if it would make any "night" difference anyway. They all use a common reflected light source, even the ocean, and I suspect it doesn't even work at night, or is greatly muted then.
Maybe another way will be discovered.
TT
Kit_01 example Day/Night
http://img223.imageshack.us/img223/8328/night9er.gif
coronas
12-01-05, 08:25 PM
could be putting the light of the lighthouses in ships?
Marhkimov
12-01-05, 08:28 PM
could be putting the light of the lighthouses in ships?
Yeah, isn't this possible?
I thought I saw Sergbuto do this?
coronas
12-01-05, 09:01 PM
....Another sugestion: On top of some structure (a mast, funnel, bridge)
Marhkimov
12-01-05, 09:05 PM
....Another sugestion: On top of some structure (a mast, funnel, bridge)
bow, stern, etc... any light is better than no light.
iambecomelife
12-02-05, 10:05 PM
I have no idea how to work on the alpha channel, but I may look into it. I had a workaround for this planned: having an invisible enemy unit attached to the hospital ship, either sailing parallel or spawning in the same group (if this is possible). This would "alert" its sensors, causing the large number of searchlights to stay on. I put together a mission last night where a German hospital ship encountered a British convoy at night, and the hospital ship looked quite spectacular all lit up - at least until the escorts blew her out of the water.
Can anyone reccomend a tutorial for working with Alpha channels? I think I'd rather do it that way than with the complicated scheme above.
timetraveller
12-04-05, 10:11 AM
iambecomelife,
There is a great freeware program out there called dxtBMP which makes working on images with alpha channels a snap. It was originally written for the flight sim community, but works with any DDS or TGA graphic as a front end program for editing them.
Get it at:
http://www.mnwright.btinternet.co.uk/
Click on the dxtBMP button at the bottom of the page to take you to the right page.
The idea behind this program is you open the DDS or TGA file into it, and then you can send the graphic itself or its alpha channel to your existing graphic editing program. The graphic or alpha sent is in bitmap (BMP) form, so almost any graphic editing program will work.
After modifying the graphic or alpha channel, you 'save' the BMP (it goes to a temp file - don't use 'save as'), go back to dxtBMP, and retrieve it. From dxtBMP, you can then easily resave the DDS or TGA.
I've used dxtBMP for several years now, using it on many different game's graphics. It works magic with a simple companion image editing program. It avoids the weirdness and complexity of working with alphas in Photoshop or PaintShopPro which are guaranteed to confuse.
Good luck.
TT
coronas
12-05-05, 03:06 PM
Same problem in CFS 3.This treat is interesting, Wish can help!
http://www.sim-outhouse.com/sohforums/showthread.php?t=9590
iambecomelife
12-05-05, 08:01 PM
iambecomelife,
There is a great freeware program out there called dxtBMP which makes working on images with alpha channels a snap. It was originally written for the flight sim community, but works with any DDS or TGA graphic as a front end program for editing them.
Get it at:
http://www.mnwright.btinternet.co.uk/
Click on the dxtBMP button at the bottom of the page to take you to the right page.
The idea behind this program is you open the DDS or TGA file into it, and then you can send the graphic itself or its alpha channel to your existing graphic editing program. The graphic or alpha sent is in bitmap (BMP) form, so almost any graphic editing program will work.
After modifying the graphic or alpha channel, you 'save' the BMP (it goes to a temp file - don't use 'save as'), go back to dxtBMP, and retrieve it. From dxtBMP, you can then easily resave the DDS or TGA.
I've used dxtBMP for several years now, using it on many different game's graphics. It works magic with a simple companion image editing program. It avoids the weirdness and complexity of working with alphas in Photoshop or PaintShopPro which are guaranteed to confuse.
Good luck.
TT
Thanks. I downloaded it but I don't know what you do to make a part of the texture luminescent. I'll keep working on it, though.
Has anyone done this before?
Any progress on this one?
I got 1 question/suggestion: Can the searchlight be made so that they just point forward and are lit all the time? Maybe add a searchlight to the Hospital ship?
Sry if this sounds stupid, I`m not a texturer/modder. :oops:
Paajtor
12-21-05, 01:30 PM
Stupid question: maybe you can try to use the stars as lights? Just stick 'em to the ship? :oops:
Type941
12-21-05, 01:55 PM
Stupid question: maybe you can try to use the stars as lights? Just stick 'em to the ship? :oops:
:rotfl:
:hmm:
Paajtor
12-21-05, 03:25 PM
Well, dunno LOL. :D
I have no idea what makes the starmap overhead.
Is it a bitmap?
Or is it the LightSpot.tga-file (located in ...SilentHunterIII\data\Misc)?
I thought it might be interesting, since the stars flicker a little...what thingy makes them flicker?
P.s. I'm clearly a nOOb at this. :arrgh!:
Hartmann
12-21-05, 05:47 PM
Stupid question: maybe you can try to use the stars as lights? Just stick 'em to the ship? :oops:
I think that stars are coordinates in the sky sphere. :88) , perhaps stored in some file with the number of pixels for every star and his position.
It must be a fixed coordinates, not random, because the constellations are easy to see and in the correct positions (orion, casiopea, ...) but with a low number of stars.
Some things like this, or moon reflections are very poorly implemented in the game .. :shifty:
Paajtor
12-21-05, 07:02 PM
...going slightly OT here: do you think we can give the starmap more detail?
I'd love to see the milkyway. :ping:
P.s. the file I was looking for, is Senin.tga, in the same folder.
Anachronous
03-24-06, 09:04 PM
Anything more on this?
Tikigod
03-24-06, 09:24 PM
http://www.subsim.com/phpBB/viewtopic.php?t=49308&postdays=0&postorder=asc&start=0
I just had a passing thought on this... has anyone tried to apply the "window light" effect on the current models just to see how they would look?
Maybe it won't be visible in the daylight hours and would be there once the sun is down... :hmm: of course it could ruin the look of the ship (or give it away at unrealistic ranges) too.
Just a thought,
Pdubya
Tikigod
03-26-06, 12:03 AM
I just had a passing thought on this... has anyone tried to apply the "window light" effect on the current models just to see how they would look?
Maybe it won't be visible in the daylight hours and would be there once the sun is down... :hmm: of course it could ruin the look of the ship (or give it away at unrealistic ranges) too.
Just a thought,
Pdubya
Who do you think we are? Thomas Kinkade?
/whois Thomas Kinkade
:hmm:
Tikigod
03-26-06, 06:55 AM
/whois Thomas Kinkade
:hmm:
he is an american painter...he is called the "painter of light" he does the sort of illusion deal with his paintings... that change from day to night....like windows and lights appear to illuminate if you lower the light levels in your home...lights in room =on painting looks like it is daytime.....lower the lights or make it darker in room - paintings look like they are at night....lights on cars, windows, etc light up while rest of painting is remains dark...
go here you will see:
http://www.thomaskinkade.com
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.