Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
4
Question by nnx · Mar 24, 2010 at 01:03 PM · audiosoundaudiosourcemusic

3D Audio: Selectively Apply the Doppler Effect.

To sum things up briefly:

I have 5 objects in a scene. In this scene I need three of the objects to emit ambient music. The other two objects emit sound effects.

I need the music emitting objects to still update the volume based on the 3D position, but I need them to NOT apply the Doppler effect(No change to pitch/speed for synchronization reasons)

The other two objects DO need the Doppler effect active. Is there any way to achieve this?

So far I've only found a way to turn the Doppler effect on or off for the whole project. I've also found it's possible to apply only the Doppler effect and disregard position for volume. Shouldn't the reverse be possible?

Any help and input would be great! Thanks in advance for any replies. ~Jan

Comment
Add comment · Show 4
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image nnx · Mar 24, 2010 at 05:57 PM 0
Share

To clarify: In case it wasn't clear, by Doppler effect I mean the pitch distortion that happens based on the current 3D position and velocity relative to the audiolistener. I've confirmed the volume only-works.... but unfortunately only when the Doppler effect is disabled project-wide.

If there isn't a way to set the property, is there a workaround maybe? Thanks again for any input! ~Jan

avatar image sacredgeometry · Mar 24, 2010 at 06:51 PM 0
Share

im not sure if theres a work around using the inbuilt audio settings (i could be wrong i havent honestly looked) however the science of doppler isnt to difficult so creating your own sound script to recreate the effect shouldn't be too hard. I will be back after some research. sorry i cant be more help

avatar image nnx · Mar 24, 2010 at 07:38 PM 0
Share

Thanks a ton for looking into it. I'm wondering which approach would be simpler, if it comes down to re-coding part of the effects myself: Attempting to code the doppler or attempting to code the playback and fade in/out. I assume synchronization may end up being harder so coding the doppler may be the way to go if there's no other workaround.

Thanks again for looking into it

avatar image nnx · Mar 25, 2010 at 07:08 PM 0
Share

Still no luck. Still looking into it. Any further help/input would be awesome. Thanks in advance

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Sren Christiansen · Mar 30, 2010 at 08:43 AM

This is unfortunately not possible in 2.6 (unless you implement 3D panning yourself). However, 3.0 will expose this per audiosource (if it's any consolation).

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image nnx · Mar 31, 2010 at 12:30 PM 0
Share

Thanks a ton. Really wanted to confirm this. Will be very much looking forward to the release of 3.0, then. We'll just put this particular part of the project on hold until we can work with the new version.

Thanks for the support everyone!

avatar image
0

Answer by mcfrei · Jul 27, 2010 at 11:47 AM

please note that it is a relatively common task

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

Max amount of simultaneous, hearable sounds? 1 Answer

Multiple audioSources on same gameObject? 1 Answer

Audio cuts out once a certain number of sounds are played 0 Answers

Background music 0 Answers

Theme music for approach to object question 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges