0xc0dec / demo-rs

Simple graphics demo in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About

A simple graphics demo where you can fly around, spawn boxes and grab them.

Demo

I made this project to learn Rust and try it in game development. There is no attempt to create an "engine", everything is pretty low level and abstractions are built along the way when needed.

Even though this is a learning project, the code is not heavily commented. Hopefully it's clean enough to be readable and easy to navigate.

Building and running

cargo run

Controls:

  • Toggle camera control: Tab
  • Move: WASDQE
  • Grab/drop boxes: left mouse click
  • Spawn new box: F
  • Quit: Esc

Features

  • hecs ECS.
  • wgpu rendering.
  • nalgebra math.
  • Rapier physics
    • Rigid bodies with colliders.
    • Camera with character controller, preventing it from passing through objects.
    • Ray casting.
    • Drag-n-drop.
  • First person flying camera ("spectator") with clamping of vertical angles to protect from overturning.
  • Skybox rendering on a full-screen quad.
  • Vignette post-processing.

About

Simple graphics demo in Rust


Languages

Language:Rust 95.9%Language:WGSL 4.1%