Git Product home page Git Product logo

reflective-sphere's Introduction

Reflective Ball in OpenGL

illustration

My final project for the course TDT4230 Graphics and Visualization at the Norwegian University of Science and Technology (NTNU). The project is based on gloom, but stripped down a bit to provide minimal size.

Dependencies

  • CMake (3.0+)
  • OpenGL (4.5+)

Getting started

Download

Simply clone this repository:

git clone https://github.com/TheVaffel/reflective-sphere

Compilation

Linux (command-line)

The following will (hopefully) suffice to compile the project:

# Enter the repository
cd reflective-sphere

# Make a build folder
mkdir build

# Enter build folder
cd build

# Generate UNIX Makefile (point CMake to CMakeLists.txt)
cmake ..

# Execute make command
make

# Run executable
./gloom/gloom

Specific generators can also be specified with CMake if you want to create workspaces for an IDE, for example:

cmake -G "CodeBlocks - Unix Makefiles"

(This is part of the gloom README, and I have not tested this last step)

Windows (cmake-gui)

  1. Set the source code file to the root directory containing CMakeLists.txt
  2. Binaries can be built in the directory of your choice, e.g. reflective-sphere\build\
  3. Click the configure button and select which generator you would like to use
  4. Click the generate button
  5. If your generator is an IDE such as Visual Studio, then open up the newly created .sln file and build ALL_BUILD.

Instructions

After running ./gloom/gloom, you should get a screen with a reflecting sphere levitating over a big cube, with other spheres orbiting it. You can move around with WASD and turn around with the arrow keys.

If you look at a point on the reflecting cube, you may press SPACE to create a small dent in the surface, changing how the light and surroundings are reflected in the area around it. There is a cooldown on the dent-making at one second.

Documentation

A brief description of the project is contained in the report provided, apart from that, the comments scattered throughout the code is the only documentation available to this date.

reflective-sphere's People

Contributors

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