
3D Graphics Engine in Haskell Inside a Command Prompt
This is a little 3D engine written in Haskell that draws straight into your terminal. You can walk around the scene with keyboard input, and it all renders in true-colour using ANSI half-block characters (▀), which lets…
以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。
This is a little 3D engine written in Haskell that draws straight into your terminal. You can walk around the scene with keyboard input, and it all renders in true-colour using ANSI half-block characters (▀), which lets each character cell show two stacked "pixels". This works on both Linux and Windows and also exports as a library if anyone wants to make custom 3D worlds.
Movement around the worlds is done via entering keys on the keyboard and pressing enter.
Allows for Portals with recursive views through
Allows for selections of post processing and super sampling anti-aliasing
Has multiple demo worlds
Translations are selectable in the program
Allows customizable screen size
Pipelines auto-build versions for X64 Linux and Windows
Building the demo
To build with Cabal and have it actually run quickly
cabal build all cabal run t3d
To run with the interpreter
ghci -isrc -iapp -package parallel -package bytestring -package transformers -package array -package deepseq -package comonad -package process app/Main.hs :main
Using as a library
Add to your your-project.cabal:
build-depends: terminal-3d-graphics
Then in your Haskell source:
正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。