Skip to content

Sarath18/Minecraft-Block-Viewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published