Coder Social home page Coder Social logo

gfx-project's Introduction

Project Team 9

This is a graphics programming project for 'COMP 371 - Computer Graphics'. It incorporates fundamental aspects of computer graphics such as modeling, camera control, lighting, texture mapping, and animation.

Environment

To avoid compatibility issues, it is recommended to run this project on a lab computer running Windows.
This program can be run on Windows, Mac or Linux computers; however, modifications may be required for non-lab computers.

Getting Started

For Lab Instructors:
Due to size restrictions in the submission system, the .cpp , project, and sln files will be solely provided. To run the project, insure that the provided files are loaded within the Lab02FullFramework folder in Visual Studio. Make sure that the subfloder ThirdParty is included as it should be.

clone or download the project and open it with Visual Studio or another c++ IDE of your choice. Open 'gfxProject.cpp', compile and then run. A windows with the models will appear. Use the control keys to navigate through the 3d environment or to rotate or move models.

Controls

Toggle texture:
x, on/off

Toggle shadow:
SHIFT + b, on/off

Shearing displacement on models:
SHIFT + up arrow, Back shearing displacement
SHIFT + right arrow, Right shearing displacement
SHIFT + down arrow, Front shearing displacement
SHIFT + left arrow, Left shearing displacement

Re-positioning models:
SPACE, Re-positioning at random location

Switch models:
1, R4 (Center)
2, L0 (Top right)
3, A8 (Top left)
4, V4 (back right)
5 , A6 (back left)

Switch view to models:
c, R4 (Center)
v, L0 (Top right)
b, A8 (Top left)
n, V4 (back right)
m, A6 (back left)

Draw triangle, line, or points:
Select model with 1-5 then,
t, Draw in triangles
l, Draw in lines
p, Draw in points

Scale model:
Select model with 1-5 then,
u, Scale up
j, Scale down

Translate model:
Select model with 1-5 then,
SHIFT + a, translate left
SHIFT + d, translate right
SHIFT + w, translate up
SHIFT + s, translate down

Rotate model:
Select model with 1-5 then,
a, rotate left
d, rotate right
w, rotate up
s, rotate down

Rotate world orientation:
left arrow, anti-clockwise positive x axis
right arrow, clockwise positive x axis
up arrow, anti-clockwise positive y axis
down arrow, clockwise positive y axis
HOME, reset to default

Pan, Tilt, Zoom:
hold right mouse + mouse along x, pan (camera along x)
hold middle mouse + mouse along y, tilt (camera along y)
hold left mouse + mouse along y, zoom (camera along z)

Built With

Authors

  • Marc Hegedus
  • Nalveer Moocheet
  • Noah El Hayek
  • Sean Howard
  • Tzvi Filler

gfx-project's People

Contributors

nalveer avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.