Skip to content
0:00 / 0:00

#repa#gloss#ray-tracing

Haskell / Repa Real-Time Ray Tracing Demo

Ben Lippmeier

75 subscribers • 1 video on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.
  • Presented by Ben Lippmeier
  • May be out of date. The tools, versions or practices it shows have likely moved on.

Intermediate. Assumes working knowledge.

7.3K views14 years ago1 recommendation

Graphics and audioProgramming languagesHaskellRenderingConcurrency and parallelism

Ben Lippmeier demonstrates a real-time ray tracer written in Haskell using the Repa parallel array library.

Real-time ray tracing demo written in Haskell with the gloss-raster and Repa parallel array library. Demo is running in real time in parallel on a four core machine with two hardware threads per core. gloss.ouroborus.net. repa.ouroborus.net. Source code: code.ouroborus.net/gloss/gloss-head/gloss-examples/raster/Ra….

Why it's here

1 person recommends this

u/erikdin r/haskell • Recommends

Haskell / Repa Real-Time Ray Tracing Demo

u/haskell_cavemanin r/haskell • Mentions

On “3D examples / tutorials”

…lide: https://github.com/sleexyz/hylogen Very easy/lightweight to get started. First time I tried livecoding shaders in Haskell was a "wow I do live in the future" moment. Some older resources (ok for starting out, i wouldn't build anything too ambitious based on these): a realtime raytracer with gloss (the code is included in gloss examples): link to this video (nice, gloss performance isn't great last I checked though) https://hackage.haskell.org/package/not-gloss (one of the earlier & accessible 3D efforts, but as with gloss, probably not particularly scalable) There's also this tutorial on youtube by jekor link to this video The code is out of date but the tutorial is beginner-friendly.…

u/klaxionin r/haskell • Mentions

On “What would you reccomend for a non programmer to delve into haskell ?”

why hasn't anyone mentioned gloss? It's not as full featured but it's probably the closest analogue to cinder in terms of low barrier to entry, instant-gratification kind of work. The realtime ray tracer consisting of a few hundred lines was pretty inspiring the first time I saw it: link to this video There were some issues with setup a while back due to a ghc bug https://ghc.haskell.org/trac/ghc/ticket/10568 but I think those were resolved with 7.10. Haven't checked myself though. In my opinion, the worst thing about haskell from a beginner perspective isn't the language itself, but ghc's error messages, which, while useful to advanced users, are brutally illegible to new users.

u/jevestobs1in r/haskell • Mentions

On “"Hask" anything, New Years edition! The thread where you ask and we try to answer!”

unfortunately not a full game, but the most impressive stuff are these real time ray-tracing demos that smart people whip together https://github.com/ekmett/quine talk: link to this video For a more accessible hello-world version, there's the gloss demo: link to this video (only a few hundred lines of code!) but yeah, it would be nice if there were more full-blown projects to show.