Battlezone Universe

Battlezone Universe => Battlezone 2 => Maps and Modding => Topic started by: spiritplumber on January 26, 2007, 04:47:52 AM

Title: Glow textures?
Post by: spiritplumber on January 26, 2007, 04:47:52 AM
http://www.spiritplumber.tzo.com/BZTron/tronguy1.PNG

how's it look? I'm trying to replicate the tron "glow", but I'm not sure how to use glow textures... what do I do with them exactly? Do I have to "call" them when the msh gets generated?

Please help!

(that's without the glow texture btw)
Title: Re: Glow textures?
Post by: Zero Angel on January 26, 2007, 07:57:03 AM
the trick is to use the filenames. For example if your model is referencing a texture called isdf00.pic than the isdfc0.pic will be the glow texture that is overlayed on top of the regular texture.

whatever00.pic tends to be a normal texture
whateverc0.pic is a glow texture
whatever00_bump.pic is a bumpmap texture

You shouldnt have to modify the ODF or XSI files, simply create a 32-bit image (32-bits means it has transparancy) and save it as whateverc0.pic

For an example, take a look at my ISDF teamcolor update (http://www.bzuniverse.com/~zeroangel/misc_files/teamcolorupdate.zip) for 1.3 which uses glow textures to mask the 'normal' colors when the ships are recolored in multiplayer.
Title: Re: Glow textures?
Post by: spiritplumber on January 26, 2007, 08:50:53 AM
thanks!

Is it a0 or c0?
Title: Re: Glow textures?
Post by: Lizard on January 26, 2007, 10:38:22 AM
a0 is what you want

c0 is for multiplayer team colour skins ( basically a white version of the normal skin that a colour overlay can be applied to ) .



a0 and c0 work in conjunction in multiplayer, if an a0 skin is present the alpha channels in the a0 texture are used to override the colouring on the c0 skin to give the effect of selectively applied team colours.


so it goes like this :


myskin00.pic - regular skin

myskinc0.pic - teamcolour skin

myskina0.pic - glowskin

and you can also have

myskin00_bump.pic - regular bump map texture

myskinc0_bump.pic -  multiplayer team colour bump map texture

myskina0_bump.pic - glowskin bump map texture .


in 1.2 you need to specify the glowtexture name in the ODF under [GameObjectClass], for example from the scion scout :

glowTexture = "fvscoua0.pic"


in 1.3 ken fixed it so that the game auto detects glow textures in the same way that it does teamcolour skins, so you no longer have to specify the name in the ODF.


:lol: not confusing at all is it .......
Title: Re: Glow textures?
Post by: Dianoga4 on January 27, 2007, 12:09:02 AM
So Lizard, are you saying that in 1.3, if I have a model with the texture named "body.pic" for example and the model works and looks good and all that. If I simply add another texture called "bodya0.pic" to the same folder, the game will automatically know to use it for a glow texture? And does this work with other formats like .png and stuff?

Dia
Title: Re: Glow textures?
Post by: Commando on January 27, 2007, 12:11:33 AM
I would use body00.pic.  Then bodya0.pic for the glow texture.

With your setup, boay.pic might be the glow texture.  The next to the last character determines the glowtexture.

Sorry dump typo.

body.pic = Regular Texture
boay.pic = GlowTexture

The placement of that a is very important.  The next to last character before the . must be an a.
Title: Re: Glow textures?
Post by: Avatar on January 27, 2007, 12:54:27 AM
Um, do you know how glowtextures are set up?  How to make one?

In case anyone reading this doesn't know...

Glowtextures work with an "alpha channel".  You need a paint program that supports alpha channels, some have been mentioned in other threads.  You also need a texture format that supports alpha channels.  PIC does this, as does TGA.  If you use TGA don't use the compressed version.

Let's say you want everything blue in your texture to glow.  You'd do whatever is necessary to see the channels of your texture, the Red, Green and Blue parts of the texture.  (RGB, see?)  Then you copy the Blue channel and name it "Alpha".  The paint program might name it "Alpha1", that's OK.  It'll also be grey shades, which is OK.

You'll notice the blue areas of the texture are brighter than the rest in the alpha channel, but that you can still see the other colors as greys.  That's because most every color has a little of each in it.  You want to black out everything but the Blue areas in the Alpha channel.  Everything else should be black, so that all you're seeing is a grey version of the blue in the texture.

That's it.  The engine will make anything other than black glow, and it'll glow brighter the whiter the alpha channel area is.  Name the texture XXXXaX.TGA or PIC and you're good to go.

-Av-
Title: Re: Glow textures?
Post by: Dianoga4 on January 27, 2007, 02:13:35 AM
Thanks Avatar and Commando, this will come in handy.

Dia
Title: Re: Glow textures?
Post by: spiritplumber on January 27, 2007, 05:17:25 AM
Thanks!!!!


This should probably be made a sticky somewhere... thanks for the info, I get the tron glow a lot better now!


In single player, can I activate the teamcolor skin? (I have a lot of units that are the same other than their glow is red or blue)
Title: Re: Glow textures?
Post by: Avatar on January 27, 2007, 11:48:49 AM
In MP it's a console command...  game.teamcolors toggles them.  I don't think it does anything unless you're in MP... but it might be a DLL thing.  :)

-Av-
Title: Re: Glow textures?
Post by: Lizard on January 27, 2007, 10:22:19 PM
Quote from: spiritplumber on January 27, 2007, 05:17:25 AM
Thanks!!!!


This should probably be made a sticky somewhere...



I agree, if there are any other threads that are of value like this, if someone points me to them I will make those sticky aswell.
Title: Re: Glow textures?
Post by: Avatar on January 27, 2007, 11:30:02 PM
Ack...  I'd have typed prettier if'n I'da kno'd that...  :)

Instead of sticky-ness maybe there should be a chapter about such things in the most excellent Modlog? 

-Av-
Title: Re: Glow textures?
Post by: Dianoga4 on January 29, 2007, 11:44:28 PM
Finally got these to work and figured out what I was doing wrong lol. I was trying to use a bitmap as the regular texture and a tga as the alpha one and it wouldn't let me do that. I tried using png's for everything on the model and it worked. I used Blender to make the glow texture and it worked great. I don't know how to do crap in Photoshop and PSP but Blender got the job done. :-D

Dia
Title: Re: Glow textures?
Post by: simon on February 02, 2007, 10:02:06 PM
That pilot looks good but maybe you could get him to lose the helmet and show his face like in the movie make a helmet for him
like the one he wore in the movie you know the one that glows.


Sorry I had to post something unrelated to the topic but this is the only topic with that picture uploaded so I couldn't think of
anywhere else to say this. All I can say about your texture glow problem is good luck with the textures.
Title: Re: Glow textures?
Post by: Red Spot on February 03, 2007, 03:01:14 PM
perhaps a bit slow but just to clear on it ...

what I'm making from this is that I basicly by using sort of a "dark/light" texture as skin and than a (kinda)"all apha" as glow texture can make 1 race look very diff. when teamcolors are applied?

basicly meaning like you now have that the ISDF go "all" red or blue I could make "only" the orange part go red/blue and leave the grey/etc exactly the same?


G
Title: Re: Glow textures?
Post by: Lizard on February 03, 2007, 06:58:05 PM
Quote from: Red Spot on February 03, 2007, 03:01:14 PM
perhaps a bit slow but just to clear on it ...

what I'm making from this is that I basicly by using sort of a "dark/light" texture as skin and than a (kinda)"all apha" as glow texture can make 1 race look very diff. when teamcolors are applied?

basicly meaning like you now have that the ISDF go "all" red or blue I could make "only" the orange part go red/blue and leave the grey/etc exactly the same?


G


yes that sounds like you've got it.
Title: Re: Glow textures?
Post by: mrtwosheds on February 03, 2007, 07:24:36 PM
BUT....
It can look really BAD with full graphics and a low light map, as the glow parts of the model are on full brightness all the time, while the rest can go almost black. Tried  to get team colors off of my Dalek "balls" like this, It looks awfull at night, you can see the illuminated parts from miles away.
It looks ok when lighting is off.
Title: Re: Glow textures?
Post by: spiritplumber on February 03, 2007, 08:10:01 PM
I'm TRYING to get that effect for my TRON stuff! Any help greatly appreciated :)
Title: Re: Glow textures?
Post by: mrtwosheds on February 03, 2007, 10:45:11 PM
Its easy, you get a half decent prog like photoshop. open your original texture yourskin00.pic place the mask over bits to be illuminated and save the mask as an alpha channel, save the texture as yourskina0.pic, load into bz and watch it glow.
Title: Re: Glow textures?
Post by: spiritplumber on February 03, 2007, 10:52:32 PM
So.... the glowy bits have to be full white AND full alpha?
Title: Re: Glow textures?
Post by: Avatar on February 03, 2007, 10:59:30 PM
The parts you want to glow should be shown as white in the alpha channel.  The brighter the white the brighter they'll glow.  So, grey on the alpha channel will glow a little, and pure white will glow a lot.

-Av-

Title: Re: Glow textures?
Post by: mrtwosheds on February 04, 2007, 05:35:18 AM
The other way to make glowing bits on models.
Requires the emmisive option (In threed) to be set for a whole frame, like the earlights on my avatar pic.
This can be done without threed, by simply adding __e to the end of the frame/mesh name (in notepad)
Title: Re: Glow textures?
Post by: Avatar on February 04, 2007, 12:43:17 PM
Funny, isn't it, how you can do roughly the same thing two different ways?  The glow textures were for the Scions, and the emitter bits for the ISDF, and to me the end result looks the same...  The only difference I see is that the emitters don't have a range, while the glow textures can go from a slight glow to full out.

It's almost like Pandemic split completely in two, one side developing each race, and then they merged them together...   :)

-Av-
Title: Re: Glow textures?
Post by: Red Spot on February 05, 2007, 11:09:33 PM
yet an other few things to play with ..  8-)

Thanks guys ..;)


G
Title: Re: Glow textures?
Post by: Dianoga4 on February 22, 2008, 12:24:14 AM
I put a post here a couple of days ago with a picture. Did it get deleted or did the post not go through or something?

Dia
Title: Re: Glow textures?
Post by: Zero Angel on February 22, 2008, 12:51:29 AM
Server move. A lotta stuff got wiped. Avatars are missing too, and its unlikely that we will be getting them back. -- Don't ask.
Title: Re: Glow textures?
Post by: Dianoga4 on February 22, 2008, 01:12:21 AM
Yea I read some about that, thought I had posted afterwards but maybe not anyways thanks for the response Zero.

Dia