r/GraphicsProgramming • • Feb 26 '23

Question Started the Raytracing in a weekend tutorial. Wish me luck.

So I did graphics programming at university 20 years ago, but haven’t written a line of code in 5 years as I’m now in management.

(I wrote a directX heightmap terrain renderer with frustum culling about 20 yrs ago lol)

I’ve always had a love and fascination with 3D programming and the release of RT hardware has reawakened that in me.

Im hoping to do the rt weekend tutorial then a vulkan tutorial and eventually combine the two to make a vulkan app that raytraces a sphere using rt cores. That’s my current goal. Let me know if I’m being overly optimistic.

10 Upvotes

9 comments sorted by

4

u/Ok-Sherbert-6569 Feb 27 '23

Although the raytracing in weekend series is good to learn the fundamentals it won’t translate to raytracing using DX12 or Vulkan sadly. Modern APIs ray triangle intersection and BVH pipelines are not programmable which is the meat and the potato of that series

1

u/PM_ME_YOUR_HAGGIS_ Feb 27 '23

Ok that’s actually quite interesting. Well regardless I’m assuming the weekend series will give me a decent enough understanding of what’s going on under the hood so to speak.

Also it’s been useful so far just to brush up on my c++ as it’s changed quite a bit in 20 years or at least what I remember of it has.

2

u/jhaand Feb 27 '23

Don't forget about WGPU and WGSL if you want something new and more accessible than Vulkan.

https://sotrh.github.io/learn-wgpu/

1

u/Ok-Sherbert-6569 Feb 27 '23

A better idea would be to port that cpu code to CUDA instead which is what I did

1

u/Kantaja_ Feb 27 '23

then what are intersection shaders for

1

u/Andrispowq Feb 27 '23

Thats for custom shapes like if you want your scene to have some spheres than its way more optimal write your own ray-sphere intersection shader than build your sphere from a sh1t ton of triangles

17

u/[deleted] Feb 27 '23

But its Sunday 🤔

3

u/fintelia Feb 27 '23

Let me know if I’m being overly optimistic.

Only one way to find out!