3D Graphics

Development of 3D Graphics

Utah Teapot

The Utah Teapot is a 3D computer model of a teapot. A teapot primitive is considered the equivalent of a "hello, world" program.

Visual Python

On day one of the week we came back, we learned about Visual Python. We made shapes that were 3D and could be seen on a two dimensional screen. One of the shapes we made was a cube. To create a cube, we enter "box()". Here is a picture of the cube we had made:

And here is the picture of the code for it:

Ice Cream Cone

After we had created the cube, Mr.Farrell had told us about a Tahoma student creating an ice cream cone. So, we decided to try it. Here is the picture of the ice cream cone:

Here is the picture for the code:

The Rotating Cube

Have you ever wanted to see a cube made only out of lines? Did you ever want to see through it? Well, I made a cube that could answer both questions. Here is the cube:

To make this cube I needed code for three parts. Here is the code for the first square:

Here is the second part:

Lastly, here is the code for connecting two of the squares together:

Day 2

On the second day of 3D Graphics, we used Alice. Alice is a programming educational programming language wtih an integrated development environment. We use Alice to create computer animations using 3D models.. Today, I had used Alice to make random things. One of the things I made was two ballerinas dancing. It was very simple and didn't take that much time. Here are the two ballerinas mid-dancing/turning:

To make the ballerinas move I used a loop. The code would loop two times and then the ballerinas would stop. Here is the code:

Day 3

On Day 3 of 3D Graphics, we used SketchUp. SketchUp is a 3D modelling computer program where we can create 3D models like houses or cars. On SketchUp today, I had made a house. This house was inspired off a Sims Freeplay house. Sims Freeplay is an app made by EA which we had just gone to a field trip the day before. Here is the inside of the house:

I added a roof later on so it could look more like a house. Here is a side view of the house:

In the end, I coloured the whole house and even added a pool. I wanted to make the house seem more realistic since it is already 3D so adding realistic patterns to the house made it look cooler. Adding a pool would mean the house would be more refreshing so that's why I added a pool. The house looks like this:

Day 4

On Day 4 of 3D Graphics, we did a crash course in Trigonometry. We made a solar system model using Visual Python. To get Earth's position, we tied it to a sine or cosine.

The sun had to be light since it is bright. This code made the sun's light reflect off Earth.

Later on, I continued using Sketchup. I remember Mr.Farrell telling us about how some students created iPhones using Sketchup so I decided to try it. It was so hard getting every single detail the iPhone had like the power button, the volume, and the charger. In the end, the iPhone looked liked it was real. The phone is suppose to be an iPhone 6 Plus but I am pretty sure it looks like a combination of a 5s and a 6.

Here is the back:

Day 5

Vectors for Projectiles

On Friday we learned to create projectiles. To move them, we used vectors.

We made a ball and a floor. The ball bounced off and it would bounce into a black space.

Remember how the day before I created an iPhone 6 plus in Sketchup? Well, since I made an iPhone 6 plus, I decided to make an iPhone 5s.