Sarath18 / Minecraft-Block-Viewer

OpenGL program to interact with Minecraft Bocks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Minecraft Block Viewer

An interactive application developed using OpenGL and C++ to view and interact with Minecraft blocks.

The purpose behind the developement of this project was solely learning Computer Graphics and getting used to the OpenGL library.

Preview

Minecraft Blocks rendered in OpenGL    Specular and diffuse maps
Block textures redered using OpenGL with diffuse and specular maps

Features

  • Enable/disable lights
  • Phong Lighting
  • Rendering transparent/translucent object
  • Block hover animation
  • Multiple texture faces
  • Specular and Diffuse maps

Build instructions

Run the following script in the project folder to fetch block texture atlases

./fetch_textures.sh

Build the project

mkdir build
cd build
cmake ..
make

Run the program

./minecraft_block_viewer
Controls
Key Description
PageUp Switch to next block
PageDown Switch to previous Block
L Key Toggle Lighting in scene
Mouse Hold Break Block
Escape key Exit
Arrow Keys Rotate Block

About

OpenGL program to interact with Minecraft Bocks


Languages

Language:C 86.5%Language:C++ 12.0%Language:GLSL 1.1%Language:CMake 0.3%Language:Shell 0.1%