<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Rohit Nambiar's Website</title>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
<meta name="author" content="fullahead.org - studio7designs.com" />
<meta name="description" content="Site Description Here" />
<meta name="keywords" content="keywords, here" />
<meta name="robots" content="index, follow, noarchive" />
<meta name="googlebot" content="noarchive" />
<link rel="stylesheet" type="text/css" href="css/layout.css" media="screen, projection, tv " />
<link rel="stylesheet" type="text/css" href="css/html.css" media="screen, projection, tv " />
</head>
<body>
<!-- #content: holds all except site footer - causes footer to stick to bottom -->
<div id="content">
<!-- #header: holds the logo and top links -->
<div id="header" class="width">
<img src="images/logo.gif" alt="Your logo goes here"/>
</div>
<!-- #header end -->
<!-- #headerImg: holds the main header image or flash -->
<div id="headerImg" class="width"></div>
<!-- #menu: the main large box site menu -->
<div id="menu" class="width">
<ul>
<li>
<a href="index.html" onfocus="blur()">
<span class="title ">Homepage</span>
<span class="desc">includes About Me</span> </a> </li>
<li>
<a href="assignments.html" onfocus="blur()">
<span class="title ">Assignments</span>
<span class="desc style3">Work I've done so far</span> </a> </li>
<li>
<a href="Rohit_Resume.pdf" onfocus="blur()">
<span class="title ">Resume</span>
<span class="desc"></span>
</a>
</li>
<li>
<a href="resources.html" onfocus="blur()">
<span class="title ">Resources and Links</span>
<span class="desc">Some things that helped me</span>
</a>
</li>
</ul>
</div>
<!-- #menu end -->
<!-- #page: holds the page content -->
<div id="page">
<!-- #columns: holds the columns of the page -->
<div id="columns" class="widthPad">
<!-- Single column -->
<div class="floatLeft width100">
<h1>Assignment <span class="dark">Two</span></h1>
<p>
In this assignment we were asked to do basic shading calculations which are actually implemented in our graphics card. Here are some specific pictures of certain coefficients.
</p>
<h2>Ambient Term</h2>
<img src="images/Ambient Term.jpg">
<blockquote>
<p>
./shader -ka 0.3 0.3 0.3
</p>
</blockquote>
<h2>Diffuse Shading With A Point Light</h2>
<img src="images/Diffuse only.jpg">
<blockquote>
<p>
./shader -kd 1.0 1.0 1.0 -pl 2.0 -8.0 2.0 0.6 0.4 0.9
</p>
</blockquote>
<h2>Diffuse Shading With A Directional Light</h2>
<img src="images/diffuse with directional.jpg">
<blockquote>
<p>
./shader -kd 1.0 1.0 1.0 -dl 2.0 -8.0 2.0 0.6 0.4 0.9
</p>
</blockquote>
<h2>Specular Shading With A Point Light</h2>
<img src="images/specular point light.jpg">
<blockquote>
<p>
./shader -ks 1.0 0.5 1.0 -pl 1.0 5.0 4.0 0.7 0.8 0.4 -sp 20.0
</p>
</blockquote>
<h2>Specular Shading With A Directional Light</h2>
<img src="images/specular directional.jpg">
<blockquote>
<p>
./shader -ks 1.0 0.5 1.0 -dl 2.0 3.0 2.0 0.7 0.8 0.4 -sp 20.0
<p>
</blockquote>
<h2>Diffuse And Specular Shading With A Point Light</h2>
<img src="images/specular and diffuse.jpg">
<blockquote>
<p>
./shader -kd 1.0 1.0 1.0 -ks 1.0 0.5 1.0 -pl 1.0 5.0 4.0 0.7 0.8 0.4 -sp 20.0
</p>
</blockquote>
<h2>Shading With Multiple Lights</h2>
<img src="images/multiple3.jpg">
<blockquote>
<p>
./shader -kd 1.0 1.0 1.0 -ks 1.0 0.5 1.0 -pl 0.0 5.0 3.0 0.1 0.1 1.0 -pl 5.0 0.0 2.0 1.0 0.1 0.1 -pl 0.0 -5.0 2.0 0.2 1.0 0.2 -pl -5.0 0.0 2.0 0.6 0.4 0.9 -sp 200.0
</p>
</blockquote>
</div>
<!-- Single column end -->
</div>
<!-- #columns end -->
</div>
<!-- #page end -->
</div>
<!-- #content end -->
<!-- #footer: holds the site footer (logo and links) -->
<div id="footer">
<!-- #bg: applies the site width and footer background -->
<div id="bg" class="width">
<img src="images/logo.gif" alt="Your logo goes here"/>
<ul>
<li><a href="">Sitemap</a></li>
<li><a href="">Register</a></li>
<li><a href="">Design inspired by</a></li>
<li><a href="http://www.studio7designs.com" class="last">studio7designs.com</a></li>
</ul>
</div>
<!-- #bg end -->
</div>
<!-- #footer end -->
</body>
</html>
Copyright 2K16 - 2K18 Indonesian Hacker Rulez