3D unity game

 30/9/20

we loaded unity and created a new project. We encountered a few problems because we didn't download the entire asset package which was easily fixed by downloading the rest. We went over the basics of how to look around freely and put in objects.

shortcuts:

holding right click on mouse - can look around

alt + right click key - looks around the center of the scene

'R' key - resize

'E' key - rotate

'W' key - move

ctrl 'k' 'u' - removes // to script

ctrl 'k' c - adds // to script


7/10/20

Today we learnt how to put in a background. within windows - rendering - lighting setting we can change the background to a sky image in the 'skybox material'


using 'hdri haven' we found different background images.

We created a wall that acts as a trigger when the player walks through the ball would fall from the sky.



I also used a free 3D model website called free3D.com where i downloaded a bowling pin. Once i added it to my assets i added box collider to then realise the ball wouldn't knock the pin over so i had to resize to collider. then i found it knocked it before it touched it so i used a capsule collider instead to fit its abnormal shape. 




Then we added a collider counter named "Trigger count" in the code


14/10/20

Today we added a health manager script and added more to the 'SphereAppear' code so that when the player collides with the ball they lose health. therefore, we needed to make an enemy script too.

I attempted to experiment more with the bowling idea by creating a script for the gutter to count how many pins fall. I came across a few problems such as the score not increasing and value not found.



After re thinking about how my script is set up, I decided that the score should be based on  the collision of the ball and pins not the pins falling into the 'gutter'. in the image below at the bottom in ' console' it states 6 pins were knocked down.

We use ProBuilder to create a new shape


When you alt click on shape selector it comes up with other shapes such as stairs.


We also added a cube map to add a background via lighting. we used hdri to cubemap to download the image.


21/10/20

we use Probuilder which brought up different tools such as UV editor which allows us to resize and position images.

freeze transform sets the new position to 0

when holding shift you can drag and paste the object then face merge it to make it one.


Using new poly shape this allows us to create 3D buildings once you create the shape make it 3D then you click flip normal within ProBuilder. I experimented with the smooth tool to make an arch less ridged.


I also created a well. I made this by putting a shape inside another then use experiment boolean tool to subtract one object from another. 



28/110/20
Today were working on character animation
the asset pack came with the characters animation already but we still experimented with our own

I added the script for my character to move and now I am setting up the scene. I added a green directional light to give it more of a spooky theme and then i edited the real-time shadow resolution to very high. within the lighting settings I removed the global illumination and turned the skybox material to nothing to create the night setting. The equator colour effects the brightness of the walls and props.

There are 2 tkinds of lighting in unity: direct and indirect. direct is from a specific source i.e. the sun. indirect is the additional lighting that occurs when light bounces off surfaces.

I then had to make the level static apart from the ceilings otherwise the ghosts may end up walking on the ceiling. I had to create a AI navigation system for the ghosts to move about.

4/11/20

I had to download the post processing package in package manager to do the posty processing volumes to make the game more aesthetic.

in this i added colour grading. The tonemapping was enabled and changed to 'ACES@ which made the scene darker to create a film like look.

bloom gives the scene a glow

ambient occlusion darkens corners and cracks. mimicing real life effects

vignette darkens the edges of the camera lens

Aliasing is when the edge of an object looks jagged and the pixel outline can be seen:


25/11/20

finish john lemon game!

I made the backgrounds appear when the player gets caught. I had problems before where the image wasn't stretched over the canvas.

The i created way points for the ghost to follow so it can move back and fourth (and one walks around the table so it needed 4 way points).

I tidied up my heirarchy by putting enemys in an object and the waypoints.

I then learnt about audio on unity.

The spatial blend of a particular audio determines whether it sounds like its coming from a particular point in the game world. The spatial blend on my game is set as 2D

I had to edit the EndGame script as well as the player-movement script to add the audio. For the ghosts i made the audio get louder when the are closer to the character. To do this i made the spatial blend value to 1, meaning it is in 3D mode and to change the spread to 180 to make the sound seem directionless.


we started a new project

we looked at joints - https://docs.unity3d.com/Manual/Joints.html

using fixed joints in the spheres and hinge joints on the platform .

We encountered an error with downloading the cinemachine as when we played it the camera kept switching angels at a fast pace. We resolved this when importing the cinemachine before the assets and other packages.

I created a script for the cannon named projectile launcher. This script is then used as a function within another script of target collision of the target. which also had the function of enabling the next camera.


2/12/20

We started a new game

We created a script for the health bar. within this it controlls the filler when the player gets damaged. I also wrote in about colour so that i could change the colour of the fill within the health bar, which i made a gradient of red, yellow and green shown below


We downloaded cinemachine to follow the player when they run about

then I created the player health script. Within this I wrote a tester to see if the player would take damage when a key is pressed within a private void.



9/12/20

I encountered many problems with unity:

-file wouldnt deompress

-has to pdate the installation

-renderer wouldnt work - fixed by: edit> render pipeline> universal render pipeline> update project materials


References

bowling pin - https://free3d.com/3d-model/bowling-pin-v1--196951.html accessed 7/10/20

cube map - https://matheowis.github.io/HDRI-to-CubeMap/

John Lemon assests and tutorial - https://assetstore.unity.com/packages/essentials/tutorial-projects/3d-beginner-tutorial-resources-143848 

Comments

Popular posts from this blog

Class project