Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Topgun on April 27, 2008, 03:22:09 pm

Title: how do you mak a animated glow map?
Post by: Topgun on April 27, 2008, 03:22:09 pm
I am trying to make one by baking a animated matrerial in blender, but I can't find a way to do this.
Title: Re: how do you mak a animated glow map?
Post by: Snail on April 27, 2008, 03:24:32 pm
You use AniBuild (or ACANI) to make an .ani file, then you just name it <texture>-glow... I may be wrong, but AFAIK that should work.
Title: Re: how do you mak a animated glow map?
Post by: Galemp on April 27, 2008, 03:28:33 pm
ANI glowmaps are horribly inefficient and they look awful to boot. Don't use them.

What you need is a texture for each frame of the animation, numbered in sequence. Say, 'texture-glow_0000.tga' 'texture-glow_0001.tga' and so on.

Then you need to write an eff file that tells Freespace how to render it. Call it something like 'texture-glow.eff' and have something like this in it:

Code: [Select]
$Type: TGA
$Frames: 32
$FPS: 80

Then you should be all set.
Title: Re: how do you mak a animated glow map?
Post by: Topgun on April 27, 2008, 03:29:57 pm
yeah, I know that. but what I mean is, how do you make the texture for every animation?
Title: Re: how do you mak a animated glow map?
Post by: Droid803 on April 27, 2008, 03:45:32 pm
yeah, I know that. but what I mean is, how do you make the texture for every animation?
:wtf: exactly like how you make any other texture?

Btw, aren't DDS's textures better than TGAs?
Title: Re: how do you mak a animated glow map?
Post by: Topgun on April 27, 2008, 06:34:32 pm
I am not going to make 50+ frames of the same texture with just 1 layer increasing and decreasing in value.
Title: Re: how do you mak a animated glow map?
Post by: Hellstryker on April 27, 2008, 07:21:07 pm
You have to AFAIK  :(
Title: Re: how do you mak a animated glow map?
Post by: Cobra on April 27, 2008, 07:30:08 pm
I am not going to make 50+ frames of the same texture with just 1 layer increasing and decreasing in value.

You'll have to make a lot of textures for one frame if you want it to be smooth. ;)
Title: Re: how do you mak a animated glow map?
Post by: Topgun on April 27, 2008, 08:08:31 pm
I am trying to make one by baking a animated matrerial in blender, but I can't find a way to do this.
there has to be a way to do it. someone help me out please :(.
Title: Re: how do you mak a animated glow map?
Post by: Droid803 on April 27, 2008, 08:27:09 pm
It's not that tedious to change a value, hit save, change a value, hit save, fifty times. It doesn't take as long as you would think (alright, maybe it does, but its not that hard).
Title: Re: how do you mak a animated glow map?
Post by: JGZinv on April 28, 2008, 12:32:12 am
If you can get a hold of SmartMorph (old ancient freeware) or have a version
of Flash or Adobe Image Ready (comes with PS) then you can auto generate the frames
you need rather than have to em all by hand. Most animated GIF or image utilities might work too.

What you do is take let's say a deck light, you have one image with the light off and one
image with the light on at it's brightest. Then you'd create (depending on program) what is called
a tween - and have the program auto generate the images in between the two source images.

The take that and export the big batch of resulting image/frames as some individual image format like JPG
or BMP that you can convert to what everyone else is telling you to do here.

You can swap the patterns of off and on light with additional tweens to make off/on effects and flashing.
Title: Re: how do you mak a animated glow map?
Post by: Water on April 28, 2008, 12:58:29 am
Animated Procedural Textures in Blender
Second from last
http://www.cogfilms.com/tutorials.html (http://www.cogfilms.com/tutorials.html)

Also Proximus has been used to generate frames
http://www.hard-light.net/forums/index.php/topic,45334.0.html (http://www.hard-light.net/forums/index.php/topic,45334.0.html)
But you may need some math to work it.  ;)

Title: Re: how do you mak a animated glow map?
Post by: Topgun on April 28, 2008, 08:25:00 am
Animated Procedural Textures in Blender
Second from last
http://www.cogfilms.com/tutorials.html (http://www.cogfilms.com/tutorials.html)
I know how to make procedural textures but I don't know how to bake them.
Title: Re: how do you mak a animated glow map?
Post by: Water on April 28, 2008, 03:15:29 pm
I'm not sure why you would want to bake them. Saving the animated texture to a file and then separating out the polygons to a new object and re-uv to use that map would be better. Or am I missing something?
Title: Re: how do you mak a animated glow map?
Post by: Topgun on April 28, 2008, 03:17:22 pm
Saving the animated texture to a file and then separating out the polygons to a new object and re-uv to use that map would be better.
I don't understand what you mean by that. :wtf:
Title: Re: how do you mak a animated glow map?
Post by: Nuke on April 28, 2008, 07:18:22 pm
it would probably be more efficient to make only a partial animation, then use scripting to change the frames around. that way you don't have to store as many frames.

most glow maps on shivan ships simply ramp up and down ad continuum . this effect is not only rather boring but also really inefficient. if you were to script the effect, you could get away with only having half the frames, the effect could ramp up, then the animation would run in reverse for the ramp down. you could take it a step farther and occasionally ramp up half way on a random basis, which would add a bit more variety to the effect.

taking it a step further i believe its now possible to generate rtt glowmaps which would be generated with script on the fly. this reduces the texture count to 1 (plus any other maps you may use as elements which are rendered into the glow map).

combine either meathod with glow points you can make even more effects.
Title: Re: how do you mak a animated glow map?
Post by: Topgun on April 30, 2008, 05:47:09 pm
I don't know lua :(
Title: Re: how do you mak a animated glow map?
Post by: Getter Robo G on May 01, 2008, 07:17:18 am
If it helps, here is the animated glow map for TREK Red bussards (Created by Omniscaper).

I'm hoping to get better ones made in the future for Green and blue warps if anyone is interested in helping(?)...



[attachment deleted by admin]
Title: Re: how do you mak a animated glow map?
Post by: Nuke on May 01, 2008, 01:26:52 pm
I don't know lua :(

neither did i :D