Skip to content

amigash/3D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A basic 3D renderer written in Rust. Capable of reading OBJ files containing either tris or quads.

Current features:

  • Backface culling
  • Frustum culling
  • Textures via MTL files
  • Lighting
  • Free-camera

Requirements

Rust and Cargo

Installation and running

git clone https://github.com/amigash/3D/

cd 3D

cargo run --release

(release mode is important for performance)

Move the camera with WASD, left-shift, and space. Look around with the mouse.

To use with new files, change OBJECT_PATH in src/main to the path of the OBJ file.

If the program runs slowly, try increasing SCALE in src/main (higher means more downscaling). Similarly, decrease SCALE for better visual quality (maximum at SCALE = 1).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages