Skip to content

Latest commit

 

History

History
101 lines (79 loc) · 2.14 KB

README.md

File metadata and controls

101 lines (79 loc) · 2.14 KB

e1340

a re-write of e1337 with BearRiver (and, maybe, MVars)

a youtube demo

clone repo, cabal build, ./run.sh

w,a,s,d,q,e - 6-axis movement
PgUp/PgDown - roll left/right
arrow keys, mouse controls - yaw, pitch
LCtrl          - slow
LShift         - fast
LCtrl + LShift - very fast
C              - switch camera

Space - reset

Esc - quit

Recent Progress:

  • Basic shading and animations.
  • Mercury, Venus, Earth (Moon), Mars, Jupiter.
  • Project file supports multiple cameras with individual params.
  • Logarithmic Space (rendering objects in real scale at 10 billion kilometers is ok).
  • Improved camera controls.
  • Project file generator.
  • Speed controls for keyboard movement.
  • Foreground and Background objects with different rendering options.
  • Working on basic solvers (spinners, lodders, physics).

Building and running:

$ cabal build
$ gpu ./run.sh

or, if optirun works for you:

$ optirun ./rungl.hs

Convert a Geo Model:

$ ./resources/convertGeo.sh earth

Creating a new Material:

$ cabal run genMaterial matDir/matName
$ cabal run genMaterial mat/graph
> ./mat/graph/graph...

(that generates a ./mat/testMat01 material directory with a default conent (constant shader material)

Generate a new Project:

$ cabal run exe:genProject -- ./projects/test

Generate a new Application:

$ cabal run exe:genApplication -- -a ./applications/solarsystem

A Makefile snippet for generating a project preview:

test:
	./resources/convertGeo.sh box
	cabal build exe:genProject
	cabal build exe:genApplication
	cabal run exe:genGUI
	cabal run exe:genProject     --    ./projects/test
	cabal run exe:genUUID        -- -p ./projects/test
	cabal run exe:genApplication -- -p ./projects/test
	cabal run exe:ProjectViewer ./applications/preview

Fix project's UUIDs:

$ cabal run exe:genUUID -- -p ./projects/test

Fix material's UUIDs:

$ cabal run exe:genUUID -- -m mat/test/test

Working with REPL:

  • compiling:
$ cabal repl exe:e1338