Giter Site home page Giter Site logo

3d-bedroom's Introduction

3D-bedroom using OpenGL

This is an assignment done for my Computer Graphics lab using C++ and OpenGL. The GL, GLU and GLUT libraries were used. The bedroom was designed using cubes, pyramids and one 2D polygon.

picture alt

The features of the bedroom -

  • Two point lights, one spotlight
  • No textures, no curve
  • A pendulum clock with a moving pendulum
  • A rotating fan (can be turned on/off)
  • Change eyepoint and lookat point using keys

The keys used are -

To move Eye point:

  1. w: up
  2. s: down
  3. a: left
  4. d: right
  5. i: zoom in
  6. o: zoom out

To move Camera point:

  1. j: up

  2. n: down

  3. b: left

  4. m: right

  5. l: move nearer

  6. k: move far

  7. q to move to default position (both eyepoint & lookat point)

  8. f: to turn on/off fan

To control lights:

  1. 1: to turn on/off light one
  2. 2: to turn on/off light two
  3. 3: to turn on/off lamp
  4. 4: to turn on/off ambient light one
  5. 5: to turn on/off diffusion light one
  6. 6: to turn on/off specular light one
  7. 7: to turn on/off ambient light two
  8. 8: to turn on/off diffusion light two
  9. 9: to turn on/off specular light two
  10. e: to turn on/off ambient lamp light
  11. r: to turn on/off diffusion lamp light
  12. t: to turn on/off specular lamp light

3d-bedroom's People

Contributors

n-gauhar 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.