kvark / vange-rs

Rusty Vangers clone
https://vange.rs
Apache License 2.0
428 stars 21 forks source link

Modernized ray-tracing #62

Closed kvark closed 5 years ago

kvark commented 5 years ago

Algorithm is based on Maximum Mipmaps for Fast, Accurate, and Scalable Dynamic Height Field Rendering.

vangers-maxmip

kvark commented 5 years ago

Positive direction rays are almost perfect now: vangers-raymax0-forward

kvark commented 5 years ago

Debug mode matrix: vangers-raymax-underworld

kvark commented 5 years ago

Dual layer is here :tada: : road16-raymax

kvark commented 5 years ago

I think the change is basically done. Of course quality/performance improvements are possible here and there, but this will always be the case.

The biggest concern is currently the portability of the change:

With this in mind, I think we should proceed with the change, considering the follow-ups:

  1. another way to render the terrain that is way simpler than ray tracing or tessellation
  2. eventually port to wgpu-rs, which would resolve both the bugs and limited GL capabilities
kvark commented 5 years ago

Alright, I did the most reasonable thing for portability - brought back the old ray tracer, just as a fallback option. Time to ship this! bors r+

bors[bot] commented 5 years ago

Build succeeded