Augmented Reality Tabletop.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
samples
.gitignore
CMakeLists.txt
LICENSE.txt
README.md
bb8.obj
bb8.png
cvhelper.hpp
glhelper.hpp
h2g2coin.obj
main.cpp
screenshot.png
shaders.h
verts.hpp

README.md

ARDnD

An augmented reality tabletop using OpenGL and OpenCV.

Credits

  • OpenCV code for detecting squares is based on an OpenCV tutorial.
    • I added the ability to filter colors and detect the orientation and scale of the square.
  • OpenGL code is a combination of multiple different tutorials.
    • I added the ability to render multiple different objects in the same frame (surprisingly not many tutorials cover this.)

Running

A build for rendering frames from a folder of sample images is currently available under the GitHub releases section.

Screenshot

Screenshot

Dependencies

  • OpenCV
  • OpenGL (3.3 or above)
  • glfw3
  • glew32
  • SOIL

Building

This project uses CMake for building. It works using Visual Studio 2015 on my Windows 10 laptop. Currently the process of setting up dependencies is a bit involved. It is primarily based on this tutorial for OpenGL, glfw, glew, and SOIL. In addition I built OpenCV from source (however, its probably possible to just use the installer.). After that, the any .lib files being used should be copied to $DEP_ROOT_DIR/lib, then any headers should be put in $DEP_ROOT_DIR/include, and all the OpenCV .dll's should be put in $DEP_ROOT_DIR/bin.

Once the dependencies are initially setup, all that is left is to configure and generate the build system from CMake, and build the ardnd target. If using static images (the default), then the samples target should also be built.