Skip to content
Projetos

Sobre

Atmosphere and planet rendering playground. Moved to Codeberg.

Design e mídia

Como estes números são medidos

Crescimento medido de estrelas

em 24 h
0
em 7 dias
0
em 15 dias
0
em 1 mês
Coletando histórico

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original

Moved to Codeberg!

NO AI

Graphics playground. Eternally WIP. No AI was used in making this code, at all.

TODO:

  • Rendering
    • Actual atmosphere rendering
    • Vulkan backend
    • Fix PBR
    • Better effects
    • Animations
  • Gameplay
    • Ship cabin view
    • Better controls
  • Orbits
    • Elliptic orbits, propagation
    • Non-elliptic orbits untested
  • Planets
    • Textures
    • Planetary terrain

Setting Up

requirements: git, internet connection

git clone https://github.com/monomere/pshine --recurse-submodules --shallow-submodules --depth=1
cd pshine
./setup.sh # Sets the ninja platform file, you can do it manually instead.

Building

requirements: ninja modern gcc-compatible c/c++ compiler, glfw, python (optional)

To build (incremental)

ninja

If you edit generate_math.py, ninja will try to regenerate the math.h header, which requires python.

NB: by default, the build.ninja file uses the full LLVM setup with lld, clang, libc++, etc. To use the system-provided stuff change the first line in build.ninja to include build.system.ninja instead. Or make your own config if you want to (or need to)!

Running

requirements: vulkan ≥1.4 with validation layers

MacOS and MoltenVK: If you installed MoltenVK and Vulkan through Homebrew, add VK_LAYER_PATH=/opt/homebrew/opt/vulkan-validationlayers/share/vulkan/explicit_layer.d to your environment (or maybe not I'm not sure).

build/pshine/main

Pass -fullscreen for fullscreen.

Linux and X11: By default pshine uses wayland, but you can pass -x11 to use X11 instead.

Controls

Key Action
F Switch camera mode (default is ship)
F2 Hide all UI
Shift+F2 Only hide the debug windows
P Toggle precise rotation

Ship Mode

Key Action
A/D Yaw
W/S Pitch
W/S Roll
Shift/Ctrl Increase/decrease velocity
Y Enter/exit Warp (100c by default).

Hold left mouse button and drag to rotate the camera around the ship.

Arcball Mode

Key Action
A/D Rotate left/right (yaw)
W/S Rotate up/down (pitch)
X/Z Zoom in/out

Flycam Mode

Key Action
A/D Move left/right
W/S Move forward/backward
E/Q Move down/up
←/→ Rotate on global Y axis (yaw)
↑/↓ Rotate on local X axis (pitch)

Credits

  • Spaceship model by FilipZelinka, from SketchFab. Under CC BY 4.0.
  • Spaceship model by Kerem Kavalci, from SketchFab. Under Free Standard License.

Useful stuff

Resources

This isn't the full set of resources used unfortunately.

Terrain Rendering

Explore projetos relacionados

Carregando…