Monday, 18 March 2013

step by step


To start of the creation of my soundtoy I had to make the keyboard using cinema 4D.




To start I created a cube then resized it in to the shape of a mac keyboard.I also rounded of the edges to make it look better. 

Next Created a cube and resized it into the shape of a key on the keyboard and positioned in on the keyboard. Then I duplicated it to make the other keys. 


For some of the keys I had to resize them again to match certain keys on the keyboard. when I finished creating each key I checked to see if I had the correct amount of keys and that they were in the correct position.
When i finished that I then got a picture of a mac keyboard to use as a texture for each key.
To start I opened the picture in preview and selected the key I wanted and went on edit cut the edit paste in new.
I then saved it in a folder and done this for each key on the keyboard.
Next I created a new material and on the material open the key texture and then applied it to the correct key.
I done this for every key on the keyboard.

When I finished I rendered it then imported it in to unity. After importing it in to unity I encountered a problem and that was that the textures did not work and I would have to redo them all again in unity.




In unity I created a square room using four cubes and resizing them and positioning. Next I place a spotlight and the keyboard inside the room making sure the keyboard was in the middle and the brightness of the light was good. Then I put in a camera and used the mouse orbit script and made a few changes so it will only move the camera if you click and drag and I made it so the cameras centre is the keyboard.






Next I added my help icon, so I done some research on scripting buttons and found out how to make it so the text will appear if the button was clicked and disappear when clicked again.













After recording my sounds and editing them in audacity I then imported them in to unity. Next I made a new input key for each letter on the keyboard. Once i finished this I researched how to change a objects colour when key pressed and for a duration of time. I also researched how to play a sound when key pressed. After figuring out what code to put I then done a script for each key and sound after that my soundtoy was finished.

No comments:

Post a Comment