Realtime_CG_task1

Command Line Arguments

Material Configuration

Ambient Color

-ka [red] [green] [blue]

Diffuse Color

-kd [red] [green] [blue]

Specular Color

-ks [red] [green] [blue]

Specular Power

-sp [power]

Object Configuration

Render as Cube (Extended Feature)

-cube

Please note, Object will be render as sphere by default.

Light Sources

Point Light

-pl [x] [y] [z] [red] [green] [blue]

Directional Light

-dl [x] [y] [z] [red] [green] [blue]

Non-Realistic Shading Option

Toon Shading (Extended Feature)

-toon

Program Option

Disable Preview (Extended Feature)

-no-display

Save Image (Extended Feature)

-save [filename].png

Please note, images can only be saved in png format.

Licences

Simple OpenGL example for CS184 F06 by Nuttapong Chentanez, modified from sample code for CS184 on Sp06 Modified for Realtime-CG class

LodePNG version 20160501

Copyright (c) 2005-2016 Lode Vandevenne

This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.

Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:

1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.

2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.

3. This notice may not be removed or altered from any source
distribution.