This week I’m working with branches and loops in the assembly language. Here is a program which works out the Fibonacci series. It was part of an exercise.
## fibo
.text
.globl main
main:
ori $8, $0, 0 # Previous
ori $9, $0, 1 # Current
ori $11, [...]
Read Full Post »
This week I (the class) looked at Spaces & Cameras. This was necessary in order to create the Camera class for my renderer. So, lets get into the theory behind the programming.
There are different coordinate systems/spaces used in the computer graphics pipeline to render the images on screen. Here they are explained briefly:
World space is [...]
Read Full Post »
This week, I finally got my teeth into a little piece of Unreal scripting. I (the class) was supplied with a mod and I had to edit that mod to fit in with the map I have produced for my game. The mod had a structured menu system and was edited to get rid of [...]
Read Full Post »
Next week I will be looking into virtual cameras and projection matrices, so just to know what I’ll be dealing with I have looked at them.
A virtual camera is the viewpoint of what is on the screen and cannot be seen directly. A good example of this is Super Mario 64, where Lakitu holds a [...]
Read Full Post »
I have created a Matrix class, which extends on the Vector class that was made last week. The vectors have now been made into 4D. That’s right 4D (if I was confused enough already).
The matrices in my class are 4 x 4 matrices and it allows user input.
The functions that have [...]
Read Full Post »
Since I’m likely to forget certain things, I have decided to note them down here just to remember them.
Converting from Decimal to Hex
If you wish to convert 1128 to Hex. Firstly…
1128 / 16 = 70.5
Take the numbers after the decimal place and multiply it by 16
.5 x 16 = 8
Continue this routine with the number [...]
Read Full Post »
There are a variety of transformation techniques that can be used on vectors, for example rotation, scaling or translation. These calculations will be used to help me develop my matrix class. Here are the calculations used to calculate each transformation.
Rotation
If you wanted to rotate about a particular axis, you would multiply the vector you have [...]
Read Full Post »
My group is competing with the other group on our programme. Each group has to work as a team to construct a map in Unreal Editor. The other group chose to do the easy option (the University we work in), but since that was taken our group chose the humungous new attraction in Derby Town, [...]
Read Full Post »
Last week I looked at vectors. This week I’m looking at matrices. A matrix is a neat way to arrange data (numbers) into a fixed number of rows and columns. They can be used to define points, lines, shapes and in transformations.
Please excuse the way I’m writing out the matrices since I can only write [...]
Read Full Post »
This week I had to create a Vector class, that would be able to calculate operations such as the addition, subtraction between vectors, the multiplication or division by a scalar, the dot product, cross product and the unit vector.
I have created a program which allows the user to enter the x, y, z components of [...]
Read Full Post »