• Welcome to Dark Bit Factory & Gravity.
 

DaisyFB

Started by rdc, October 23, 2006

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rdc

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.


Jim

I like that!  Very colourful.

Jim
Challenge Trophies Won:

rdc

Thanks! It's lame compared to what you guys do, but I'll get there. :)

rdc

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?


Shockwave

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:

rdc

Ah, just what I was looking for. Thank you.

Clyde

Looking good RDC dude. :)
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.


Challenge Trophies Won:

taj

That was cool, I liked the music and I watched the spirals for maybe 3 minutes.
Challenge Trophies Won:

rdc

Heh, thanks guys.

Clyde

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:

rdc

That is awesome man. Thanks a bunch.

Clyde

#11
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.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.


Challenge Trophies Won:

Shockwave

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:

rdc

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.

Jim

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:

rdc

Now that seems too easy. :) Thanks Jim.


rdc

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.

Clyde

Smart work mate, welldone.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.


Challenge Trophies Won:

rdc


Jim

It works! :D

Jim
Challenge Trophies Won: