Flashlight

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Morrog
Posts: 58
Joined: Mon Dec 13, 2004 5:13 am

Flashlight

Post by Morrog »

Does anyone know how to do a semi-decent flashlight (shining on a Q3Level[hence lightmapped quadtree scenenode])?
I'm thinking something like HL1 flashlight would be OK. I know the HL1 flashlight isn't that great, but it's better than nothing.

Right now I'm just doing a billboard a static distance in front of the camera that's additvely blended (and it's got a texture similar to a flashlight's light). Technically I could have also done a GUIImage. Sounds horrible? It is.

Casting a ray out and putting the billboard at the point of intersection doesn't work well at all, worse than just having the billboard a static distance in front of the camera, since it doesn't go around corners. An HL1 flashlight goes around some corners, but I also know it casts out a ray to find where to put the light, because you can see it "pop" off of the edge of walls onto a wall further into the distance.
Kaeles
Posts: 37
Joined: Thu Jun 03, 2004 12:43 am
Location: oklahoma
Contact:

Post by Kaeles »

you might want to look into creating your own light scene node using the spotlight type light from directx and opengl, im not sure how to do it, but it cant be too hard ^ ^
cartoonit
Posts: 286
Joined: Mon Nov 15, 2004 6:36 pm

Post by cartoonit »

Think from what I've heard IrrlichtNX has a flash light node...
Post Reply