Game Development Community

Crossbow.cs - projectile dts shape disappearing?

by Josiah Wang · in General Discussion · 12/18/2004 (5:40 pm) · 5 replies

So anyway, I was playing around with the default build of starter.fps, and i changed the crossbow's projectile.dts to something like a medium-sized beachball. I noticed that once it got out of range of a certain distance, the dts just disappeared. I looked at crossbow.cs, and i tried fiddling around with fadeDelay to no avail (by the way, what does fadeDelay do?)

Any help on this?

#1
12/18/2004 (5:51 pm)
Are you sure its not disappearing when its set to delete?
#2
12/18/2004 (6:00 pm)
No, i'm very sure the dts is not being deleted: i have this installed into my code, and when i walk near it, the dts shape reappears (as in, i can see it). Also, i tried zooming into a projectile dts that was 'invisible' from normal view, and i was able to see it. I'm beginning to think it may be a level-of-detail issue (haha, i'm a noob artist - i just made a ball in gameSpace and exported it)
#3
12/18/2004 (6:13 pm)
Either that, or the object goes out of scope, so the client doesn't display it until you get near it again.
#4
12/18/2004 (7:24 pm)
The problem you are having has to do with your level of detail settings in your DTS file. Change the detail marker and the size number in your object names to something like 2 or add more detail levels.

What is happening is that your object reaches the pixel size value in your level of detail in your shape which causes it to stop being drawn by torque.
#5
12/19/2004 (2:09 pm)
Now the big question: http://www.garagegames.com/mg/forums/result.thread.php?qt=24202

thanks!