Game Development Community

Static models only getting ambient light

by Spencer Boomhower · in Artist Corner · 05/30/2004 (2:10 pm) · 6 replies

Hey there,

I was checking out a character I'm working on when I decided to place its model into the world as a static object. I noticed that the static version of the character was much darker than the dynamic version (the player itself). I changed the ambient and sunlight colors to blue and red respectively, and realized that the static version isn't receiving any sunlight, only ambient light. Some trees I made had the same problem... I was wondering why the damn things were dark even after I cranked up the brightness of the textures :)

So can anyone suggest why this might be happening? I think I followed the instructions in the docs correctly. BTW, I'm putting art into the latest Torquedemo. And I am remembering to hit "Alt-L"

Many thanks.

-Spencer

#1
05/30/2004 (3:16 pm)
Hi Spencer

If you dont restart the level you must click on apply on the
static shape after you have relight the scene.
After that the light changes.
I must do this i dont no why ,its not working for me either with ambientlight off and relight the scene.
Hope this helps


Billy
#2
05/30/2004 (5:11 pm)
@Billy,

Are you saying that if you restart the level your models will work correctly? Because mine remain lit only by the ambient light even after I restart the game and the level. I also tried clicking "apply" after relighting, and it didn't fix the problem. It sounds like we might have slightly different problems :)

@Anyone: Any more suggestions out there?
#3
05/30/2004 (11:06 pm)
Ok i get this only when i stand on a interior , not when
i put a static shape on the ground then my light updates directly.
And i get this in head version to ,if i stand on one of the interiors and change the light ,the static model dont change .
I must click on it to get the light updated.

@Spencer your problem is abit differnt but close anyway.
I have no clue for your problem for the moment .
Have you tried your models in the head ?
#4
05/30/2004 (11:28 pm)
@Billy

Yeah, it sounds like my situation is a little different. I'm putting my DTS objects directly on the terrain, not interiors.

By "head" you mean latest version, right? I haven't tried the models with that. I don't know how to compile, so I use the latest demo I can get my hands on. I might just try an earlier demo, or Realmwars and see how that works.
#5
06/06/2004 (3:50 pm)
Well, I figured this out. It was a simple matter of me perceiving things incorrectly, and some inconsistencies with the way the engine lights objects.

First off, it looks like if you place the character DTS as a static object, it doesn't receive sunlight. It does if the DTS is part of an actual character, however, so no problem there. You shouldn't need to place the character DTS as a static object.

Then what about the trees that were all dark? What happened there was that I placed the trees in the Torque Demo level, which has a sun that's very low, almost sunset. It casts these long shadows on the ground beyond the hills. What happened was that I placed the trees in the shadows, which makes the whole tree object shadow colored. The trees are huge - tall enough to rise above the surrounding hills - so they look like they *should* receive sunlight along most of their length. However, the engine doesn't work that way. It just lights the entire object with whatever terrain color is at its base.

Lived. Learned.

-Spencer
#6
06/06/2004 (4:10 pm)
Nice you got it working Spencer.
There is so many settings that make things bad ,so sometimes is hard to explain whats wrong.