webfx-demos / webfx-demo-raytracer

A Web Application written in JavaFX that computes a ray tracing animation. Also cross-platform & native.

Home Page:https://raytracer.webfx.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Live demo

The demo is published on this page.

A demo very similar to the Mandelbrot demo but with ray tracing, which requires even more computation resources.

Highlighted features

Reusability

This demo demonstrates how you can reuse some Java code from existing JavaFX applications. For example, The ray tracing computation code was taken from this JavaFX application.

Web workers and WebAssembly

Since JavaFX was not originally designed for the web, WebFX provides some additional APIs to work with web-specific concepts such as web workers and WebAssembly modules, which can be useful for applications requiring heavy background tasks. WebFX can interact with third-party web workers and WebAssembly modules or you can write your own in Java. In this demo, they are written in Java and compiled with TeaVM.

About

A Web Application written in JavaFX that computes a ray tracing animation. Also cross-platform & native.

https://raytracer.webfx.dev

License:Apache License 2.0


Languages

Language:Java 95.2%Language:CSS 2.9%Language:HTML 1.9%