GithubHelp home page GithubHelp logo

wedesoft / sfsim Goto Github PK

View Code? Open in Web Editor NEW
15.0 4.0 0.0 4.68 MB

Space flight simulator (under development)

Home Page: https://github.com/wedesoft/sfsim

License: Eclipse Public License 2.0

Clojure 93.24% GLSL 6.40% NSIS 0.29% HCL 0.07%
3d clojure lwjgl opengl simulation space spaceflight

sfsim's Introduction

This is a work in progress. Aim is to simulate take off, space station docking, and moon landing with a futuristic space plane. Requires OpenGL 4.5.

Object shadows on ground

Object self-shadowing

Spaceship rendering with planet, atmosphere, and clouds

Planet rendering with volumetric clouds and night time textures

Rendering of volumetric clouds

Atmospheric scattering and planet level-of-detail rendering

Planetary cloud cover with volumetric clouds with shadows using deep opacity maps

Installation

  • Tested on Debian 12 and Windows 11
  • Install Java: sudo apt-get install openjdk-17-jre
  • Install Clojure 1.11
  • Download Packr Jar file for creating Windows executable
  • Install NSIS for building Windows installer

Build

  • Build Worley noise: clj -T:build worley
  • Build Perlin noise: clj -T:build perlin
  • Build blue noise: clj -T:build bluenoise
  • Build cloud cover: clj -T:build cloud-cover
  • Download NASA Bluemarble data: clj -T:build download-bluemarble
  • Download NASA Blackmarble data: clj -T:build download-Blackmarble
  • Download NOAA elevation data: clj -T:build download-elevation
  • Download NASA JPL ephemeris data: clj -T:build download-ephemeris
  • Extract elevation data: clj -T:build extract-elevation
  • Convert day map sectors into pyramid of tiles: clj -T:build map-sectors-day
  • Convert night map sectors into pyramid of tiles: clj -T:build map-sectors-night
  • Convert elevation sectors into pyramid of tiles: clj -T:build elevation-sectors
  • Convert tile pyramids into pyramid of cube maps: clj -T:build cube-maps
  • Build atmosphere lookup tables: clj -T:build atmosphere-lut
  • Perform all build steps above: clj -T:build all
  • Enable integration tests (requiring results of above build steps): touch .integration
  • Build JAR file: clj -T:build uber
  • Create Windows executable: java -jar packr-all-4.0.0.jar packr-config.json (delete out-windows folder first)
  • Create Windows installer: makensis nsis-config.nsi

Lint

Run

  • Run tests: clj -M:test
  • Run test for specific module (rendering for example): clj -M:test sfsim.t-render
  • Run the global cloud cover prototype: clj -M etc/cover.clj
  • Run main program displaying black window: clj -M -m sfsim.core

External Links

sfsim's People

Contributors

wedesoft avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sfsim's Issues

include current project into build

See nextjournal/clerk for example including current project.

:build {:deps {io.github.nextjournal/clerk {:local/root "."}
                          io.github.clojure/tools.build {:git/tag "v0.6.1" :git/sha "515b334"}
                          io.github.slipset/deps-deploy {:git/sha "b4359c5d67ca002d9ed0c4b41b710d7e5a82e3bf"}
                          io.github.nextjournal/cas {:git/url "[email protected]:nextjournal/cas"
                                                     :git/sha "5e8079b720e347b9466db9c2282ce79a125a011c"}}
                   :extra-paths ["bb" "src" "resources"] ;; for loading lookup-url in build
                   :ns-default build}}}

use mipmapping

use level-of-detail rendering when rendering clouds and opacity maps

interpolate_3d

revert changes to shadow matrices and implement interpolate_3d. use same for sampling, rename interpolation functions (clamp, wrap). separate index computation to be used in sampling.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.