Skip to main content

Math Coding In Asteroids Game

Today Ant taught us all about Dot Product.
The mathematics description of dot product:
“The Dot Product gives the cosine of the angle between two vectors times by the length of each vector”
The dot product would look like this when it is written out. (?,?,?) . (?,?,?)
Say the 2 coordinates are
(7,-4,2) and (6,2,0.5)
You must multiply the XYZ values against the other XYZ values
(42,-8,1) 
You then add them 3 numbers together to get the dot product which in this case would be 37.

Comments

Popular posts from this blog

Sculpting a Character in Mudbox

So today I have been using Mudbox to sculpt a character. The character itself is a turtle with its shell on. So to start off I decided to work on his skin first and within this I was using two main tools the first being the imprint tool and the second being the smooth tool. I started off with a stamp that comes with Mudbox and I would just stamp the area I needed to give it a bumpy area on the skin. I would then smooth off the more harsh areas so it doesn't have any major jagged lines on it. After doing this for a while I started to notice that it was giving off quite a stone texture to the skin which I started to like after a while. However when it came to the feet I changed it up a little as I smoothed the toes a lot more than the other parts of the body which makes them stand out more and when it comes to texturing this guy I can add more detail to it by changing some of the colours around. Next I started on sculpting on the shell which I made look very unique as I made some v...

Bump, Normal & Displacement Mapping

Bump Maps A Bump map is an older type of map that create fake detail by giving an illusion of depth on the surface of a model using a very simple lighting trick. You don't get any additional resolution added to a model as a result of bump mapping. Bump maps are typically greyscale images that are limited to 8-bits of colour information. This tells the 3D software whether it is up or down. Bump maps are great for creating tiny details on a model such as wrinkles on skin and because the detail they create is fake the silhouette of the geometry that the bump map is applied to will always be unaffected by the map. Normal Maps Normal maps can be referred to as a newer better type of bump map, as with bump maps what you need to know is that the detail they create is fake and there is no additional resolution added to the geometry. A normal map creates the illusion of depth detail on the surface like a bump map however it does it differently. A normal map uses RGB information that ...

Contract Types

Intern-ships: An internship is a temporary job position with an emphasis with on the job training rather than just employment, it can be both paid and unpaid employment. In some cases when applying for a job you may be required to take an internship before the employers deem you qualified for the job, this is more common with Publishers than Developers. How are they paid? Interns are paid by their employers if they’re getting paid, those who do according to NACE’s intern compensation report average wage for an intern with a masters degree is 35% more than those with a bachelors degree. Benefits When you have an internship you’re getting real work experience that’s invaluable when it comes to looking for a full-time job and shouldn’t be overlooked, also when you work an internship for the company they may consider taking you on for a full-time job or if and when they need a man to fill a position for a couple of months you could be on their list. Disadvantages Interns are usually paid l...