Jump to content


SND - IDEAS - Coding In Ogre For Interactive Music

  • Please log in to reply
3 replies to this topic

#1 ATeX


    Sound Department

  • Xenocide Inactive
  • 545 posts

Posted 11 February 2004 - 05:19 AM

A question for all the coding guys out there :)

What extensions does OGRE have at this moment for music playing? I'm asking this because I think that interactive music will drastically improve the gameplay :wink: The idea came by when I was playing Aliens versus Predator 2 which offers an immense soundtrack! :D The whole thing is set up by triggers so that the music evolves with the occasions u experience. So I tought, this thing is just awesome! We should make advantage of that idea.

So, shortly, in case there isn't anything in OGRE yet that would offer that possibility, if u all agree, could u edit/add code so that this will become possible?

#2 Breunor


    Creative Text Department

  • Xenocide Inactive
  • 3,234 posts

Posted 11 February 2004 - 07:53 AM

Ogre itself doesn't do sound based on what I've read in the forums at www.ogre3d.com, but OpenAI and FMOD do. OpenAI is used in UT2K3, while FMOD is open source. It might be wise for someone to look into this eventually, but I expect the code can stream music at particular calls, and those calls could be made at certain events in the game.

Edit: SDL Mixer was also mentioned with success for streaming music.

Edited by Breunor, 11 February 2004 - 07:58 AM.

#3 mamutas



  • Forum Members
  • PipPipPipPipPip
  • 1,067 posts

Posted 11 February 2004 - 11:55 AM

IIRC, Red Knight was looking into interactive music implementation a while ago.
Currently, I think the plan is to use OpenAI, but nothing has been done with it since we move to OGRE.

#4 red knight

red knight

    Xenocide Project Leader

  • Xenocide Inactive
  • 3,310 posts

Posted 12 February 2004 - 01:13 PM

The streaming code is already done in the old engine, it is just to port it... It was done in OpenAL and support streaming from whatever format we would like to implement (the implementation is format free)... if that means that we use a stream source that is modified when a trigger is executed, there is no limitation right arround the corner...

Red Knight
Sourceforge Nick: flois - Federico Andres Lois
Visit my blog at: flois.blogspot.com

Posted Image

Pookie cover me, I am going in.