I would like to write a simple ray tracer using WPF. This is a training project, and so I prefer performance tuning (otherwise I would go for C ++).
I still want a relatively fast pixel draw. A previous question in StackOverflow contains code to achieve this in WPF, by getting a GDI bitmap. From the relatively small number that I know about Windows programming,
- Gdi slow
- Directx fast
- WPF uses DirectX from the bottom (not sure which parts of WPF, though)
Is it possible to access at the pixel level using DirectX (not GDI) through a WPF canvas (or similar)?
I will also consider suggestions for including DirectX API calls in the WPF window (along with other WPF controls), if possible.
Thanks in advance.
c # wpf raytracing
Gigi
source share