Monday, 22 October 2012

I made a fool of myself

I really did made a fool of myself. First I was spending all the day working to figure out why the camera didn't work. Well, of course it won't work. I hadn't set the world of my vertex. Why? Frankly, I don't know - yet. I will and I must know it no far in the future.


The second fool thing I did was I spent this whole weeks trying to draw the track in a complicated ways. Indeed the Professor asked me to make a looped track but it wasn't a MUST. It's a nice to have! I felt so stupid. I spent this whole week just to draw the track with a list of Vector3. And today I made the track just in 30 minutes using a simple math equation!!! Yes, it wasn't a looped track. Still it was a track with a variation of curve.

At the beginning, I wanted to use the Lissajous equation (http://mathamazement.com/Lessons/Pre-Calculus/09_Conic-Sections-and-Analytic-Geometry/parametric-equations.html) to make a looped track. 

Lissajous equation:
  • x = cos at
  • y = sin bt
  • Nevertheless it didn't give me exactly the graph I wanted. Well, it showed the graph exactly as in the website when I didn't try to make it wider. When I applied a simple algorithm to give me width of the track, it showed a funny curve.

    Then the Professor came in and suggested me to use sinus equation instead. And... it worked!!! With the same simple algorithm, I drew the graph with the given width.

    Strange... I didn't know why the same algorithm won't give me the same result if I used different equation. Was it because I use X as the variation of Z in sinus equation and I used completely different equation to get X and Y position in Lissajous equation? Probably....

    No comments:

    Post a Comment