Assignment 3 for Computer Graphics | CSCI 480, Assignments of Computer Graphics

Material Type: Assignment; Class: Computer Graphics; Subject: Computer Science; University: University of Southern California; Term: Unknown 1989;

Typology: Assignments

Pre 2010

Uploaded on 11/08/2009

koofers-user-8hj
koofers-user-8hj 🇺🇸

10 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
the program has following functions:
Button “Cube” is used to change the cube’s visibility. Likewise, button “
Triangle” is used to change the Tetrahedron’s visibility. Please Use left mouse
button to click button.
Button “Menu” is used to decide whether the right click of your mouse will pop
up menu or not, because I also use right button to scale the geometry in the edit
scene. There are four kinds of menu (Projection: +X, +Y, +Z; Scene: Read, Save;
Light: Point, Direction, Direction; Shade: Flat, Smooth).
You can press key ‘x’,’X’, ‘y’,’Y’, ‘z’,’Z’ to select three orthographic
projections, or you can select it by menu.
Camera is represented by sphere with three axes. You can translate the sphere in
one of three orthographic projections; the camera view port will change
accordingly.
Light is also represented by sphere. If it is directional or spot light, you can see a
vector with it.
You can use left or middle button of mouse to pick the objects in editing
viewport. Left button is also used to rotate the object. Middle button is also used
to translate the object.
pf2

Partial preview of the text

Download Assignment 3 for Computer Graphics | CSCI 480 and more Assignments Computer Graphics in PDF only on Docsity!

the program has following functions:  Button “ Cube ” is used to change the cube’s visibility. Likewise, button “ Triangle ” is used to change the Tetrahedron’s visibility. Please Use left mouse button to click button.  Button “ Menu ” is used to decide whether the right click of your mouse will pop up menu or not, because I also use right button to scale the geometry in the edit scene. There are four kinds of menu ( Projection : +X, +Y, +Z; Scene : Read, Save; Light : Point, Direction, Direction; Shade : Flat, Smooth).  You can press key ‘ x ’,’ X ’, ‘ y ’,’ Y ’, ‘ z ’,’ Z ’ to select three orthographic projections, or you can select it by menu.  Camera is represented by sphere with three axes. You can translate the sphere in one of three orthographic projections; the camera view port will change accordingly.  Light is also represented by sphere. If it is directional or spot light, you can see a vector with it.  You can use left or middle button of mouse to pick the objects in editing viewport. Left button is also used to rotate the object. Middle button is also used to translate the object.

 You can press ‘s’,’S’, ‘r’,’R’ or select menu to save or read the properties of the objects. If you select one object, then only it’s properties are read from file. If no object is selected (you use middle mouse button to cancel the selection), then all objects’ properties are read from file.  +X axis is represented by Red line; +Y axis is represented by Green line; +X axis is represented by Blue line. File: Project4.cpp, Project4.h main source file ObjectInScene.cpp, ObjectInScene.h define the CObjectInScene class Geometry.cpp,Geometry.h define the CGeometry class Cubes.cpp, Cubes.h define CCubes class Tetrahedron.cpp, Tetrahedron.h define CTetrahedron class Camera.cpp, Camera.h define CCamera class Light.cpp, Light.h define CLight class ToolBar.h define the functions used to draw tool bar. Scene the property file for all objects in the edit scene. Class Architecture: C O b j e c t I n S c e n e C C a m e r a C L i g h t C G e o m e t r y C T e t r a h e d r o n (^) C C u b e s