Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Unknown Target on August 10, 2003, 02:25:59 pm

Title: Glowmapping...
Post by: Unknown Target on August 10, 2003, 02:25:59 pm
I was wondering if it would be possible to add glowmaps as seen in Bridge Commander? Because (no offense), right now, it looks as if the textures were simply brightened, because they don't cast any actual light....
Title: Glowmapping...
Post by: Lynx on August 10, 2003, 02:33:38 pm
Have you checked out the Hyperion Heavy cruiser of TBP? This shows perfect glowmapping. It appears that parts of the hull are lit up by somekind of spotlight, but it's just glowmaps. If you make windows just white blobs, they sure look crappy, but if you add a slight glow around them, they appear to cast light on the hull. It's just a matter how good the glowmaps are.

Or do you want them to cast light onto other objects?
Title: Glowmapping...
Post by: LAW ENFORCER on August 10, 2003, 02:44:49 pm
that would be a good idea... actual head lights
Title: Glowmapping...
Post by: Unknown Target on August 10, 2003, 02:46:14 pm
I'd like a dynamically casted light (NOT light textured).
Oh, and actual headlights would be very kool too :)
Title: Glowmapping...
Post by: Goober5000 on August 10, 2003, 03:11:14 pm
I think you can use glowpoints for that.

EDIT: FYI, glowpoints and glowmaps are different things. :)
Title: Glowmapping...
Post by: Taristin on August 10, 2003, 03:18:30 pm
I just used glare in PSP to make the indows look like they glow...

see? (This was in TS, but it's the same method as the FS engine uses...)

(http://freespace.volitionwatch.com/qm/pub/snipes/fenris.jpg)
Title: Glowmapping...
Post by: FreeTerran on August 10, 2003, 03:23:23 pm
Cool how have you make the glow lights in truespace ?
Title: Glowmapping...
Post by: Unknown Target on August 10, 2003, 03:25:58 pm
Looks good, but still not QUITE BC. For instance, those windows don't cast any light on the parts of the ship around it
Title: Glowmapping...
Post by: Bobboau on August 10, 2003, 03:30:44 pm
you can make glow maps that look like that

that is why glow maps are described as a version of the texture that is unlit, the texture artist is responsible for ensureing that the secondary iluminations are done corectly
Title: Glowmapping...
Post by: Taristin on August 10, 2003, 03:33:10 pm
Quote
Originally posted by FreeTerran
Cool how have you make the glow lights in truespace ?


I cloned the body of the fenris and replaced the tesxtures with the glow maps and a black filter...

For the BC look, you'd have to add a slight white glow to the textures around the windows. It'd be a pain for tiled textures unless you editted the pof.
Title: Glowmapping...
Post by: Bobboau on August 10, 2003, 03:36:29 pm
you should use the alpha chanels, there better looking and working
Title: Glowmapping...
Post by: Taristin on August 10, 2003, 03:44:16 pm
How do you mean? I'm saying it like texture the surrounds of a window, and the panels horizontal to it (  |--> __  )  the same texture, just named differently so you could put the -glow tile on it, and have a glow spot for the window's lights...
Title: Glowmapping...
Post by: Bobboau on August 10, 2003, 03:52:08 pm
I was talking about you're TS rendering method, rather than useing two models one with a filter transparency, you should use one model and aply multable layers of each of the shader chanels, though it would require diferen't maps as you have now
Title: Glowmapping...
Post by: Taristin on August 10, 2003, 03:55:02 pm
Oh, I tried something like that, it didn't work out quite as well as I had hoped.

I layered the texture with the glowmap, but it only made the surroundings darker, and the windows still looked lame. This was the easiest way I found to do it, just had to make the coned shell a bit bigger than the original...

Edit: Oooh, ok. I re-read... do you mean a seperate red, green, and blue color texture?
Title: Glowmapping...
Post by: Bobboau on August 10, 2003, 04:37:43 pm
basicly invert the colors of the glow map and apply them as I think you did and it should turn out better, in TS's alpha chanels darker means more
Title: Glowmapping...
Post by: Taristin on August 10, 2003, 04:46:38 pm
Oh. I did not know that. I'll try it after I try your specular build.
Title: Glowmapping...
Post by: Nico on August 10, 2003, 07:20:34 pm
Quote
Originally posted by Unknown Target
Looks good, but still not QUITE BC. For instance, those windows don't cast any light on the parts of the ship around it


that can be done with just more work on the map.
on the case of the fenris, they're just windows, they won't cast light around them on the hull anyway.
Title: Glowmapping...
Post by: Taristin on August 10, 2003, 07:29:28 pm
Hush, it's supposed to look cool, and it does.

...and I can try to explain it off as either slighly recessed windows, or a slight fog in space that you can barely detect. So :p
Title: Glowmapping...
Post by: Nico on August 10, 2003, 07:35:04 pm
Quote
Originally posted by Raa Tor'h
Hush, it's supposed to look cool, and it does.


dunno, depends. to keep going on with the fenris exemple, I prefer to see only the windows, and no hull around. it's more moody, I think.
Title: Glowmapping...
Post by: Flipside on August 10, 2003, 08:05:40 pm
I create glowmaps by getting the main texture, turning brightness right down, and contrast right up. Edit out the unwanted highlights and then applying a glow filter to what is left, it seems to work well most of the time :)

Flipside :)
Title: Glowmapping...
Post by: Taristin on August 10, 2003, 08:33:20 pm
Quote
Originally posted by Venom


dunno, depends. to keep going on with the fenris exemple, I prefer to see only the windows, and no hull around. it's more moody, I think.


Yeah, but I liked the effect of having it only partially lit from the back, and seeing the lights on the front. If it was your way, it wouldn't be bad, but I tried it, and didn't really like the effect.
Title: Glowmapping...
Post by: Bobboau on August 10, 2003, 08:40:53 pm
in TBP open I modified a lot of textures thak make much use of this effect
Title: Glowmapping...
Post by: Taristin on August 10, 2003, 08:42:52 pm
Just windows? I could definately see a use for it, but I wasn't going for it in that render. I made that render for fun, not for the purposes of this thread... Just a funny coincidence 'sall
Title: Glowmapping...
Post by: Nico on August 11, 2003, 06:01:41 am
Quote
Originally posted by Raa Tor'h


Yeah, but I liked the effect of having it only partially lit from the back, and seeing the lights on the front. If it was your way, it wouldn't be bad, but I tried it, and didn't really like the effect.


it of course would depends for more than just "what ship is it?". on your Fenris, I'd do what you say around the red lights, and I'd try and make the windows that are adjacent to a wall perpendicular to them lighten them a bit. but that's it, overdoing things is not always good.
Title: Glowmapping...
Post by: Taristin on August 11, 2003, 08:39:32 am
Yeah. That would look better, but it's a bit more work.