Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Programming. | 3 guests
Acmlm's Board - I2 Archive - Programming - Spline Trouble
  
User name:
Password:
Reply:
 

UserPost
ADnova
Posts: 5/9
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.
BGNG
Posts: 133/276
"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
HyperLamer
Posts: 5690/8210
Wait... is this going to restrict our abilities to make really wacky courses?
BGNG
Posts: 123/276
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
Acmlm's Board - I2 Archive - Programming - Spline Trouble


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.003 seconds.