That's really neat.
Thanks,
Bob
I've always been intrigued by rotation mathematics. Finding thinBasic/TBGL was a great life opportunity. Matrix math has always been understandable and reliable. Quaternion math is as good or better, but not understandable (to me). Euler Angles can be used in a simple manner, but the results are poor -- the rotations lose their naturalness after the object leaves the home position. The math to use Euler Angles making the rotations more natural is not easy. I have wondered if it was even possible. Then I stumbled on a paper by Jed Margolin which didn't give the solution, but showed how to get the solution, which I was able to get. And the result is this program.
It shows a head supported by gimbals (my avatar) that can be controlled by the keyboard. You can use either the simple controls or the natural controls. Hit F1 for info.
It's zipped because I have "Include" files, so it may be best to put it in a separate directory. In the zipped directory, there's also a "GLFigures" program that uses that same "Include" files. It isn't done -- it's for testing.
I've posted the "bundled" executable at http://dbarc.net/dcgimbalrock.exe (may have to turn antivirus off). The mathematics paper is at http://dbarc.net/dceulerrot.pdf.
Thanks for existing, Regards, Dave
That's really neat.
Thanks,
Bob
i can't express enough how much this is beautiful
thank you
Thank you.
I just noticed that in GLFigures.tbasic, there are 2 instances of "Lerp2" This may not work except in the latest download. Change those to "zLerp".
Fantastic Dave
I have no words. I could not even imagine how great minds can get out from thinBasic.
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
Nice job Dave!
If you hold all 4 arrow keys down at once, you get a predictable but all view presentation. (at least I do under Linux/Wine)
P.S.
Ran from a .exe thinBASIC package.
Last edited by John Spikowski; 23-11-2011 at 09:30.
Great example! Thanks a lot Dave!
It run perfectly here...
...I liked very much the help screen too.
Petr
Learn 3D graphics with ThinBASIC, learn TBGL!
Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB
Thanks for the nice comments.
V1.1 - I just had to make the eyes blink.
Also at http://dbarc.net/dcgimbalrock.exe
Hehe,
I didn't read your description carefully, so I didn't expect the head to blink. When it did, I almost fell from my chair
Petr
Learn 3D graphics with ThinBASIC, learn TBGL!
Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB
I had the giggles all day yesterday, thinking about your
"almost fell from my chair".
How FUNNY! Thanks.
Bookmarks