Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 Kokujou · Apr 21, 2015 at 06:21 AM · c#audioproceduralmp3

Audiosurf Visualization

Hello,

Audiosurf is a game that creates a individual road by a music track. my question is: how can I do this too? how can i create a dynamic road by using mp3 audio files?

i hope you know what i mean!

If code: C# 'd be nice.

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 hbalint1 · Apr 21, 2015 at 08:57 AM

Here are some examples to visualize a song: http://gamedevelopment.tutsplus.com/tutorials/how-to-use-sound-to-make-3d-geometry-in-unity--cms-20456

you should make something like the Line Visualizer, but in 3d, so give some depth to it. After that you can scale it up, or scale your character down, and your map is 'almost' ready.

Comment
Add comment · Show 5 · 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 Kokujou · Apr 21, 2015 at 10:26 AM 0
Share

that looks very nice thank you! now i just have to look how i can ... lets say "smoothen" the roads.

btw: another problem is to create the road. i'm not very good in creating meshs by code is there something that can help me?

avatar image hbalint1 · Apr 21, 2015 at 11:14 AM 0
Share

Sorry I'm not into it either. $$anonymous$$aybe this can be a starting point: http://docs.unity3d.com/ScriptReference/$$anonymous$$esh.html For smoothing you could write sampling, maybe it's in the visualizer methods, and you don't draw all the frequence, just an average. Anyway if you are managed to do that I'm also interested in it :D

avatar image Kokujou · Apr 21, 2015 at 06:18 PM 0
Share

i know this one already... i mean you know if i want to draw a curve mesh i have to generate ... well.. $$anonymous$$ANY $$anonymous$$ANY vertices >.> very many... countless! i mean to make a simple pyramid you need about 9 vertices !! thats just sick! think about it when you need a road where you can let a car run 5 $$anonymous$$utes... must be about 200.000 vertices

avatar image hbalint1 · Apr 21, 2015 at 06:26 PM 0
Share

yes. i read on a forum, that you should do it partially, because the info you get from the audio, gives you more than 10million floats and crash your PC. So somehow you sould get the $$anonymous$$imum sample, like 10 seconds from the audio, draw it, then clear everything.

avatar image Kokujou · Apr 22, 2015 at 07:18 PM 0
Share

maybe... or you take a more precisely sample like 1s or 0.5s and calculate the average and use this one... or you take the maximum... because it'd be good if the user sees that the road builds depending on the music. it should be really a project to do this i hope i'll get ready in time with this. 'cause its our project in university

avatar image
0

Answer by Rouge Digital · Jul 03, 2016 at 09:45 PM

I maid an Asset play mp3's into a audiosource, it works on Win, Max, Linux, iOS, android...

It works for local mp3 files and web streams.

Asset - uAudio: Mp3 Player/Streamer

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

22 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Android play mp3 file 0 Answers

Distribute terrain in zones 3 Answers

Multiple Cars not working 1 Answer

Is OnAudioFilterRead Still the Preferred Method for Procedural Audio? 0 Answers

Procedural generated mesh problem 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