Overclock.net banner

1 - 11 of 11 Posts

·
Premium Member
Joined
·
12,992 Posts
Discussion Starter · #1 ·
...in 12 hours.

I implemented a lot of stuff, most if it isn't done right, but its done, and thats all I really care about.

Behold the magic of bad phong shading, incorrect reflections and shadows, and 8x super sampling!

 

·
Premium Member
Joined
·
12,992 Posts
Discussion Starter · #3 ·
Quote:

Originally Posted by newbie1911 View Post
in what language and how long have you been programing?
looks awesome.

C++, about 8 years.


I thought it looked nice too. Hopefully my instructor agrees.
 

·
Registered
Joined
·
821 Posts
Quote:


Originally Posted by lordikon
View Post

In 12 hours? Impressive.

Indeed.

It might be interesting to know what the quality of the code is. SourceMonitor could give you some useful metrics.
 

·
Premium Member
Joined
·
12,992 Posts
Discussion Starter · #8 ·
Quote:


Originally Posted by Spotswood
View Post

Indeed.

It might be interesting to know what the quality of the code is. SourceMonitor could give you some useful metrics.


No idea what I should be looking for here:

 

·
Premium Member
Joined
·
12,992 Posts
Discussion Starter · #10 ·
Quote:


Originally Posted by Spotswood
View Post

^-- A Maximum Block Depth of 8 is pretty high. The only other thing would be to try to reduce the complexity of rayColor(), but a complexity of 14 probably isn't too bad.


raycolor() is basically the entire engine, there is nothing I can really do about it.

All its doing is the phong lighting equation:



And then recursively calling itself for the reflection.

Splitting the specular and diffuse terms would mean I would have to sum over the lights twice, which would only make the rendering slower.
 

·
Premium Member
Joined
·
12,992 Posts
Discussion Starter · #11 ·
20/20 on the assignment. The marker liked the output enough to overlook the reflection problems.

So basically I'm getting an A in the course, maybe even an A+.
 
1 - 11 of 11 Posts
Top