Vruki Salet Posted August 24, 2006 Share Posted August 24, 2006 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? Link to comment Share on other sites More sharing options...
razorace Posted August 24, 2006 Share Posted August 24, 2006 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. Link to comment Share on other sites More sharing options...
razorace Posted August 24, 2006 Share Posted August 24, 2006 Correction: The hit detection related code in G_SaberCollide has already been ported to OJP Basic. Link to comment Share on other sites More sharing options...
Vruki Salet Posted August 25, 2006 Author Share Posted August 25, 2006 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.) Link to comment Share on other sites More sharing options...
razorace Posted August 25, 2006 Share Posted August 25, 2006 Thanks, I moved it for just that reason. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.