r/GraphicsProgramming • • Dec 03 '19

Ray Tracing

Hey guys
I'l trying to implement a raytracing algorithm, but I can't find any suitable tutorial
Any help?

10 Upvotes

19 comments sorted by

View all comments

10

u/trailside Dec 03 '19

I learned a lot working through this book: http://raytracerchallenge.com/

1

u/-Tesla Dec 03 '19

Does it cover multi threading aspect of the renderer?

1

u/[deleted] Dec 04 '19

There’s a lot of easy ways to parallelize offline rendering though

1

u/-Tesla Dec 04 '19

I have no experience with parallelising anything. I'm trying to parallelize my Path Tracer (really, just a Ray caster at this point) and I think I'm stuck, been already 2 days.

2

u/[deleted] Dec 04 '19

You can create a thread pool and make calculating the value of a pixel the unit of work, so at any given point you’re calculating {number of cores} pixels concurrently