0% found this document useful (0 votes)
35 views

Computer Graphics

This document summarizes key topics from a lecture on computer graphics, including cross products, planes, spheres, and transformations. Cross products produce a vector orthogonal to two input vectors using the right hand rule. Planes can be defined by linear combinations of points. Spheres are 3D shapes. Transformations like scaling and rotation are achieved through matrix multiplication. Scaling uniformly or non-uniformly changes the size of graphic components. Rotation in 2D uses trigonometric functions and matrices.

Uploaded by

Muqadar Ali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views

Computer Graphics

This document summarizes key topics from a lecture on computer graphics, including cross products, planes, spheres, and transformations. Cross products produce a vector orthogonal to two input vectors using the right hand rule. Planes can be defined by linear combinations of points. Spheres are 3D shapes. Transformations like scaling and rotation are achieved through matrix multiplication. Scaling uniformly or non-uniformly changes the size of graphic components. Rotation in 2D uses trigonometric functions and matrices.

Uploaded by

Muqadar Ali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 16

Computer Graphics

Lecture 06
Previous Class

Ray Tracing
Viewing
Projection
Today’s Agenda

• Cross Product
• Plane
• Sphere
• Transformations
Cross Product

• The product of two vectors (a and b) is


another vector which is orthogonal to both
the vectors (a and b).
– The new vector is called Cross Product or Vector
Product of the two vectors.
– Right hand rule determines the direction of the
product.
3D Plane

• Linear combination of three points


3D Sphere
TRANSFORMATIONS
Matrix Algebra (A Review)
Matrix Algebra (A Review)
Scaling

• Scaling is achieved by multiplying each


graphic component by a scalar
• Scaling will be uniform if this scalar is same
for all components
• Different components are scaled differently,
scaling in uniform
Example

`
Scaling Operation

•  

The matrix is called scaling matrix


2D Rotation
2D Rotation
Summary

• Cross Product
References

• Fundamentals of Computer Graphics Third


Edition by Peter Shirley and Steve Marschner
• Interactive Computer Graphics, A Top-down
Approach with OpenGL (Sixth Edition) by
Edward Angel.

You might also like