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, [...]
Archive for the ‘Intro to 3D Graphics’ Category
This weeks intro to 3D i fixed my gauraud shading. The problem i was getting was due to my interpolation calculation it was interpolating by the Y values but not the X values. The calculation i was using was the same one as my flat shading with my own rasteriser. To fix this i re [...]
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 [...]
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 [...]
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 [...]
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 [...]
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 [...]
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 [...]
Intro to 3D graphics week 3
Posted: October 21, 2008 in Intro to 3D GraphicsTags: 3D, Graphics, Maths, Matrices, Matrix, Programming
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 [...]
Intro to 3D graphics week 2 Matrices
Posted: October 12, 2008 in Intro to 3D GraphicsTags: 3D, Graphics, Maths, Matrices, Matrix, Programming
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 [...]