ianmackenzie / elm-3d-scene

A high-level 3D rendering engine for Elm, with support for lighting, shadows, and realistic materials.
https://package.elm-lang.org/packages/ianmackenzie/elm-3d-scene/latest/
Mozilla Public License 2.0
205 stars 27 forks source link

Add ability to export to ray tracing file formats #9

Open ianmackenzie opened 6 years ago

ianmackenzie commented 6 years ago

Possible renderers (could potentially support multiple ones!):

Could either convert to a particular file format (like Mitsuba's XML format) and then render using a command-line tool, or encode as JSON and send to a server that decodes the JSON and then renders directly using a ray tracing library like pt.

ianmackenzie commented 4 years ago

Perhaps simplest/cleanest approach to start with: export to glTF, since it's very well documented, seems to map well onto elm-3d-scene concepts (simple built-in support for PBR materials etc.), and has pretty broad support.