Game Development Community

Projectile not always showing up

by James Laker (BurNinG) · in Torque Game Engine Advanced · 03/11/2009 (1:09 am) · 7 replies

In the Process of porting my work over again. I've noticed that my projectiles still don't always show up. I hear the fire sound. But no shape is displayed.

I'm not sure if it has anything to do with it, but it's a bomb that gets dropped. So it's usually behind my ship. Can this cause a problem?

I'll make a video if needed.

#1
03/11/2009 (2:34 am)
I dont expect your projectile is moving truly fast? I have myself had troubles with fast moving projectiles not rendering a shape (it was a bouncing 'ball' impulse bomb ), back with TGE and if i recall i added a MASS field to the ProjectileData and followed player class example for 'Acceleration due to gravity'.
#2
03/11/2009 (2:41 am)
Its a bomb, so the projectiles move REALLY slow, and there's no gravity. Solar Battles.
#3
03/11/2009 (2:56 am)
Just for kicks, to see if its an physics calculation gone mad, do you have a particle effect connected with it? Perhaps the mesh is showing but not where you expect it?
#4
03/11/2009 (4:48 am)
It does show up sometimes though... so it's there alright. It just doesn't get rendered 10% of the time. I'll do some more tests.
#5
03/11/2009 (10:07 am)
You have to differentiate between rendering and actually updating. I find it hard to believe it doesn't render 10% of the time. My bet is that Torque is dropping packets.
#6
03/20/2009 (5:26 am)
I had the same issue, this is a network problem (on localhost too). The default packet size is very small. Write these lines to your server/game.cs top:

$pref::Net::PacketRateToClient = 32;
$pref::Net::PacketRateToServer = 32;
$pref::Net::PacketSize = 500;
#7
03/20/2009 (7:25 am)
I had problems with rendering a projectile because the scale was too small. It was weird, I could render the images of my missiles on my aircraft, but they wouldnt show when fired at the same scale.

They did emit light though. What I did is scale them to 16x16x16 and they did show up after that.