From f19c8cc40c5caf8abb4f04aaf9f91ec3a8c1ccbc Mon Sep 17 00:00:00 2001 From: Sakarias Johansson Date: Mon, 13 Mar 2023 22:00:44 +0100 Subject: =?UTF-8?q?=F0=9F=93=B8=20Add=20Camera=20defocus=20blur=20+=20Othe?= =?UTF-8?q?r?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Just wanted to add defocus blur but ended up changing a bunch of other this as well. - Moved scenes to a separate folder. - Updated readme with more pretty images. - Add interface for loading scenes. There is currently one for yaml and another if you want a slightly random scene. - Add image action to decide what to do with the final image once its rendered. Currently supports just showing the buffer until you press the render buffer again and saving the image as `png`. - When you use nix shell you will be dropped in the proper folder so you can just do cargo build etc without having to do `cd`. --- racer-tracer/src/error.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'racer-tracer/src/error.rs') diff --git a/racer-tracer/src/error.rs b/racer-tracer/src/error.rs index 1725d1a..e0e0934 100644 --- a/racer-tracer/src/error.rs +++ b/racer-tracer/src/error.rs @@ -20,6 +20,9 @@ pub enum TracerError { #[error("Config Error ({0}): {1}")] Configuration(String, String), + #[error("Argument parsing Error: {0}")] + ArgumentParsingError(String), + #[error("Unknown Material {0}.")] UnknownMaterial(String), @@ -37,6 +40,9 @@ pub enum TracerError { #[error("Image save error: {0}")] ImageSave(String), + + #[error("Scene failed to load: {0}")] + SceneLoad(String), } impl From for i32 { @@ -57,6 +63,8 @@ impl From for i32 { TracerError::CancelEvent => 10, TracerError::Generic(_) => 11, TracerError::ImageSave(_) => 12, + TracerError::SceneLoad(_) => 13, + TracerError::ArgumentParsingError(_) => 14, } } } -- cgit v1.2.3