Dark Bit Factory & Gravity
PROGRAMMING => Freebasic => Topic started by: rdc on October 23, 2006
-
Since the Delphi version didn't work out with some folks, I recoded the program in FB.
No longer available.
I used some of the routines posted here and hopefully credited everyone correctly. Let me know if I missed someone.
-
I like that! Very colourful.
Jim
-
Thanks! It's lame compared to what you guys do, but I'll get there. :)
-
I have a question for you gurus. I have noticed that many of the demos rotate stuff, and I thought it would be interesting to add rotation to the daisy. I am storing the points in an array, so how would I rotate the daisy around a central point?
-
Well, essentially you're not far off rotating it as it is.. You are using sin and cos to generate some circular patterns which is the basis..
If you want to rotate in 3D it is a wee bit more involved..
I started typing out some formulae here but then I remembered this topic, it's probably the best explanation on 3D that I could point you to;
http://p205.ezboard.com/fyabasicprogrammingfrm4.showMessage?topicID=343.topic
It was compiled by our very own Jim Shaw.
-
Ah, just what I was looking for. Thank you.
-
Looking good RDC dude. :)
-
That was cool, I liked the music and I watched the spirals for maybe 3 minutes.
-
Heh, thanks guys.
-
Here you go mate, I've made a simplified Text subroutine for you. With this you can also easily add more texts. Please no credit neccassary.
-
That is awesome man. Thanks a bunch.
-
No worries dude.
Btw, I think the reason for your music problems was that you hadn't supplied the fmod.dll.
Cheers and all the best,
Clyde.
-
Those spirals are pretty hypnotic :) Well done Rick, keep on trucking! (Sorry for the late comment, I hadn't had a chance to run this when I posted my first reply).
-
Thanks guys. I am trying to figure out how to make it rotate in 3D. I am studying Jim's tut, but so far haven't quite figured out how to represent the data since it is a plane rather than a cube. I'll keep at it though.
-
Set the x and y parts of the 3d points to your daisy x and y, and just set all the zs to be the same, 0 or 1 or 10 or 100 or something...depending what works for you. When you set the rotations, initially set tilt, turn and roll=0, but change roll to make it spin round its centre.
Jim
-
Now that seems too easy. :) Thanks Jim.
-
Okay, here it is with some spiral rotation effects. Just the exe and main source. You'll need the prior music/lib files to compile.
-
Smart work mate, welldone.
-
Thanks!
-
It works! :D
Jim
-
Heh. I couldn't have done it without you guys. I'm already thinking about my next one. :)
-
Well done :)
-
Great stuff rdc, keep it up ;D
-
Thanks guys. My next one is going to be a little bit different. Since I am a writer (you can check out some of my witing on my website) I thought I would mix writing with demos. Here is a tiny sneak peek:
http://home.grandecom.net/~rickclark58/programs/ancients.zip
This is just the demo intro.
-
Pretty cinematic :)
-
Heh, thanks. Once I get the script coded, I am going to add sound effects and a soundtrack. I have no idea how this will turn out, but hopefully it will be a nice mix of story elments and effects.