• 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 chaeljc · Oct 18, 2016 at 07:18 PM · scripting problemgameobjectsdesignmovinggameobject

Moving colorizing ground/floor to work with mucic

Hi all. This is sort of two related questions that i hope you can help me with..

My interest is in using unity as the virtual arena in which to host a virtual reality (oculus rift) music video experience.
To be clear.. i am not making a game as such ... I am creating an arena in which when a user puts on their VR HMD a song will play. during that time the person can move around and interact with certain elements of the environment. other elements will trigger at certain points in the song, other objects may move in time to the music using the spectrum analizer.

if i could paint the picture of what i would ideally like to do, I would be most grateful if any of you could advise me on how i might approach such a thing....

imagine an area of potentially uneven ground... mildly rolling hills. imagine the surface is completely tiled.

objective 1.... at certain points in the song - say on a deep bass note or lingering crash sound, the sound causes the tiled ground to move into a large wave or series of waves to advance towards the user - much like a wave moving acrosss the ocean, only this time its the floor / ground area in the game. The use will see the 'ground wave' approach them and as the wave passes through the ground they are standing on, they will move up and down accordingly. ideally different ground waves could emanate from different areas of the ground as the result of different triggers. thats it .. simple really! lol

im pretty new to unity so i dont even know how i would approach this... a huge mesh layed out across the game area with cubes attached? thats about as far as i can think lol.

Objective2: if objective1 was possible, it would then be awesome to be able to change the colour of the 'wave cubes' / wave-mesh depending on how high they are on the wave. for example, if the floor is say black or dark.. as the cubes/floor object rises on the wave it begins to change colour getting brighter, changing colour etc the higher it rises on the wave, the going back to black as the wave passes. assuming the wave is as wide as the floor space the user would see a rolling undulating line of colour moving across the floor towards them along with the wave.

As a total extra bonus, if this can be done with ground / flooring, i assume it would be possible to transfer the effects to walls too?

anyhoo, there you have it. ambitious? possible even? i dont know, but it would be awesome if anyone could give me some guidance on how i might approach this.

if i manage to get it done ill of course post all up online freely so that others can use and learn from.

Regards

Michael

PS: if you have any working / half working examples for download, that could be expanded upon, that would be awesome too. :)

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
0

Answer by OusedGames · Oct 19, 2016 at 01:38 AM

About the color:

  • You just need to access the object material by script and change the color!

About the objects:

  • Create cubes on the floor

  • OnTriggerEnter (player entered the collider of a floor tile)

  • Do whatever you whant with the object

Good lucky buddy

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 chaeljc · Oct 19, 2016 at 06:31 PM

hi there OusedGames. Many thanks for your speedly reply. Im very new to unity and game design, could i therefore clarify a couple of points in your reply...

RE: Create cubes on the floor...

Firstly - is this a valid approach for simulating a large tiled surface that you want to move in response to musical beats?

secodly - have these cubes to be attached / anchored to anything (a mesh? i've no idea lol) to stop them moving location, for example sliding down a hill, or to ensure they return to the same spot on the ground when moved by music beats?

many thanks

kind regards

michael

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 OusedGames · Oct 20, 2016 at 01:39 AM 0
Share

Yeah, it is a good approach!

  • Every cube will have a script that will do something

  • You can change colors and move by script

  • Or

  • Create an animation


I would recommend you watching some youtube videos! - But do not go to especific like "VR Unity music tutorial" - Search for basics and then learn and move to the next point

Good luck buddy

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Creating an "Importance Manager" to destroy older GameObjects from a list to make way for new GameObjects. 1 Answer

Creating a dynamic dropdown menu based on active GameObjects 0 Answers

Creating one class or using polymorphism? 1 Answer

Make a game object in a scene into a prefab with script 1 Answer

Gameobject dependencies 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