Game Development Community

Lighting problem?

by Lukasz Smaga · in Constructor · 04/08/2007 (7:32 am) · 9 replies

I don't know if this is my fault or a bug but when I export a model from Constructor to Torque (I got TGE 1.5.1) then there is a problem with the lighting. Even if I make new light it doesn't make anything and the object isn't lit or some part of fit and it seems strange.

#1
04/08/2007 (8:53 am)
Are you doing a relight (Scene->Relight All)? Have you switched to Mapped view so you can see your lightmap? Where is the strange lighting...in the editor or in the engine? Are you exporting directly to DIF or are you using the map2dif export? Screenshot?
#2
04/08/2007 (9:33 am)
@Lukasz: Goto the World inspector... select the interiorInstance... click on "useGLLighting" to check it ...then apply and relight.

also, if you are doing direct to dif and have portals ...it will not work. Export using "Export using Legacy Dif"
#3
04/08/2007 (1:57 pm)
Yes Mark, that's it. But now I have another problem :P When I check it I can't selfshadow my objects. Any idea how to fix it?
#4
04/08/2007 (2:49 pm)
Ok, I think I got it. I exportet it as Legacy DIF :P So can someone tell me the difference between Export As Dif ,Export As Legacy Dif and Export->Torque Game Engine (map2dif plus)?

Cheers, Lucas
#5
04/09/2007 (2:39 pm)
Setting it on legacy fixed my lighting problems as well. I wonder what the problem is.
#6
04/09/2007 (3:25 pm)
I dont mean to steal the thread but I am having a similar issue in the editor. Lighting does not look right when I switch to the mapped view, the sun has no effect on the objects. The object remains dark no matter what color I pick for ambient.
#7
04/09/2007 (3:32 pm)
I believe there's a bug related to Constructor's in-editor ambient lighting, the diffuse lighting should work though (make sure sunlight is enabled in the Lighting Profile Manager).

Can you guys post screen shots showing the lighting problems you're seeing.
#8
04/09/2007 (4:14 pm)
Here is a screenshot including all my settings. There box is a brush, the character is a reference dts.
kacaj.net/portals/1/public/ConstructorLightingProblem.jpg
#9
04/09/2007 (4:27 pm)
Ambient lighting from the sun does not work in this version. However, you can still get ambient lighting in your mapped preview by editing the WorldSpawn entity and changing the Ambient Lighting property.