Dark Bit Factory & Gravity

PROGRAMMING => Freebasic => Topic started by: rdc on October 23, 2006

Title: DaisyFB
Post 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.

Title: Re: DaisyFB
Post by: Jim on October 23, 2006
I like that!  Very colourful.

Jim
Title: Re: DaisyFB
Post by: rdc on October 23, 2006
Thanks! It's lame compared to what you guys do, but I'll get there. :)
Title: Re: DaisyFB
Post by: rdc on October 23, 2006
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?

Title: Re: DaisyFB
Post by: Shockwave on October 23, 2006
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.

Title: Re: DaisyFB
Post by: rdc on October 23, 2006
Ah, just what I was looking for. Thank you.
Title: Re: DaisyFB
Post by: Clyde on October 23, 2006
Looking good RDC dude. :)
Title: Re: DaisyFB
Post by: taj on October 23, 2006
That was cool, I liked the music and I watched the spirals for maybe 3 minutes.
Title: Re: DaisyFB
Post by: rdc on October 23, 2006
Heh, thanks guys.
Title: Re: DaisyFB
Post by: Clyde on October 24, 2006
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.
Title: Re: DaisyFB
Post by: rdc on October 24, 2006
That is awesome man. Thanks a bunch.
Title: Re: DaisyFB
Post by: Clyde on October 24, 2006
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.
Title: Re: DaisyFB
Post by: Shockwave on October 24, 2006
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).
Title: Re: DaisyFB
Post by: rdc on October 24, 2006
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.
Title: Re: DaisyFB
Post by: Jim on October 24, 2006
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
Title: Re: DaisyFB
Post by: rdc on October 24, 2006
Now that seems too easy. :) Thanks Jim.

Title: Re: DaisyFB
Post by: rdc on October 25, 2006
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.
Title: Re: DaisyFB
Post by: Clyde on October 25, 2006
Smart work mate, welldone.
Title: Re: DaisyFB
Post by: rdc on October 25, 2006
Thanks!
Title: Re: DaisyFB
Post by: Jim on October 25, 2006
It works! :D

Jim
Title: Re: DaisyFB
Post by: rdc on October 25, 2006
Heh. I couldn't have done it without you guys. I'm already thinking about my next one. :)
Title: Re: DaisyFB
Post by: Shockwave on October 25, 2006
Well done :)
Title: Re: DaisyFB
Post by: Tetra on October 27, 2006
Great stuff rdc, keep it up  ;D
Title: Re: DaisyFB
Post by: rdc on October 27, 2006
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.
Title: Re: DaisyFB
Post by: Shockwave on October 28, 2006
Pretty cinematic :)
Title: Re: DaisyFB
Post by: rdc on October 28, 2006
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.