140 likes | 324 Views
3D Paint Brush. Reza Ghaffaripour Ziaul Hoque Sikder. Opening: . 2D Programming 3D Programming. 3D Programming. 3D to 2D Projection Transformations Rotation View Point,Light. 3D to 2D Projection. (x,y,z) (x’,y’) How to ?. x’ = x / z y’ = y / z. Transformation.
E N D
3D Paint Brush Reza Ghaffaripour Ziaul Hoque Sikder
Opening: • 2D Programming • 3D Programming
3D Programming • 3D to 2D Projection • Transformations • Rotation • View Point,Light
3D to 2D Projection • (x,y,z) (x’,y’) How to ? x’ = x / z y’ = y / z
Transformation Transformation of (x, y, z) to (x', y', z') (Tx,Ty,Tz) is transformation vector
Rotation Rotation of (x, y, z) around the x-axis, gives (x', y', z')
Our Problems • Long coding • Implementation of Rotation,Transformation,… • Matrix Calculations • Adding Texture • Speed • Graphics Card Dependency
OpenGL Graphics Engine • Is a software interface • Is to render 2D and 3D objects • Things are vertices (which define geometric objects) or pixels (which define images)
Rotation In OpenGL The function glRotate ( angle , x , y , z ) multiplies the current matrix by a rotation matrix about the vector from the origin through the point (x,y,z)