Skip to content

Marker-based AR implementation of the Arkanoid game with OpenGL and OpenCV

License

Notifications You must be signed in to change notification settings

alpcihan/arkanoid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ar-arkanoid

task3_task7_PNG

Marker-based AR implementation of the nostalgic Arkanoid game with OpenGL, OpenCV and C++.

Video: https://youtu.be/FkXOo16MfIE

Getting Started

Installation & Setup

  1. Clone the repository recursively git clone --recursive https://github.com/alpcihan/ar-arcanoid

  2. Use git submodule update --init if the repository was cloned without the submodules previously.

  3. The project automatically builds third-party libraries except for OpenCV.

  4. Install OpenCV:

    git clone https://github.com/opencv/opencv
    cd opencv
    mkdir build
    cd build
    cmake ..
    sudo make install
    

Parameters

See src/config/config.h for details about the parameters related to the game settings, camera calibration and marker detection.

Markers

The Application uses ArUco markers to estimate the pose of the game objects. Three unique markers are required to play the game (game scene, character controller, and action button).

Default marker codes can be found/changed at src/config/config.h:

...

#define CODE_1 90 // Scene marker
#define CODE_2 7236 // Character controller marker
#define CODE_3 1680 // Action button marker

...

Parameters

task3_task7_PNG

  • Accuracy of the marker detection and scene rendering may vary depending on various factors such as lighting, camera, marker color, resolution, etc.

  • There are 4 parameters to control. Block size, Constant and Max intensity are the Adaptive Threshold parameters. Focal length is the field of view value of the projection matrix to calibrate the camera.

  • To control the parameters define, #define PARAMETER_MODE at config.h.

License

MIT

About

Marker-based AR implementation of the Arkanoid game with OpenGL and OpenCV

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages