Week 1
— GAD174 —
— GAD174 —
This unit is not just for 3D modelling and is not for making a game. It is for asset creation such as UI, audio, some 3D modelling, UV unwrapping and texturing and characters and animation.
Marking weight is 25% UI, 25% reflections, 25% audio and 25% 3D modelling.
Each section must meet minimum requirements.
If you are unable to keep on track with documenting your work, record your screen and edit it to only include important parts or speed up footage in between important parts (or both), and upload to Google Drive or YouTube.
Brief 1 is between weeks 1–3, brief 2 is between weeks 4–7 and brief 3 is between weeks 8–12.
Project reflections only, no more weekly reflections, but must have a mid and final project reflection and must contain at least one APA7 reference.
Tip on reflections shown on slide 7
Important LOs for this class are:
CLO1—regular and consistent project reflections;
LO1—using audio systems in projects
LO2—keep track of work for research, design and development stages;
LO3—do research to/and implement a good enough UI; and
LO4—do proper researching for developing assets
See slides 9–11 for recording workflow for projects 1–3
Asperite is a good program for pixel art. https://www.aseprite.org/
Krita is a professional FREE and open source painting program. It is made by artists that want to see affordable art tools for everyone. https://krita.org/en/
Amdyoussef (2019) [2]
u/DuhonTheGuy (2020) [3]
partheeban (2019, January 31) [5]
This is the mini project 1 in which we learn a small part of what will be shown in project 1, before actually beginning work on project 1.
In this mini project, we are tasked to create a readable book in Unity by inserting a book model into Unity, whether we made one ourselves or found one online via Sketchfab, and creating a user interface for the book that allows the user to scroll through different simulated pages of the book containing different text of whatever kind. This mini project task also requires the use of sound clips, which is to be played when the player flips the pages in the book.
Image: Book, by Alexis Bailey (2016) [6]
In this section of the page, I will go over the more important steps of what I did for this project. The main content will be the video below, which you can watch if you would like, otherwise see below the video for each important part of this mini project in text with screenshots.
Using the links I saved on my learning journal (above this section), I downloaded an open book model and texture to use in this mini project. I was able to get the model in .blend format, which Unity supports, and the texture as a JPG. To use the book model, all I needed to do was drag it into my scene. With the book texture however, I needed to first set the image type as "Sprite (2D and UI)" before I could use it with the UI canvas.
To let the player read its contents, I created an overlay for the book. This utilizes the open book image that I saved on this learning journal (above this section), plus four different sections of dialogue from The Stanley Parable (which I thought would be a better choice over just Lorem Ipsum text).
I also made the screen behind the book overlay darken using a translucent black panel, plus blur using Unity's Post Processing stack. I did this to add a bit of extra polish to the project and make it not only more visually appealing, but also easier on the eyes when reading the contents of the book.
To allow the player to flip through the book and read the different sections of dialogue from the Stanley Parable, I implemented three buttons at the bottom of the overlay: a back, close and next button. There's also an open button for when the book is closed.
To make the buttons do stuff, I used the Unity Event System that is attached to the buttons by default. To get an idea of what each button does, the next button for page 1 does the following:
Change the header text to "Coward Ending"
Disable the text for page 1
Disable the text for page 2
Enable the text for page 3
Enable the text for page 4
Enable the next button for page 3–4
Enable the back button for page 3–4
Disable the next button for page 1–2
Use PlayOneShot function to play page turn audio clip
There is different text on each page, granted, but because it's not possible to have the Event System use line breaks (as far as I know) when getting it to change what text says, I had to create multiple text objects for each set of pages (for example, pages 3–4 have "Page 3 Text" and "Page 4 Text" objects).
I also had to create multiple buttons for each page set as there's no possible way as far as I know for me to be able to change the list of functions in an Event System during runtime without the use of scripting (which I tried not to do as much as possible for this project), so for example, pages 1–2 have a button named "Page 1 Next Button", while pages 3–4 have a button named "Page 2 Next Button".
Implementing audio into this project was pretty simple. The project only really needed two different audio clips: one for closing the book and another for turning the books (and also opening the book). I was able to get the page turn sound effect from a website online, which I've linked in my learning journal above, but for the book close sound effect, I had to record that myself using a fairly thick physical book I have (thank you, Tom Clancy).
For the ability to play these clips in the project, I had to create a new audio source, which is very simple as all you need to do is go into GameObject > Audio > Audio Source to create one. From here, I can use the audio source's PlayOneShot function in the Event System to play these sound effects without the issue of the audio clips cutting to play a new sound effect.
I have created builds for this game to show the final product.
In this Google Drive folder, you will see that there are three different builds of this project; I recommend choosing Build 3 (v3) as this is the build that is the most up-to-date version of the project and contains all the requirements for the task. The other versions are included for archiving purposes.
[Header] García, J. (2017). Bright Path [Image]. Unsplash. https://images.unsplash.com/photo-1500408698778-2afa347782f3
[1] bgfons. (n.d.). book, Texture book, download background, book texture background, books [Image]. http://bgfons.com/uploads/books/books_texture3018.jpg
[2] Amdyoussef (2019). BOOK. Retrieved September 23, 2022 from https://sketchfab.com/3d-models/book-2d6812b8d9c2439aa5e647b38ed9c047
[3] u/DuhonTheGuy (2020). This is inside the TF2 game files as "coconut.jpg". Why [Image]. Reddit. https://i.redd.it/vw6c9iwr6rk51.jpg
[4] Fandom (n.d.). Dialogue | The Stanley Parable Wiki. Retrieved September 23, 2022 from https://thestanleyparable.fandom.com/wiki/Dialogue#articleComments
[5] partheeban (2019, January 31). turnPage.mp3 [Audio clip]. Freesound. https://freesound.org/people/partheeban/sounds/457767/
[6] Alexis Bailey (2016). Download PNG image - Book Png 9 [Image]. FreePNGimg. https://freepngimg.com/thumb/book/8-2-book-png-9.png