Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,9 @@ Testing/

# Log files
*.log

# Language server cache (clangd, etc.)
.cache/

# Output images
raytracer_output.png
58 changes: 58 additions & 0 deletions assets/showcase_scene.scene
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Epic 2 Showcase Scene - Enhanced Multi-Sphere Scene
# Format exactly matches simple_scene.scene to ensure compatibility
# Educational scene file demonstrating Epic 2 capabilities with performance monitoring

# Scene Configuration
scene_name: Epic 2 Showcase Scene
description: Enhanced seven-sphere scene showcasing Epic 2 multi-resolution and performance capabilities

# Materials Section
# Format: material_name red green blue
material ruby_red 0.8 0.1 0.1
material sapphire_blue 0.1 0.2 0.8
material emerald_green 0.1 0.8 0.2
material golden_yellow 0.9 0.8 0.1
material warm_orange 0.8 0.5 0.2
material deep_purple 0.6 0.2 0.7
material cool_cyan 0.2 0.7 0.8

# Spheres Section
# Format: sphere center_x center_y center_z radius material_name

# Central focal sphere - primary interest
sphere 0.0 0.0 -4.0 1.0 ruby_red

# Front row spheres
sphere -2.0 0.5 -4.5 0.8 sapphire_blue
sphere 2.0 -0.5 -4.2 0.7 emerald_green

# Middle depth spheres
sphere -1.0 1.2 -6.0 0.6 golden_yellow
sphere 1.5 1.0 -5.5 0.9 warm_orange

# Back row spheres for depth
sphere 0.5 -1.5 -7.0 0.7 deep_purple
sphere -1.5 -0.8 -7.5 0.5 cool_cyan

# Educational Notes:
# Scene Design Philosophy:
# - 11 spheres total for complex intersection testing
# - Varied radii (0.4 to 1.0) to test algorithm robustness
# - Strategic Z-depth distribution (-4.0 to -8.0) for depth complexity
# - Asymmetric positioning to avoid mathematical edge cases
# - Color variety demonstrates material system capabilities
# - Sphere count optimized for <1 minute render at 1024x768

# Performance Characteristics:
# - Intersection tests per ray: ~11 (one per sphere)
# - Expected hit rate: ~15-25% (realistic for scene density)
# - Memory usage: Scene data ~2KB + image buffer based on resolution
# - Ray count at 1024x768: 786,432 total rays
# - Estimated render time: 30-45 seconds on modern hardware

# Visual Composition:
# - Front row provides immediate visual interest
# - Middle row adds depth and complexity
# - Back row creates atmospheric perspective
# - Color progression from warm (front) to cool (back) adds depth
# - Size variation creates natural focal hierarchy
Loading
Loading