# Computer Graphics

Computer Graphics (cg) mini project illumination model free download To download the project click here . This project is based on various algorithms used in computer graphics. Illumination is the key feature of the project. It draws two shapes namely diamond and cone. The two objects are rotated about various …

## 3D Rotation Algorithm about arbitrary axis with CC code

3D Rotation Algorithm about arbitrary axis with C/C++ code When an object is to be rotated about an axis that is not parallel to one of the coordinate axes, we need to perform some additional transformations. In this case, we also need rotations to align the axis with a selected …

## CohenSutherland Line Clipping Algorithm with CC

Cohen-Sutherland Line Clipping Algorithm with C/C++ Theory In this method, every line endpoint is assigned a four digit binary code(region code) that identifies the location of the point relative to the boundary. b1 : left  b2 : right  b3 : below  b4 : above The value 1 indicates its relative …

## LiangBarsky Line Clipping Algorithm with CC

Liang-Barsky Line Clipping Algorithm with C/C++ TheoryIn Liang-Barsky algorithm, we first write the point-clipping conditions in parametric form as  Each of these for inequalities can be expressed as , k = 1, 2, 3, …..where parameter p and q are defined as Any line that is parallel to one of …

## How to make Vertex Table Edge Table and Surface Table to store geometric information of an object

How to make Vertex Table, Edge Table and Surface Table to store geometric information of an object?? Listing the geometric data in three tables provides a convenient reference to the individual components of each object. Also, the object can be displayed efficiently be using data from the edge table to …

## 3D Transformation Translation Rotation and Scaling in CC

3D Transformation [Translation, Rotation and Scaling] in C/C++ Translation In a three-dimensional homogeneous coordinates representation, a point is translated from position P = (x, y, z) to position P’ = (x’, y’, z’) with the following equations. x’ = x + tx y’ = y + ty z’ = z …

## Computer Graphics Fractals generation using Mandelbrot Set with CC in CodeBlocks

Computer Graphics: Fractals generation using Mandelbrot Set with C/C++ in Code::Blocks “Clouds are not spheres, mountains are not cones, coastlines are not circles, and bark is not smooth, nor does lightning travel in a straight line.” – Benoit Mandelbrot The Mandelbrot set is created by a general technique where a …

## Bezier Curves and Bezier Surfaces generation with CC in CodeBlocks

Bezier Curves and Bezier Surfaces generation with C/C++ in Code::Blocks Brief Theory of Bezier Curve In order to draw curvy surface we implement Bezier curve algorithm. In drawing Bezier we first define n+1 control point pk = (xk, yk, zk) with k varying from 0 to n. And the coordinate …