summaryrefslogtreecommitdiff
path: root/racer-tracer/src/camera.rs
AgeCommit message (Collapse)Author
2023-04-16📸 Add more keyboard input for cameracamera-keysSakarias Johansson
- Numpad +/- changes vfov - Numpad 8/2 to change aperture - Numpad 4/6 to change focus disance
2023-04-16✨ Add support for camera configurationSakarias Johansson
Also decided to not use glam and just do the math myself. Just didn't want an entire library for such a small thing. Probably goint to replace Vec3 at some point, just not now.
2023-04-14✨ Add support for camera rotationHEADmainSakarias Johansson
Before you could only move the position of the camera. - Add support for turning camera by holding down left mouse. - Add support for turning camera with arrow keys. - Add Mouse move callback for key_inputs.
2023-03-13📸 Add Camera defocus blur + OtherSakarias Johansson
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`.
2023-03-08🎥 Add support for camera looking at direction.Sakarias Johansson
- Set position of camera. - Set look position of camera. - Set FOV
2023-01-13✨ Add realtime previewSakarias Johansson
- Preview quality is crude but works good enough. - Add scaling to render function. This helps to make the preview faster because we can use the same result for several pixels. - You can move around the camera a bit with wasd, super basic. - Press R to start/stop rendering the scene.
2023-01-08🌍 Add GeometrySakarias Johansson
- Created a trait for all geometry that has to implement a hit function. Depending on if the ray hits or not it returns an option with the color. - Add support for multiple samples per pixel Current issues: - Using cooperative multitasking which isn't that helpful in this situation since it's like running without async but without overhead. Should switch to rayon. - All data gets copied once per job. Will decide later what to do (copy or put locks and share data between jobs).
2023-01-06☁ Add skySakarias Johansson