Skip to content

wellscrosby/3D-points-renderer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

3D-points-renderer

Here's a 3D points renderer I made from scratch in Rust which runs single threaded on the CPU. I tried to make up my own techniques so it's using weird perspective math (not sure what it's called/if there's a name for it). It only renders points now, but I want to add full 3d models, and light and physics simulation when I have the time. The camera control is click and drag, there are other (more conventional) options commented out in the handle_camera_inputs function.

Try messing with the camera fov constant at the top of the file and how each cube is created/which cubes are rendered in main. WASD movement, R and F to go directly up and down. Have fun! :)

Here's a filled-in and non-filled-in cube, the patterns on the filled-in cube are cool to see in motion, especially as you move far away. two_cubes

Here's what it's like inside a non-filled-in cube with a 360 degree camera, looks really cool in motion. 360_cube

Randomized cube and color support red_white_random_cubes

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages