View Full Version : questions about realtrace and super interpolation
08-24-2006, 12:54 AM
I ported realtrace into OJP-Basic, and was wondering a couple things. The first is that I used an old version of realtrace, the earliest I could find in the CVS. The reason is that I wanted to get it from a simpler, less modified version of w_saber.c than there is today. Is that version of realtrace significantly different that the one uesd now? Are there any important realtrace bugs that have been fixed since then? ("Then" being 2/4/2004.)
Also, how important is super interpolation (d_saberinterpolate.integer == 2)? How good is it? Is it a great improvement over the old or just a tweak that helps a little in some situations? Is it extra good/important to have it operative along with realtrace?
08-24-2006, 08:09 PM
RealTrace had some major modifications after the first revision. I can't really say what they are but they were numberious. Fortunately, the lastest version should be pretty easy to port. For the most part, you just have to grab the code for G_RealTrace (and associated functions), the saber impact function changes (I can't remember the function name), and the changes in the ghoul2 trace function (can't remember that name either). After that, just drop the G_RealTrace call into the checksaberdamage instead of the original code. Compare to the Enhanced code to see how I did it.
As for super interpolation, it fires the saber hit detection as a series of traces between the blade's old position and it's new position. In theory it should improve hit detection and allow the system to return accurate impact surface plane information. However, I haven't really revised that code in a while, and it is more CPU intensive than the other interplotation options, so it might not matter in Basic.
08-24-2006, 08:36 PM
Correction: The hit detection related code in G_SaberCollide has already been ported to OJP Basic.
08-24-2006, 10:51 PM
OK. Thanks. Doing the old code wasn't too painful so I suppose I could try the new stuff, especially since you moved things to g_sabbeh.c or whatever that new one is called. (Nice move btw.)
08-25-2006, 01:33 AM
Thanks, I moved it for just that reason. :)
vBulletin®, Copyright ©2000-2015, Jelsoft Enterprises Ltd.