Git Product home page Git Product logo

ceng487's Introduction

Introduction to Computer Graphics with Python and OpenGL

      This repository includes my individual work to complete given six assignment of the CENG487 Introduction to Computer Graphics course. Course link added below for more information:

Environment setup

$ sudo apt-get install python-dev   # for python2.x installs
$ mkvirtualenv graphics -p python2.7
$ workon graphics
$ pip install -r requirement.txt

I have tagged each version of my assignment with git tags to access them with git checkout command.

I have five tags named as:

  • asgn2
  • asgn3
  • asgn4
  • asgn5
  • asgn6

You can access them with:

git checkout tagname

Usages and screen views of each assignment given below:

  • asgn 5:
------------------------ KEY CONFIGURATION ------------------------
-> Press ESC to quit
-> CRTL + ALT + MOUSE LEFT BUTTON and move mouse to rotate camera
-> CRLT + ALT + MOUSE MIDDLE BUTTON and move mouse to move target
-> CRLT + ALT + MOUSE RIGHT BUTTON and move mouse to zomm in and out
-> Press f key to reset camera position
-> Press 4 to draw WIRES
-> Press 5 to draw SMOOTH
-> Press 6 to draw WIRE ON SHADED
-> Press q to on/off GL_LIGHTING
-> Press w to on/off LIGHT0
-> Press e to on/off LIGHT1
-> Press a to start/stop procedural movement of light

alt text

  • asgn 4:
------------------------ KEY CONFIGURATION ------------------------
-> Press ESC to quit
-> CRTL + ALT + MOUSE LEFT BUTTON and move mouse to rotate camera
-> Press f key to reset camera position
-> Press + key to increase subdivision level(catmull)
-> Press - key to decrease subidivision level(catmull)
-> Press 4 to draw WIRES
-> Press 5 to draw SMOOTH
-> Press 6 to draw WIRE ON SHADED
-> Rotate shape with arrow keys(UP, DOWN, LEFT, RIGHT) in local space


alt text

  • asgn 3:
------------------------ KEY CONFIGURATION ------------------------
-> Press ESC to quit
-> CRTL + ALT + MOUSE LEFT BUTTON and move mouse to rotate camera
-> Press f key to reset camera position
-> Press + key to increase subdivision level
-> Press - key to decrease subidivision level
-> Press 4 to draw WIRES
-> Press 5 to draw SMOOTH
-> Press 6 to draw WIRE ON SHADED

alt text

  • asgn2:
------------------------ KEY CONFIGURATION ------------------------
1 -> switch mainCamera
2 -> switch cam2
3 -> selected camera free move
     -> w -> in
     -> s -> out
     -> a -> right
     -> d -> left
     -> e -> up
     -> r -> down
     -> up -> pitch up
     -> down -> pitch down
     -> left -> yaw left
     -> right -> yaw right
4 -> select box
5 -> select sphere
6 -> select cylinder
+ -> increase subdivision for selected shape
- -> decrease subidivison for selected shape
Select a shape and move using
 Scene Space
     -> w -> up
     -> s -> down
     -> a -> left
     -> d -> right
     -> e -> in
     -> r -> out
 Local Space
     -> up
     -> down
     -> left
     -> right
Rotation of selected shape
 -> k -> scene space use x, y, z button to rotate
 -> l -> local space use x, y, z button to rotate
-------------------------- END ---------------------------------------

alt text

Note: I always open for new ideas, suggestions and further discussions. If you have a word to say please dont hesitate to share with me :)

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.