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
0
Question by GKuhns · Feb 14, 2017 at 06:30 AM · 3dsoundsjet

How can I make the AI jet have 3D sound?

I'm working on a game which uses the AI jet from Unity's Standard Assets, but I find that the sounds (jet engine & flight wind) are not being handled as 3d, so no Doppler effect, no volume roll-off, just a constant level all the time, regardless of player's proximity to the jet. The AeroplaneAudio.cs doesn't provide an option for 3D sound, and I don't know how to code one in.

I tried creating an empty game object, adding an audio source component, adding a simple script to play the jet sound, and made that game object a child of the AI jet... this gave me a Doppler effect, but it bore no relation to my proximity to the jet, and the volume level was still constant regardless of proximity.

I wonder if I'm just missing something simple that isn't obvious to this relative noob...

If anyone could lend me a clue, that would be greatly appreciated, since at present, I am entirely without clue.

Comment
Add comment
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

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by GKuhns · Feb 14, 2017 at 09:39 PM

OK, I found a solution.

I created an empty GameObject, attached it o the AI Jet, gave it an audio source, assigned the jet sound, set spatial blend to 3d, (leave Doppler level at 1) - but the key turns out to be changing the volume rolloff from Logorythmic Rolloff to Linear Rolloff.

Now I have a working 3d jet sound. hooray. On to the next challenge.

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
avatar image
0

Answer by PixelSpartan · Feb 14, 2017 at 04:37 PM

Find the jet's AudioSource component and go to "doppler" and slide it all the way to the right (says 3d below the slider)

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 PixelSpartan · Feb 14, 2017 at 04:38 PM 0
Share

Every time you add a audio source component for some reason the doppler slider is always set to 2D, so you always have to slide it if you are making 3d games

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

3d sounds don't work anymore when level is restarted 1 Answer

How can i make gun sounds play to all players? using photon. 1 Answer

Efficient Rotation with Different Rotation Rates on Each Axis 0 Answers

Third Person Controller Rotation 0 Answers

ragdoll head stretching 0 Answers


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