Game Development Community

Bullet tracers

by Ian Roach · in Torque Game Engine · 08/28/2006 (8:21 am) · 7 replies

Hey guys, just wondering if anyone has working bullet tracers ?

Ive implemented this resource :

http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=6116

however bullet tracers still dont appear. anyone know if this works in torque 1.4

#1
08/28/2006 (8:29 am)
I implemented that resource into 1.3 and it didn't look very nice. I removed it immediately.

Try this one. It's a lot more flexible and looks beautiful:
3d Mesh Line Tracers for Torque
#2
08/28/2006 (8:30 am)
I don't know about that resource but I know This one works ;)

[Ishbuu]

Edit: HACKER! Tim beat me to it.
#3
08/28/2006 (8:45 am)
Yeah the first resource is terribly ugly, but the second gives you better results if you model/texture correctly.

The third idea, and more simplistic, is to just make the projectile look like a tracer! LOL no code necessary, and works great.
#4
08/28/2006 (5:13 pm)
Chris - what settings did you use to achieve that ?
#5
08/28/2006 (5:26 pm)
I just modelled four really long faces arranged in a "+" shape, each of the faces showing outward, with the same translucent flame-ish image on each.

www.ion-productions.com/tracer2.JPG
Gives an appearance from nearly all angles of a real nice tracer, and is how most games do it (Same way you'd make the ones in the second resource).

www.ion-productions.com/tracer3.JPG
#6
08/28/2006 (5:32 pm)
If you do this in the 3rd person, don't you get a trace appearing going through the gun and the person?
#7
08/28/2006 (6:54 pm)
This is why this is so much better than other methods. You simply model the tracer to have one end at the origin and extend outward, not have the mesh centered in the origin. This way it spawns already in front of the muzzle even if you have 100% no latency whatsoever. No sticking through yourself or the weapon.