User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: Navigating by sound, rotating an entire room

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Aug 2010
    Location
    Sweden
    Posts
    351
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Navigating by sound, rotating an entire room

    Hiya

    I'm building a game in which you should be able to navigate, and get your position by sound alone, as if you where standing in the room. The problem I'm having is how to rotate the screen probebly so the objects making the sound positions themselves correctly. Meaning that when the player rotates to the left, the entire room should rotate to the right while maintating relative positions to the player and the objects making the sound. I've included the exe to further explain what I mean. Is there a way to solve this?

    http://www.jm-j.com/navigation.exe

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Eliyahu's Avatar
    Join Date
    Oct 2007
    Location
    Seattle, WA
    Posts
    1,523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Navigating by sound, rotating an entire room

    You actually don't need to rotate the whole room, you just need a little trigonometry to determine the angles and figure out where the sound needs to be. Can I assume you are only using stereo, or are you using surround sound? I can make an example of rotating sounds, but it will be stereo.

    I've uploaded an example for you: http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=248132&#Post248 132

    One thing it lacks is volume change for a sound behind you, but you could add that in. It does have volume for distance and panning based on position and rotation.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Aug 2010
    Location
    Sweden
    Posts
    351
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Navigating by sound, rotating an entire room

    Wow, thanks alot. Yeah, it has to be stereo, it has be playable with headphones. It's tricky getting audio to sound like it's right in front ot back from you without using realtime filters. Any thoughts on if it could be done? Any example you have is extremely helpful, thanks a bunch!

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Eliyahu's Avatar
    Join Date
    Oct 2007
    Location
    Seattle, WA
    Posts
    1,523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Navigating by sound, rotating an entire room

    Typically a sound behind you is going to be quieter than the same sound in front of you, so you basically figure out if the angle is in some range and if it is you can multiply the volume by 0.5 or something.

    Remember also that in real life, there is a delay of when a sound hits your ears. Your body picks up on these tiny delays and tells you where the sound came from.

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Aug 2010
    Location
    Sweden
    Posts
    351
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Navigating by sound, rotating an entire room

    I am very, very well familiar with the properties of sound, it's programming that's my akilles heel. It's not just that there's a change in direction or volume, it's the occlusion caused by the human skull. Even AAA sound engines like FMOD or UDK's have a hard time properly recreating that effect. But while on the subject, can MMF modify frequencies realtime?

  6. #6
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Navigating by sound, rotating an entire room

    Yes, MMF2 can change the sample rate in real time.
    Working as fast as I can on Fusion 3

  7. #7
    Clicker Fusion 2.5 Developer

    Join Date
    Apr 2009
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Navigating by sound, rotating an entire room

    Quote Originally Posted by LB
    Yes, MMF2 can change the sample rate in real time.
    That's not the same thing...


    You need to use a binaural plugin to process the sound beforehand for different angles.

  8. #8
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Navigating by sound, rotating an entire room

    Might wanna check out my extension project: http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=246635&Searchpa ge=1&Main=33861&Words=openal&Search=true#Post24663 5

    Please don't use it for anything 'serious' yet, though (I have to resolve some licensing problems first). You can still have a look though.

  9. #9
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Aug 2010
    Location
    Sweden
    Posts
    351
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Navigating by sound, rotating an entire room

    This looks amazing! No documentation yet I assume?

  10. #10
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Navigating by sound, rotating an entire room

    I'm afraid not but that will change of course. It's still in an early development phase - as I said, don't use it for your project, but you can still check it out.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Android crash when navigating rooms
    By Jason in forum Android Export Module Version 2.0
    Replies: 1
    Last Post: 30th May 2013, 12:57 PM
  2. Rotating Sound Example
    By Eliyahu in forum File Archive
    Replies: 1
    Last Post: 17th September 2011, 04:05 AM
  3. Saving an entire application
    By Hazzow in forum Multimedia Fusion 2 - Technical Support
    Replies: 17
    Last Post: 13th May 2011, 12:58 PM
  4. Delete an entire folder?
    By Skeets in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 22nd March 2010, 10:24 PM
  5. Sub-app change for Oak room and Rainbow Room
    By fish20 in forum The Games Factory 2 - Technical Support
    Replies: 13
    Last Post: 21st October 2007, 07:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •