A simple demo of software raytracing.
- Camera
- Adjustable position
- Adjustable rotation (pitch, yaw, roll)
- Shapes
- Position
- Color
- Reflections
- Reflectivity
- Translucency
- Opacity
- Types
- Sphere
- Lighting
- Color and intensity
- Specular highlights
- Shadows
- Types
- Ambient
- Directional
- Point
- Refraction
- Shadow of translucent shapes
- Other geometric shapes
- Scripted movement/video output
- Loading scene from file
- Maven (optional)
- Java 19 (with
--enable-preview
)
- Compiling with Maven
mvn compile
- Running with Maven
mvn exec:java
- Running without Maven (after compiling)
java --enable-preview -cp target/classes fi.misaki.raytrace.Main