erichlof / THREE.js-RayTracing-Renderer

Real-time Classic Ray Tracing on all devices with a browser, with real reflections, refractions, and depth of field, all on top of the Three.js WebGL framework. Click here for Live Demo: https://erichlof.github.io/THREE.js-RayTracing-Renderer/Classic_Geometry_Showcase.html
Creative Commons Zero v1.0 Universal
15 stars 1 forks source link

How to use this raytracer in Freeciv 3D version? #1

Open andreasrosdal opened 3 weeks ago

andreasrosdal commented 3 weeks ago

Hello! Thank you for creating THREE.js-RayTracing-Renderer!

I would like to use this THREE.js-RayTracing-Renderer to render the 3D version of Freeciv:

https://www.freecivx.net/ https://github.com/freecivx/freecivx

How should I go about upgrading the renderer to use this raytracer ?

Related: https://github.com/erichlof/THREE.js-PathTracing-Renderer/issues/72

erichlof commented 3 weeks ago

@andreasrosdal

Hello Andreas! Unfortunately I have not made much progress in the rendering of triangular model game objects and multiple BVHs. Most of what I put in my response to your question over on my path tracing renderer repo still stands.

This raytracing renderer is more of an exploration project for me in which I wanted to provide classic 1980's-style ray tracing for any device with a browser. Also, since it is based on classical raytracing techniques, I wanted to recreate some of the iconic raytraced scenes from history, as well as recreate the cover art images for ray tracing books that I have in my library and that I am fond of.

This project was also designed as an educational resource for those developers out there who are interested in ray tracing and who might be curious how basic historical ray tracing works. Looking at an old 1980's image render on Google is one thing, but being able to run the same scene and explore it real time with a 3d camera system on your browser (even your cell phone) helps bring all of these historic techniques to life for the modern user.

Hope your project is coming along well. 😊 Cheers, -Erich