Page 1 of 1
Auto Emit Texture
Posted: 05 Sep 2010, 06:58
by daryl
Hola,
i would like to know how i can do emit texture.
I need to "self-illuminating" some parts of an object for example the neon or other parts.
How can I do this?
thx
Re: Auto Emit Texture
Posted: 05 Sep 2010, 07:15
by Hobo Joe
Manually. afaik Spring can't cast light from textures, and it certainly wouldn't 'glow'.
Re: Auto Emit Texture
Posted: 05 Sep 2010, 09:26
by Pressure Line
s3o textured units can have a sort of glow on them.
hard to see, but the blue part of the engines have a bit of glow to them, but its not like a dynamic light or anything.
Re: Auto Emit Texture
Posted: 05 Sep 2010, 14:27
by daryl
Pressure Line wrote:s3o textured units can have a sort of glow on them.
hard to see, but the blue part of the engines have a bit of glow to them, but its not like a dynamic light or anything.
yes it's ok!
how can you do this??
manually ? painting the texture with a light color + gaussian effect??
i did this:
But i would do this

Re: Auto Emit Texture
Posted: 05 Sep 2010, 14:36
by thesleepless
you use the red channel from texture2 to control the self-illumination.
from
http://springrts.com/wiki/Units:Textures :
"Red values are glow. The more red in a given pixel, the more glow it will have, overriding the light levels in a scene. A white Texture1 pixel with a totally red Texture2 pixel will always be completely white, no matter what."
Re: Auto Emit Texture
Posted: 05 Sep 2010, 15:52
by rattle
someone write us up a glow shader
Re: Auto Emit Texture
Posted: 05 Sep 2010, 17:21
by daryl
thesleepless wrote:you use the red channel from texture2 to control the self-illumination.
from
http://springrts.com/wiki/Units:Textures :
"Red values are glow. The more red in a given pixel, the more glow it will have, overriding the light levels in a scene. A white Texture1 pixel with a totally red Texture2 pixel will always be completely white, no matter what."
can you learn me how create the red alpha channel please?
so for the texture 1 i use DXTbmp to make texture + alpha ( for colors)
i tryed to use DXTbmp for texture 2 but don't work...
what do you use?
Re: Auto Emit Texture
Posted: 06 Sep 2010, 06:25
by Pressure Line
its not a red alpha channel.
on the second texture the green channel is reflectivity, and red is glow. so if you want the blue bits on your rocko to glow, black out everything except the blue bits, then colour them in red.
Re: Auto Emit Texture
Posted: 06 Sep 2010, 07:43
by daryl
Pressure Line wrote:its not a red alpha channel.
on the second texture the green channel is reflectivity, and red is glow. so if you want the blue bits on your rocko to glow, black out everything except the blue bits, then colour them in red.
Like this?:

Re: Auto Emit Texture
Posted: 06 Sep 2010, 08:28
by Pressure Line
yes
Re: Auto Emit Texture
Posted: 06 Sep 2010, 11:15
by Beherith
As you said, adding a little gaussian blur will make the effect nicer.
Re: Auto Emit Texture
Posted: 06 Sep 2010, 12:06
by daryl
Beherith wrote:As you said, adding a little gaussian blur will make the effect nicer.
aah right!!
so thie evening i will try this. and i will post the result

Re: Auto Emit Texture
Posted: 07 Sep 2010, 07:11
by daryl
daryl wrote:Beherith wrote:As you said, adding a little gaussian blur will make the effect nicer.
aah right!!
so thie evening i will try this. and i will post the result

TADAAAA
thx to all!!

Re: Auto Emit Texture
Posted: 07 Sep 2010, 07:27
by Beherith
Looks great! Is that a rocko?
Re: Auto Emit Texture
Posted: 07 Sep 2010, 07:29
by daryl
Beherith wrote:Looks great! Is that a rocko?
yes, it's a rocko
