Effects Package

by Steve Bergen and Craig Maki


Introduction

The Effects Package is made for COSC 4P98, or in regular-man's terms, "Graphics II - the Continuation of Graphics I". It defines a package which can be included into any openGL application.




Purpose

The purpose of this package is to make easy-to-integrate graphical effects for OpenGL. There are hundreds of effects out there, but not one seems to be easy to integrate. Most run in standalone applications and are difficult to trim and add to an existing application. With this package, this integration is extremely easy, and most effects can be added with no more than two lines of code. These effects are also EXTREMELY flexible, and can be tweaked without ever having to look at the underlying code behind them.

Basically, the purpose of this project is to make a user-friendly graphical effect package.




How to Set Up

The package is easy to use. Just include Effects.h in any class which uses the effects. As for using each effect, check each reference on this site for instructions on how to initialize. The rest is easy!

DOWNLOAD :

Effects Package Download Effects Package Examples



The Box Method

The box method is the primary method used for defining the bounding areas of certain effects. The box consists of a coordinate and a radius, both in the form of vector3f (a structure included in Structures.h).

The coordinate is the middle of the box, whereas the radius defines the X, Y and Z distances from the center. So a box with radius (10, 10, 10) and coordinate (0, 0, 0) would have points at (-10, 10, 10), (-10, -10, 10) and so on.