2013年5月2日星期四

assignment13

The scene I had
The one in maya



Gamegraphicassignment12

This assignment is focusing on the shadows.

Most of this assignment is the same as the depth part.

I did not solve the problem in my assignment11 so I start assignment 12 using the assignment 11 of Max,as I read the code, I find out the problem in myassignment11 in a minute.

in the render.updata
First I am trying to write all the prosses inside but I soon found out even for myself I couldn't find out which part is the shadow, which part is the depth and which part is the opaque.I get the some idea from Max's code and change it into 4 function.

I think the shadow works good






Code

2013年4月13日星期六

Assignment11

Assignment11

I think this assignment  is very like the assignment 10,almost used the same thing to do it, but I have some problem to show it on the screen, my screen is like all grey.

I am trying to figure out what happened in Fix.


code

2013年4月12日星期五

Assignment10

I really don't know my assignment 9 is right or not, so this time I used Max's assignment 9 to start my work

Add a new Effect include new VertexShader and FragmentShader

In this time we need another pair of VS and FS, because we need it for the depth texture.

This is screenshot





Here is the code
Code




2013年3月22日星期五

assignment09

Assignment09


my cube map

Code

assignment08

Assignment08

At first.
Because I do not sure I have done the assignment 7 correctly so I use Max's assignment 7 to finish my assignment 8 and 9

And this is it looks like in assignment 8

By reading the code of Max, I think I learn more than to finish the code, especial the part reading files and the whole structure. I can say it is clear and beautiful.


Run out of time for write_up

I will have dinner first,I am sorry to say this,but I did not eat breakfast and lunch. It will update soon,


Code

2013年3月8日星期五

GameGraphics7


This assignment we need to create three new effect,

Effect

1.partially transparent Effect

This effect is to present the materials like glasses, so we need to send transparency to the fragment shade to let it know.
2. alphabinary Effect
I had used the clip() to ignore the part which is under 0.5





_________________________________________________________________________________
3.the additive effect

I get very confused in this part, and then, I found out it just need to set the render state to the right one.


Sorting 

sort the list to draw,We need to separate the our entities into two part, one part do not need the Alpha blending like the normal object and the one using Binary Alpha

the other part need Alpha blending,like Additive material and the Partially transparent material,

The former must be done before in the latter or you will not get the effect you want.