Author Topic: Playing with OpenGL, torus knots and music sync.  (Read 2819 times)

0 Members and 1 Guest are viewing this topic.

Offline Raizor

  • Founder Member
  • Pentium
  • ********
  • Posts: 1154
  • Karma: 175
    • View Profile
I've been playing around with generating objects procedurally and syncing with music using MiniFMod. I came across some instructions on here for syncing that Hellfire wrote a while back. This was very handy :)

Attached is a little test I made. I used to info provided on torus knots by Blackpawn and Sol to put this together.

It generates a torus knot and uses syncing. It's synced to 2 beats in the audio. One beat controlls the thickness of the knot, the other beat randomizes the P and Q values used to generate the knot. It's a bit plain looking, but has specular highlights.

I'm still learning OpenGL, but thanks to all the great resources available (especially the OpenGL SuperBible book), it's all good so far. Not using display lists or anything for this (yet), so it's not as fast as it could be. Runs at 60fps on my machine though. Music (Mental Hangover) is by Hollywood/Jetset.

Exe file should be attached to this post.
raizor

Challenge Trophies Won:

Offline padman

  • Senior Member
  • Pentium
  • ********
  • Posts: 990
  • Karma: 260
    • View Profile
Re: Playing with OpenGL, torus knots and music sync.
« Reply #1 on: June 18, 2011 »
That's really cool stuff! And it's running smoothly on my shite PC too. You are right, it needs some coloring, but besides that it's nice already. :clap:
Challenge Trophies Won: