Rust crate to implement at least parts of the PBRT book's C++ code. See also https://www.rs-pbrt.org/about ...
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
Jan Walter 5988adb169 Measure the exact time for SubsurfaceMaterial::new(). See issue #85. před 3 týdny
assets [parse_blend_file] Store field of view (fov) angles with individual cameras. před 2 měsíci
examples Merge pull request #109 from therealprof/clippy-redundant_field_names před 1 měsícem
profile Start profiling via cpuprofiler crate. před 1 rokem
src Measure the exact time for SubsurfaceMaterial::new(). See issue #85. před 3 týdny
.gitignore Wed Dec 21 20:00:39 CET 2016 před 2 roky
.travis.yml Travis fails far too often. Let's try this. před 2 měsíci
Cargo.lock Merge branch 'bump-dependencies' of https://github.com/therealprof/rs_pbrt into therealprof-bump-dependencies před 1 měsícem
Cargo.toml Merge branch 'bump-dependencies' of https://github.com/therealprof/rs_pbrt into therealprof-bump-dependencies před 1 měsícem
LICENSE Initial commit před 2 roky
Makefile Turn rs_pbrt into the main binary instead of an example před 1 měsícem
OpenEXR.txt [skip ci] Add './bootstrap' step and bash environment. před 1 rokem
README.md Turn rs_pbrt into the main binary instead of an example před 1 měsícem

README.md

rs_pbrt

Build Status dependency status

Rust crate to implement at least parts of the PBRT book’s C++ code:

http://www.pbrt.org

Current Rust documentation:

https://www.janwalter.org/doc/rust/pbrt/index.html

Usage

> cargo run --release -- -h
Usage: target/release/rs_pbrt [options]

Options:
    -h, --help          print this help menu
    -i FILE             parse an input file
    -t, --nthreads NUM  use specified number of threads for rendering
    -v, --version       print version number

Test Scenes

Some images of the test scenes are shown below, but you can find more test scenes on GitLab.

Ganesha Statue

Very detailed scan of a small statue with over 4.3 million triangles, illuminated by a few area light sources.

Ganesha Statue

The scene can be found within the repository (assets/scenes/ganesha.tar.gz).

Subsurface Scattering (SSS)

SSS Dragon

sss_dragon_pbrt.tar.gz

Stochastic Progressive Photon Mapping (SPPM)

SPPM Caustic
Glass

caustic_glass.tar.gz

Ecosystem (Cover image for the first edition of the PBRT book)

Ecosystem

pbrt_ecosys.tar.gz

Hair

The hair scattering model in action:

Curly and straight hair rendered by Rust version of
PBRT

Japanes Classroom by NovaZeeke

Classroom room rendered by
rs_pbrt

classroom_pbrt.tar.gz

The White Room by Jay-Artist

The White Room rendered by
rs_pbrt

living-room-2_pbrt.tar.gz

Country Kitchen by Jay-Artist

Kitchen rendered by
rs_pbrt

kitchen_pbrt.tar.gz

The Wooden Staircase by Wig42

Staircase rendered by
rs_pbrt

staircase_pbrt.tar.gz

Conference Room by Anat Grynberg and Greg Ward

Conference room rendered by
rs_pbrt

conference_room_pbrt.tar.gz

Theater by Charles Ehrlich and Greg Ward

Theater rendered by
rs_pbrt

Theater rendered by
rs_pbrt

theater_pbrt.tar.gz

For more info look at the Wiki page or the release notes.

Here you find another Rust implementation:

https://bitbucket.org/abusch/rustracer