Coder Social home page Coder Social logo

picture-match's Introduction

Picture Match logo

Picture Match

An OpenGL application that plays like pin-the-tail-on-the-donkey — except adapted for screens.

Table of Contents

Demo

Key Features

  • Texture Mapping - Play around with vector graphics by rotating or moving
  • Texture Transformation - Rotate the eyes, ears, etc with 'J' or 'K' keys
  • View Control - Resizing the window does not warp the graphics

Installation

Picture Match uses Eigen, glad, and GLFW as submodules. To pull submodules with the project, add the argument --recurse-submodules.

git clone --recurse-submodules https://github.com/jennarim/Picture-Match.git

The project is compiled using CMake.

cd Picture-Match/
mkdir build
cd build
cmake ..
make

Lastly, run the project with this command.

./pictureMatch

Example

  1. The picture of the desired image is initially shown to the player, alongside other instructions.

1

2. The face parts are placed and rotated randomly outside the face the user should drag the parts to.

2

3. The user can rotate any of the face parts as they select it.

3

4. Each face part will be bound to follow the user’s cursor. The moment the user clicks inside the face, then the user has finalized the location.

4

5. Once all face parts have been finalized, the final result is shown.

5

6. The user can press R to restart, and continue to play and admire the result.

6

Built With

  • OpenGL - the most widely adopted 2D and 3D graphics API in the industry
  • glad - an OpenGL loading library
  • Eigen - a C++ linear algebra library
  • GLFW - an OpenGL library for creating windows and receiving input and events

Project Status

This project is currently finished.

picture-match's People

Contributors

jennarim avatar

Watchers

James Cloos avatar  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.