Coder Social home page Coder Social logo

jusqua / me-cart Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 19.42 MB

Final Project for University's Computer Graphics Course

License: GNU General Public License v3.0

Makefile 0.14% C++ 98.81% GLSL 1.05%
clang computer-graphics cpp glfw makefile opengl shaders glew glm stb-image

me-cart's Introduction

Me, Cart

How to use this project?

This project in made in C++ with OpenGL, some tools and libraries are needed to this program run correctly:

  • Clang
  • Make
  • GLFW
  • GLEW
  • GLM
  • STB

Setting up

Fedora

sudo dnf install glew-devel glfw-devel glm-devel clang make

Debian/Ubuntu

sudo apt install libstdc++-12-dev libglew-dev libglfw3-dev libglm-dev clang make

Running

There are available 4 types of terrain in PGM are located at resources/terrain/ that you can choose, or input your own PGM file. There are available 2 types of terrain texture images are located at resources/textures/ that you can choose, or input your own image file.

You need to build first with make that returns a binary me-cart:

make
./me-cart [terrain structure path] [terrain texture path]

If no files are specified the defaults are selected: plains.pgm and limestone.jpg.

Actions

Use Mouse to move around, it's implements a fly-like camera:

Key Description
W Move forward
S Move backward
A Turn left
D Turn right
Escape Quit

Screenshots

Mountains terrain with Limestone texture

Plateaus terrain with Stone texture

Textures Attributions

  • limestone.jpg and stone.jpg by kues1 on Freepik

me-cart's People

Contributors

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