Game Development Community

Help with Lighting

by Michael Canty · in Torque Game Engine · 04/30/2007 (10:08 am) · 5 replies

Excuse me I am new and have purchased the 1.5 version of TGE. I have completed converting my lightwave object and created my first level. Unfortunately I am having trouble adding the lighting to my map.
I can not get the lighting profiles to work. If I add a light then go to the world editor inspector and pull down the datablocks dropdown All I get is Observer, PlayerBody and other non light related datablocks. What am I doing wrong. I have TGE 1.5 and the docs say that the lighting kit is included. Help.

#1
04/30/2007 (10:36 pm)
I assume you are using your own base mod and not starter.fps. If so it can be fixed simply by placing the following script into OnServerCreated() usually found in game.cs.

exec("common/server/lightingSystem.cs");
#2
05/01/2007 (6:17 am)
I had actually found this last night. I added the line you gave to the game.cs in the example directory in example/mygamename/server/. this is where my game resides. This did not work. I must be doing some wrong.
-My directory structure is as follows.
Steorra - root
example - sub directoriy of Steorra
common - sub directoriy of example directory
client
help
lighting
server
ui
creator
demo
show
Steorra.Lectio - mygame directory sub directoriy of example directory
client
data
lighting
server

Is this ok or should I change this to something else?
#3
05/06/2007 (10:12 pm)
Does common/server/lightingSystem.cs actually exist? Have you modified the game.cs yourself in any way that may affect anything?
#4
05/07/2007 (10:03 am)
I had modified the diretory structure and the game.cs had been modified. I found the problem. The lighting system.cs was looking for the common folder and I do not have one in my game directory. Once I corrected this by adding a common/server folder to my project it started working. Thanks for all the help people. By the way does anyone know if I get get volumetric lighting in TGE 1.5?
#5
05/07/2007 (10:39 am)
I just saw this resource. If you read at the bottom says it is in 1.5 already (I dont know of anything else atm:
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=4402