Game Development Community

Car Headlights

by arda · in · 10/09/2005 (3:43 pm) · 6 replies

Hi you all,

I'd like to buy LP, and I need to make sure about couple of things?

- Can I mount spot lights on the vehicle's mount points, ,like in the Unreal Tournament's vehicles. In UT 2004 vehicles cast light on the terrain, and it looks so cool:)

- Does spot lights generate lens flare effect, if the spot light directly points to the camera. an in the real life :)

Thanks.

#1
10/09/2005 (4:21 pm)
Vehicle headlights are something many desire, but I think a few people have done it successfully. I want to know how as well, but I believe it will involve a bit of scripting.

Spot lights can have a flare to them, but not the "circles in a row" type you'd expect from the sun.
#2
10/09/2005 (4:39 pm)
I tired to mount fxLightDB by Brett Fattori to my vehicle but it did not work as I expected?

I do really remember a screenshot post in the GG forums, that shows a vehicle spotlights on it, and
lighting effect mapped on the ground ???

Only shapeBase objects can be mounted on each other? fxLightDB is only attached not mounted because it's GameBase object.
So I changed it to from GameBase to ShapeBase, and changed fxLightData from GameBaseData from ShapeBaseData, then made necessary script changes. The lights are attached to mount points of the car, as I traced the code side, but it never rendered the lights?

You may also check this http://www.garagegames.com/mg/forums/result.thread.php?qt=10494 out?
#3
10/10/2005 (5:30 pm)
Hi guys,

Yes to both questions.

-John
#4
10/10/2005 (5:54 pm)
The WarZone demo by Tim Aste has flying vehicles with moving spotlights.
It's worth a look.

Ari
#5
10/10/2005 (11:48 pm)
Hi John,

Do you have couple of pics to show that? I'd really appreciate any picture of mounted spotlights on the car,

Thanks
#6
10/14/2005 (8:54 am)
Hi guys,

You can see light mounting in the TLK video in my latest plan:

John Kabus: IGC 2005


Also there's a thread about the process in the TLK Private forums:

Mounting lights on objects

-John