Skip to content

Chatanga/Hadron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hadron

Screen capture

This toy project currently aims at implementing the procedural terrain generation described in GPU Gems 3. It's a work in progress which relies on an experimental version of GPipe to handle missing features such as geometry shaders and transform feedbacks. A slightly modified version of GPipe-GLFW to integrate a Dear ImGui binding is also needed.

Controls:

  • Left mouse drag: look around
  • W: forward
  • A: left
  • S: backward
  • D: right
  • SPACE: up
  • CTRL: down
  • TAB: next camera

Note: keyboard mapping is not taken into account.

Build

Install native packages on Ubuntu (more or less):

  • mesa-common-dev
  • libgl1-mesa-dev
  • libxi-dev
  • libxrandr-dev
  • libxcursor-dev
  • libxinerama-dev
  • libglu-dev
  • zlib1g-dev
  • libglfw3-dev
  • libsdl2-dev
  • libglew-dev

Retrieve source packages:

git clone https://github.com/Chatanga/Hadron.git
git clone https://github.com/Chatanga/GPipe-Core.git
git clone https://github.com/Chatanga/GPipe-GLFW.git
git clone https://github.com/haskell-game/dear-imgui.hs.git (pick version 2.1.3)
cd dear-imgui.hs
git submodule init
git submodule update
cd ..

Build Hadron and its dependencies:

cd Hadron
stack build

Run it:

stack exec Hadron

References

Releases

No releases published

Packages

No packages published