Tuesday, June 24, 2008

Steps

One Step Forward, Two Steps Back.
One Stpe Aside, Jump Straight Ahead.


A little rhyme I cam up with a few minutes ago.

I got some problems with my camera class, as I was trying to rotate the camera back to the normal Vector3.Up rotation, while I was working with a quaternion. Every time I hit the button, the camera jumped to some kind of random rotation, which was a problem. Because of the local heat I was not willing to stay stuck in this matter and so took a look over to the Magma class again (the class in which I create the Flexible LOD planets) and continued my work there.
I tryed some new stuff and changed some old so that the resulting grid would always face the camera (which it dose now), but at the beginning it didn't worked that fine. There was a bug.
The bug was settled in the AngleBetweenTwoVectors method that I copied from xnawiki.com , but unfortunatly changed in a few lines. After I got rid of that bug I pressed F5 again to see what happened, and as I was looking at the new, working, grid I thought 'Hey, wait ...' pressed that rotate button and *ting* ... the camera was rotated to normal again.
I used the same method for that camera rotation as I did for the planet grid. :D

As sayed:

One Step Forward, Two Steps Back.
One Stpe Aside, Jump Straight Ahead.


Greg the Mad

No comments: