Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A raytracer written in Rust for fun and learning

License

NotificationsYou must be signed in to change notification settings

k0nserv/rusttracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust

YAR(Yet Another Raytracer).

I like to write raytracers to learn new programming languages. They're fun and are a natural way to learn most OOP languages. Naturally I'm writing a raytracer in rust called rusttracer 🙂.

Building

Make sure you have the rust nightly toolchain installed then run

cargo build --release

Running

The project uses a json based configuration format. For an example see thergb-spheres.json scene. To render it run:

target/release/rusttracer --config-path scenes/rgb-spheres.json

Usage

Usage: target/release/rusttracer [options]Options:    -c, --config-path CONFIG_PATH                        config file path, uses`default.json`if not specified    -b, --benchmark     Benchmark by rendering the scene multipletimes    -h, --help          prints thishelp menu

Renders

This was the first render produced.

This was rendered a while later, at this point there was support for diffuse colors, specular highlights, reflection, colored lights, and super sampling. This is 2560x1440 at 4x4 super sampling

This rendering uses procedural textures to render the fractal artworks. This is 2560x1440 at 4x4 super sampling.

About

A raytracer written in Rust for fun and learning

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp