Register | Login | |||||
Main
| Memberlist
| Active users
| ACS
| Commons
| Calendar
| Online users Ranks | FAQ | Color Chart | Photo album | IRC Chat |
| |
0 user currently in Programming. | 3 guests |
Acmlm's Board - I2 Archive - Programming - Spline Trouble | | | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread |
User | Post | ||
BGNG Snifit Level: 22 Posts: 123/276 EXP: 56579 For next: 1771 Since: 06-03-05 Since last post: 8 days Last activity: 3 hours |
| ||
I'm currently involved in a level editing project for F-Zero X on Ninteno 64. I've already developed a fully-functional application that can edit the courses, and now high-res graphics and user-friendly interface are being developed. Hopefully the project can be released quite soon. Unfortunately, a most hiddeous inconvenience has arisen. Formerly, I expected that the courses in F-Zero X were interpolated with a Natural Cubic Spline. I've even generated 3D outputs using this spline method and the courses looked exactly as they should have. But today, I took a set of six control points to check for incidences that make the game crash (due to improper course structure). What I came up with is below, with the red polygon connecting the control points and the blue curve showing the cubic spline: That's all fine and dandy, but take a look at the right side in the center. See how it does an "S" shape? This is what it looks like in the game: Still a minor "S" shape, but not nearly the same. In fact, the finish stretch is perfectly straight and pointing north, where it goes southwest-to-northeast via cubic spline. So I was met with not knowing how the game generates the curves in the course. Examining different interpolative methods by searching the internet and such, I found something that caught my eye. Inputting the same shape into Corel DRAW and running its "smooth" feature, I came up with this: Lo and behold, that's exactly the same shape that the course was in the game. Somehow or other, Corel DRAW calculates the curves the same way. One more bit of info is what I got by clicking on one of the control points: As expected, these points are interpolated with a piecewise B |
|||
HyperLamer <||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people Sesshomaru Tamaranian Level: 118 Posts: 5690/8210 EXP: 18171887 For next: 211027 Since: 03-15-04 From: Canada, w00t! LOL FAD Since last post: 2 hours Last activity: 2 hours |
| ||
Wait... is this going to restrict our abilities to make really wacky courses? | |||
BGNG Snifit Level: 22 Posts: 133/276 EXP: 56579 For next: 1771 Since: 06-03-05 Since last post: 8 days Last activity: 3 hours |
| ||
"Acmlm" must be some foreign word for "People who don't reply to threads if no one is able to help"... Seriously, now. Just forgetting about someone's problem and hoping it goes away? Sheesh. Anyhow, I've got the spline problem fixed. Crisis averted! Wacky courses possible once again without restriction! Taking a few days of normal Google usage (which anyone in this forum could have done as well, mind you), I uncovered the wonder that is called the B |
|||
ADnova Newcomer Level: 5 Posts: 5/9 EXP: 364 For next: 165 Since: 05-04-05 Since last post: 97 days Last activity: 40 days |
| ||
Congratulations on getting the results you wanted. I am familiar with splines, but I have no idea how Corel Draw implements them. So, what's the point of responding with: "Hey, I have no idea how to solve your problem. Have you tried Google? Better yet, why don't I spend several days tracking down the information for you, even though you have a much better idea of what is useful and what isn't?" When someone posts a question, I assume that they've already conducted a search. So, if I don't already know the answer to their query, I don't bother posting. On topic, what you've accomplished with the program is actually quite amazing. Keep up the good work. |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread |
Acmlm's Board - I2 Archive - Programming - Spline Trouble | | | |