Posted on December 31, 2008 by Chris Mckellar
After a hard 11 weeks ive finally finished my software renderer I am very pleased with the outcome and as i have finished term time i will still be working on it and get texturing finished. This final week I focused on the user interface and added controls to show the features of the render, [...]
Filed under: Intro to 3D Graphics | Leave a Comment »
Posted on December 17, 2008 by Chris Mckellar
Posted on December 8, 2008 by Chris Mckellar
This weeks intro to 3D ive been struggling with the gouraud lighthing/shading i got stuck on a problem that was my model was black on screen even after i hardcoded the colour values. I spoke to adam and found the problem the makeARGB i was using it without putting Color:: infront. After this my model [...]
Filed under: Intro to 3D Graphics | Leave a Comment »
Posted on December 1, 2008 by Chris Mckellar
Past 2 weeks i have been trying to make my own rasteriser which will allow me to do advanced shading techniques such as Gouraud shading. I have been struggling getting my head around making my own rasteriser figuring out the scan lines that go across the screen,Interpolation and setting the individual pixel. I came across [...]
Filed under: Intro to 3D Graphics | Leave a Comment »
Posted on November 24, 2008 by Chris Mckellar
I haven’t done an update on this in 2 weeks but i have made a lot of progress since the last update i now have flat shading on my models, Point light,Ambient and Directional lights in my scene. I also got it shading different colours depending on the lights colour it reflects some of the [...]
Filed under: Intro to 3D Graphics | Leave a Comment »
Posted on November 9, 2008 by Chris Mckellar
Here it is finally after many hours of frustration i have my model rendered to screen with rotation
To begin with every time I ran my programme it would close. I debugged my way through every line and came across a silly mistake. In my main message loop for the window I had changed if (msg.message [...]
Filed under: Intro to 3D Graphics | Leave a Comment »
Posted on November 2, 2008 by Chris Mckellar
This week i have been looking at getting the model to display on screen using GUI. I have had to implement a couple of new classes such as the MyApp class which is used as the rendering pipleline this is where everything gets made and rendered to the screen. I have ran into a few [...]
Filed under: Intro to 3D Graphics | Leave a Comment »
Posted on October 26, 2008 by Chris Mckellar
This week i have been looking at virtual cameras in 3D space. I learnt about the uses of a virtual camera in that it is used as if it was your eyes looking around the world space. We looked at the Roll(Z axis),Pitch(X axis),Yaw(Y axis) this is used to rotate the camera using a matrix [...]
Filed under: Intro to 3D Graphics | Leave a Comment »
Posted on October 21, 2008 by Chris Mckellar
This week i have been implementing a Matrix class into my program. Here are some of the Matrix transforms
Matrix Transforms
Translation
x 100 xshift
y = 010 yshift
z 001 z shift
w 0001
To move along the x,y or z axis you just change the x,y,z shift to the value you want to move by you can use minus to [...]
Filed under: Intro to 3D Graphics | Tagged: 3D, Graphics, Maths, Matrices, Matrix, Programming | Leave a Comment »
Posted on October 12, 2008 by Chris Mckellar
Matrices are a useful way of presenting data in a neat tabular form. A matrix is a rectangular array of numbers with each element being a number of the array. n rows and m columns
A = 1,2,3
4,5,6
7,8,9
Adding two matrices together
3,-2,5 7,8,4 = 3+7,-2+8,5+4 = 10,6,9
1,3,4 [...]
Filed under: Intro to 3D Graphics | Tagged: 3D, Graphics, Maths, Matrices, Matrix, Programming | Leave a Comment »