Labels

Wednesday, 26 March 2014

Fire Level Construction


 Fire Level Elements


After blocking out the basic positions of the grey box export from unity in maya, The mesh was manipulated and shaped in order to further enhance the environmental features. Using a team mate's sketch puzzles were also blocked out. Minor changes regarding the position of vertexes occurred in order to best suit the final outcome seen below.


Only Volcano and Background pieces used for examples although methods applied to all meshes.


The Fire Level Environment is made up of various 3d meshes, Using the colour palet I applied colour to selected faces on the chosen objects. 




Due to unitys light mapping system I was required to split the larger meshes into smaller pieces using 'detach component' in Maya.. The animation for the enviromental features that move was done in unity.
Here, the background pieces are shown and rendered, the render will be exported and applied to a plane.





Here are the final assets for the fire level, the same process has been applied to them and these are mantal ray renders. Objects like the rock door 1 & 2 and falling boulder will be coded in unity the others, just static visuals, platforms are also occasionally animated.



Mechanic's Electro Ball

The mechanic's electric ball is made from a sphere and a texture that has had an alpha channel applied to it (shown below)


This is the .tga that allows the selected areas to show within unity, in this case 'white' within the image will appear see through. this was created in Photoshop by... 

- drawing a jagged pattern 
- creating 2 copies 1 blue 1 white
- blur blue lines
- create alpha channel


The white part of the texture is being affected by the alpha channel and this is turn leads to a forcefield type effect


This will be parented to the mechanic character in unity and will animate to the correct controls.


Tuesday, 25 March 2014

Mechanic Animation


The mechanic is made up of 4 separate parts
1.Body
2.Left Arm
3.Right Arm
4.Antena 1&2

The body position itself did not need to be animated as it was being coded, the arm's pivot points were positioned where they connect to the body and rotated around the z axis in order to keep them connected during the animation process.


1st Key Frame: Both the arms starting position

24th Key Frame: The highest point the arms will reach

48th Key Frame: returns the arms to the starting point


The antenna's movements are subtle but give the mechanic more character, it was done but simply moving the top vertices on the arial shown below.


(Timeline in Above img)

50th Key Frame: Antena 1 & 2 starting point

60th Key Frame: Antena 2 second position

66th Key Frame: Antena 1 second position

80th Key Frame: Antena 1 & 2 back to original position

96th Key Frame: End

Unity can manipulate timelines of animations allowing us to cut out the 16 empty frames from 80 to 96 rather than shorten it in Maya

Arial Enemy Animation

Animating the arial enemy was straight forward. After binding the bones to the body with 'smooth bind' I was able to manipulate the tentacles. By setting up a timeline, I was able to create key frames of the enemy's position. I did this by rotating each bone to create a curve. 

1st Key Frame: The Arial enemy's tentacle curves to the left side slightly.


48th Key Frame: halfway through timeline Tentacles curve to the right


96th Key Frame: The end is a copy and paste of the 1st Key Frames positioning in order to ensure loop-ability


Monday, 24 March 2014

Arial Enemy


Here is the arial enemy's mesh and texture for the forest level, like the standard enemy the mesh will remain the same but the textures will change depending on what environment they are placed within. the bottom screen shot (Left) shows the bones. The animation will consist of small tentacle movements as actual object movement will be applied in Unity.
 
Here are the Different Textures
 
 
 
The Fur on the top of the head and the chin is just a ring of one sided polys with an alpha map on it, the black is what will not show up, the alpha channel stays the same but the colour of the texture is swapped for each enemy
 
 
 The animation is fairly straight forward for these guys, the bones ive created will just sway a little and i removed the influence of them on the head of the creature so only the tentacles will move
 


Mechanic Model - Texture



This model is fairly basic, the arms are seperate components in order to make them animatable seperate form the body. The animation applied is a smooth movement of the arms moving up and down in order to add to the effect of floating which has been scripted by Luke in Unity. The orange spheres at the end of each arm are the 'Engines' we will add a particle effect around these as well as a blue-ish glow around the lense to make the Mechanic look both more alive and like a working machine.

when the mechanic interacts with objects he will now produce what looks like an electricle current which is actually an animated sphere with an alpha map on it. This is a visual representation of an interaction that will indicate to the player that the attempted control has worked.



Textures

Mechanic Arm


Mechanic Body

In photoshop I created the effect of raised panels by using the emboss filter on the specific layers giving the texture a bit more depth


Mechanic Engines


Mechanic Lense


Mechanic Body UV Snapshot


Mechanic Arm UV Snapshot




Friday, 21 March 2014

Puzzle and Level Mechanics - Fire

Once the Ice section mechanics were finished I moved to to the mechanics of the fire level. Some of the mechanics have been shared between sections, such as the moving / falling platforms. The Fire section was designed with only one large puzzle as it was decided that to increase the difficulty, the level would be more focus around difficult platforming mechanics.

The first part of the Fire section is a vertical ascent up the inside of a volcano. As you scale the volcano there is lava that rises below you. This was a fairly simple mechanic to script as it uses pretty much the same script as the other moving platforms with a few adjustments. You can see it in action below:


In the section following the volcano there are a series of "floating" platforms that are to be used for the player to travel over the lava that they are floating on. These also use similar code to the previous moving platforms, however these platforms move along a path made with a series of waypoints:


The following code shows how the waypoint system has been implemented:


In the same area as the floating platforms there is another level hazard that comes in the form of falling volcanic boulders. There is a series of game objects suspended above the level that each fall at a random speed. Each time a boulder hits the player or another collider, they are destroyed and the boulders position is reset to its starting height but with a random position along the X axis so that no pattern is formed to increase the difficulty:


This code snippet shows how the rocks are repositioned and how their falling speed is set:


As the section that is to follow the fire section has no puzzles, the final puzzle in the fire section is much more complex than previous puzzles. The mechanic behind the puzzle is a series of 3 buttons that must be pressed in specific orders to open certain doors. Following the section with the 3 buttons the player is faced with a large door. To open the door a button or lever must be interacted with to open the door. Each time the button is pressed the door only opens a small amount and will continuously close. In order to make it through the player must keep pressing the button until the door is raised fully and then run to make it under the door before it closes.


This code shows how the ordering of the 3 buttons is managed. It proved to be quite difficult to script this as it had to be possible to press the buttons in the incorrect order and have them reset so that you had to start the order again.