Game Development Community

Glow and Skies - is there any trick to it?

by Adam deGrandis · in Torque Game Engine Advanced · 11/26/2004 (6:29 pm) · 4 replies

Hey all

Im messing around with adding glow to skies but im running up against a little problem... I cant seem to get it to work.

This is in my materialMap.cs

//---------------------------------------------------------------------------
// Sky materials
//---------------------------------------------------------------------------
addMaterialMapping("sunny03_1", "material: Sunny1");
addMaterialMapping("sunny03_2", "material: Sunny2");
addMaterialMapping("sunny03_3", "material: Sunny3");
addMaterialMapping("sunny03_4", "material: Sunny4");
addMaterialMapping("sunny03_5", "material: Sunny5");

this is what I added to materials.cs

//*****************************************************************************
// Sky Materials
//*****************************************************************************

datablock Material(Sunny1)
{
baseTex[0] = "demo/data/skies/sunny03_1";
   
   glow[0] = true;
   emissive[0] = true;
};

datablock Material(Sunny2)
{
baseTex[0] = "demo/data/skies/sunny03_2";
   
   glow[0] = true;
   emissive[0] = true;
};

datablock Material(Sunny3)
{
baseTex[0] = "demo/data/skies/sunny03_3";
   
   glow[0] = true;
   emissive[0] = true;
};

datablock Material(Sunny4)
{
baseTex[0] = "demo/data/skies/sunny03_4";
   
   glow[0] = true;
   emissive[0] = true;
};

datablock Material(Sunny5)
{
baseTex[0] = "demo/data/skies/sunny03_5";
   
   glow[0] = true;
   emissive[0] = true;
};

basically, I just want the skies to glow similar to the effect in the glacier TSE demo. Can anyone see what Im doing wrong?

I want to say I remember Tim addressing shaders and skyboxes as a sidenote in some thread but of course I can't find it now.

About the author

I'm an veteran game artist, teacher, and all around nice guy. Check out my portfolio at adamdegrandis.com.


#1
11/27/2004 (4:56 am)
AHHH here we go. As usual, I post something and then find out how to do it.

Here is the thread I was looking for in case anyone else has the same problem.
#2
11/27/2004 (8:25 am)
Heh, ya i was havin that issue.. works now tho and looks awesome! :D should be able to have fun with that in the future
#3
01/07/2005 (7:29 pm)
Heya Adam

There *should* be a checkbox and color value options for this in the sky datablock under Misc., but apparently I'm a month and a half behind!
I'm on the ball!
#4
01/07/2005 (9:06 pm)
Hey, Tim, better late than never. :)