Giter VIP home page Giter VIP logo

shadow-mapping---pyopengl's Introduction

Shadow-Mapping---PyOpenGL

Depth map shadow, spot lights and Blinn-Phong practice

Installing Notes:

  • On Windows install PyOpenGL and PyOpenGL-accelerate by downlading packages from: http://www.lfd.uci.edu/~gohlke/pythonlibs
  • Installing them as: pip install [package-name]. This is needed as official pip repo does not have glut in it.

The summary for program below:

  • One on the left side above object looking down on objects and the other one in front of all the object in slightly higher position looking down on objects.
  • The one at the front of objects move side to side paralle to x axis in a left right sinusoidal pattern.
  • The other spotlight rotate around a circle always looking at the center point of the scene which is centered below the tree object.
  • Calculate shadow maps for both lights.
  • Shadows of both spotlights switchable by the user using "1" and "2" keys so that we can render the scene with shadow maps or not.
  • Another ambient light which has a constant intensity for the whole scene.
  • The animation of the spotlights should be able to be switched on or off by the user with key press "a".
Demo.mp4

Key Configuration


  • Hit ESC key to quit.
  • Alt + Left Mouse Button: Rotation around center of the object
  • Alt + Right Mouse Button: Zoom in and out
  • F key to reset view
  • 1 key to on/off Spot Light 1's depth map
  • 2 key to on/off Spot Light 2's depth map
  • Q key to on/off Spot Light 1
  • W key to on/off Spot Light 2
  • A key to on/off animation of Spot Light 1
  • S key to on/off animation of Spot Light 2
  • B key to on/off Blinn's specular

shadow-mapping---pyopengl's People

Contributors

ramazancuhaci 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.