sic2 / obj-visualiser

A simple OpenGL program using Shading and Textures

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shading And Texture

DESCRIPTION

======================================

How to compile and run the program:

Compile:

$ make

To turn on optimisation (-O2)

$ make release

Run:

$ ./shadingAndTexture Data/cube.obj (+ or other data sets)

In one command:

$ make release && ./shadingAndTexture Data/cube.obj (+ or other data sets)

Examples

$ make release && ./shadingAndTexture Data/cube1.obj Data/cube2.obj Data/cube3.obj Data/cube4.obj Data/cylinder.obj Data/globe.obj Data/wall.obj Data/wall1.obj Data/wall2.obj Data/multiTextures.obj


$ make release && ./shadingAndTexture Data/multiTextures.obj


$ make release && ./shadingAndTexture Data/multiTextures.obj

TODO

[] multi-texturing
[] bump texturing
[] improve face picking

Known bugs

[] Zoom limits not set

Requirements

gcc compiler, compliant to c++03

Tested targets

i686-apple-darwin10-gcc-4.2.1 on Mac OS X 10.6.8
i686-apple-darwin11-llvm-gcc-4.2 on Mac OS X 10.8.5
gcc-4.4.7 (Red Hat 4.4.7-3) on Scientific Linux - Kernel Linux 2.6.32

Third party resources

The makefile is a modified version of the one provided by Michael Safyan

Wavefront .obj loader (slightly modified version): objLoader

Image library (C/C++): CImg

Images were all downloaded from internet. See appropriate text file in Data/ for specific links.

About

A simple OpenGL program using Shading and Textures


Languages

Language:C++ 88.0%Language:C 11.8%Language:Objective-C 0.3%