Welcome to RayTrophi, a high-performance, open-source ray tracing engine and 3D studio. Thank you for taking the time to review this project.
This guide provides a quick overview of how to navigate the portable executable build and explore the engine's core capabilities.
- Extract the
.zipfile into a dedicated folder. - Run
raytracing_render_code.exe(orRayTrophi.exe). - Wait briefly: The engine will detect your hardware (CPU, NVIDIA GPU, Vulkan API) and initialize the corresponding rendering backends via our "Graceful Fallback" system.
- Rotate: Middle Mouse Button (Drag)
- Pan: Shift + Middle Mouse Button (Drag)
- Zoom: Mouse Wheel (or Ctrl + Middle Mouse Drag)
- Move (FPS Style): Use Arrow Keys or PageUp/PageDown
- Go to File > Import Model... (or
Ctrl + I) - Select a
.gltfor.objfile from your local machine. - The engine uses a fully optimized multi-threaded loader.
RayTrophi is completely hardware-agnostic. You can switch rendering modes seamlessly in real-time:
- In the Properties Panel (right side), expand the Render Settings section.
- Look for the Engine dropdown:
- OptiX (GPU): Fastest. Selected automatically if an NVIDIA RTX/GTX card is detected.
- Vulkan RT (GPU): Experimental. Selected if you want cross-vendor hardware RT.
- CPU (Embree): High-quality path tracing used as a smart fallback if no GPU is found.
Note: Switching engines reconstructs the BVH (Bounding Volume Hierarchy) dynamically.
We implemented a non-blocking Idle Preview system to keep the UI perfectly smooth during complex BVH updates:
- Select an object by clicking it in the Viewport.
- Press
G(Move),R(Rotate), orS(Scale). - The Magic: Drag the gizmo handle, but do not release the mouse. Pause your cursor for
0.3s. - The engine will render a fast, temporary preview of the ray-traced result without committing the BVH rebuild!
Explore our physically-based global volumetric cloud scattering system:
- Open the World tab from the top menu (
View > World Tab). - Adjust the Sun Elevation to see real-time Day/Night cycles with procedural stars/moon.
- In the Clouds section, enable clouds and tweak the Coverage, Density, and Silver Intensity (Anisotropy). The clouds are fully ray-marched!
- Box Selection: Right-click and drag over multiple items to select them.
- Mixed Selection: You can select a combination of 3D objects and Light Sources simultaneously.
- Undo/Redo: We wrote a custom Command-Pattern Undo/Redo Engine. Press
Ctrl + Zto instantly revert any transform, deletion, or light mutation inO(1)time complexity.
- In-App Help: Click Help > Quick Guide & Shortcuts (or press
F12for Render Window,F1for Web Docs) inside the application. - Comprehensive Documentation: Visit our Web Manual included in the GitHub repository or the
docs/folder. - Source Code Architecture: All backend scripts, BVH integrations, and procedural systems are open source at our GitHub Repository.
Thank you for reviewing RayTrophi!