• Stars
    star
    163
  • Rank 231,141 (Top 5 %)
  • Language
    Rust
  • License
    Other
  • Created over 8 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A slightly psychotic path tracer.

Overview

Psychopath is a path tracing 3d renderer. You can read about its development at psychopath.io.

This project is mostly just for me to have fun, learn, and play with ideas in 3d rendering. I do have vague hopes that it will eventually be useful for real things, but that's not a hard goal.

Unlike many for-fun 3d rendering projects, Psychopath is being designed with production rendering in mind. I think that architecting a renderer to efficiently handle very large data sets, complex shading, motion blur, color management, etc. presents a much richer and more challenging problem space to explore than just writing a basic path tracer.

Building

Psychopath is written in Rust, and is pretty straightforward to build except for its OpenEXR dependency.

If you have OpenEXR 2.2 installed on your system such that pkg-config can find it, then as long as you have Rust (including Cargo) and a C++ compiler installed, you should be able to build Psychopath with this command at the repository root:

cargo build --release

However, if you are on an OS that doesn't have pkg-config (e.g. OSX, Windows), or you prefer to do a custom build of OpenEXR, then you will need to download and build OpenEXR yourself and specify the necessary environment variables as documented in the OpenEXR-rs readme.

Once those environment variables are set, then you should be able to build using the same simple cargo command above.

PsychoBlend

Included in the repository is an add-on for Blender called "PsychoBlend" that lets you use Psychopath for rendering in Blender. However, most Blender features are not yet supported because Psychopath itself doesn't support them yet.

Features Supported

  • Polygon meshes.
  • Point, area, and sun lamps (exported as sphere, rectangle, and distant disc lights, respectively)
  • Simple materials assigned per-object.
  • Focal blur / DoF
  • Camera, transform, and deformation motion blur
  • Exports dupligroups with full hierarchical instancing
  • Limited auto-detection of instanced meshes

License

See LICENSE.md for details. But the gist is:

  • The overall project is licensed under GPLv3.
  • PsychoBlend is licensed under GPLv2, for compatibility with Blender.
  • Most crates under the sub_crates directory are dual-licensed under MIT and Apache 2.0 (but with some exceptions--see each crate for its respective licenses).

The intent of this scheme is to keep Psychopath itself copyleft, while allowing smaller reusable components to be licensed more liberally.

Contributing

This is a personal, experimental, for-fun project, and I am specifically not looking for contributions of any kind. All PRs will be rejected without review.

However, feel free to fork this into an entirely new project, or examine the code for ideas for a project of your own.

More Repositories

1

ropey

A utf8 text rope for manipulating and editing large texts.
Rust
1,025
star
2

psychopath_cpp

Old C++ version of Psychopath.
C++
57
star
3

led

A simple text editor written in Rust
Rust
51
star
4

recordscreen

Python
44
star
5

kobo_jp_dict

A Japanese-English dictionary builder for Kobo e-readers.
Rust
31
star
6

cessen_rigify_ext

Cessen's rig types and extensions for Rigify.
Python
30
star
7

openexr-rs

This repository has been moved to https://github.com/vfx-rs/openexr-rs
Rust
23
star
8

str_indices

Count and convert between various ways of indexing utf8 string slices.
Rust
16
star
9

sobol_burley

A seedable Owen-scrambled Sobol sequence.
Rust
13
star
10

rigify

Auto-rigging addon for Blender
Python
11
star
11

subs_extract

Extracts per-sentence subtitles + audio from a subtitle file + video file.
Python
11
star
12

ropey_old

Old implementation of Ropey
Rust
7
star
13

lut_extractor

A tool for extracting LUTs from color processing software.
Rust
6
star
14

blender_vg_tools

An addon for Blender that provides some useful tools for managing and manipulating vertex groups and weights
Python
5
star
15

syosetu2ebook

Convert books from syosetu.com to epub format, with or without auto-generated furigana.
Rust
5
star
16

owen_hash_experiments

Rust
3
star
17

colorbox

Rust
3
star
18

kioku

A memory arena/pool for Rust.
Rust
3
star
19

cross_track

Blender addon to track a 3D location triangulated from two 2D camera tracks.
Python
2
star
20

rune

A programming language
C++
2
star
21

cessen_blender

My personal tweaks to Blender.
Python
2
star
22

wacom_screen_switch

A small script that cycles your wacom tablet between screens on a multi-monitor setup
Python
1
star
23

markov_rust

Markov chain text generator, written in Rust
Rust
1
star
24

text_encoding

Text encoding/decoding for Rust.
C++
1
star
25

anki_sim

Simple approximate simulation of using Anki SRS
Rust
1
star
26

passphrase_experiments

Rust
1
star
27

camera_shakify

Please see: https://github.com/EatTheFuture/camera_shakify
1
star