Author Topic: DaisyFB  (Read 1679 times)

0 Members and 1 Guest are viewing this topic.

Offline rdc

  • Pentium
  • *****
  • Posts: 1480
  • Karma: 138
    • View Profile
    • Clark Productions
DaisyFB
« 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.

« Last Edit: September 07, 2009 by rdc »

Online Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5098
  • Karma: 380
    • View Profile
Re: DaisyFB
« Reply #1 on: October 23, 2006 »
I like that!  Very colourful.

Jim
Challenge Trophies Won:

Offline rdc

  • Pentium
  • *****
  • Posts: 1480
  • Karma: 138
    • View Profile
    • Clark Productions
Re: DaisyFB
« Reply #2 on: October 23, 2006 »
Thanks! It's lame compared to what you guys do, but I'll get there. :)

Offline rdc

  • Pentium
  • *****
  • Posts: 1480
  • Karma: 138
    • View Profile
    • Clark Productions
Re: DaisyFB
« Reply #3 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?


Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 16784
  • Karma: 439
  • evil/good
    • View Profile
    • My Homepage
Re: DaisyFB
« Reply #4 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.

Shockwave ^ Codigos
Challenge Trophies Won:

Offline rdc

  • Pentium
  • *****
  • Posts: 1480
  • Karma: 138
    • View Profile
    • Clark Productions
Re: DaisyFB
« Reply #5 on: October 23, 2006 »
Ah, just what I was looking for. Thank you.

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7145
  • Karma: 69
    • View Profile
Re: DaisyFB
« Reply #6 on: October 23, 2006 »
Looking good RDC dude. :)
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline taj

  • Bytes hurt
  • DBF Aficionado
  • ******
  • Posts: 4810
  • Karma: 189
  • Scene there, done that.
    • View Profile
Re: DaisyFB
« Reply #7 on: October 23, 2006 »
That was cool, I liked the music and I watched the spirals for maybe 3 minutes.
Challenge Trophies Won:

Offline rdc

  • Pentium
  • *****
  • Posts: 1480
  • Karma: 138
    • View Profile
    • Clark Productions
Re: DaisyFB
« Reply #8 on: October 23, 2006 »
Heh, thanks guys.

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7145
  • Karma: 69
    • View Profile
Re: DaisyFB
« Reply #9 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.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline rdc

  • Pentium
  • *****
  • Posts: 1480
  • Karma: 138
    • View Profile
    • Clark Productions
Re: DaisyFB
« Reply #10 on: October 24, 2006 »
That is awesome man. Thanks a bunch.

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7145
  • Karma: 69
    • View Profile
Re: DaisyFB
« Reply #11 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.
« Last Edit: October 24, 2006 by Clyde »
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 16784
  • Karma: 439
  • evil/good
    • View Profile
    • My Homepage
Re: DaisyFB
« Reply #12 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).
Shockwave ^ Codigos
Challenge Trophies Won:

Offline rdc

  • Pentium
  • *****
  • Posts: 1480
  • Karma: 138
    • View Profile
    • Clark Productions
Re: DaisyFB
« Reply #13 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.

Online Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5098
  • Karma: 380
    • View Profile
Re: DaisyFB
« Reply #14 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
Challenge Trophies Won:

Offline rdc

  • Pentium
  • *****
  • Posts: 1480
  • Karma: 138
    • View Profile
    • Clark Productions
Re: DaisyFB
« Reply #15 on: October 24, 2006 »
Now that seems too easy. :) Thanks Jim.


Offline rdc

  • Pentium
  • *****
  • Posts: 1480
  • Karma: 138
    • View Profile
    • Clark Productions
Re: DaisyFB
« Reply #16 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.

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7145
  • Karma: 69
    • View Profile
Re: DaisyFB
« Reply #17 on: October 25, 2006 »
Smart work mate, welldone.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline rdc

  • Pentium
  • *****
  • Posts: 1480
  • Karma: 138
    • View Profile
    • Clark Productions
Re: DaisyFB
« Reply #18 on: October 25, 2006 »
Thanks!

Online Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5098
  • Karma: 380
    • View Profile
Re: DaisyFB
« Reply #19 on: October 25, 2006 »
It works! :D

Jim
Challenge Trophies Won: