Ray Tracing in Notepad.exe at 30 FPS (2020)
kylehalladay.com
kylehalladay.com
Put a smile on my face (from the sqlraytracer README)
But impressive job nevertheless.
I guess the point may be to learn how Cheat Engine can be used in a practical way to hook things which is definitely more along the lines of some of the author's other posts!
Still very neat!
Previous discussion: https://news.ycombinator.com/item?id=23246221
This example is a cube and plane with one light. It is lines from the camera checked for collision against triangles then a line from the collision point checked against a light. Checking for collision against a triangle is just checking collision against the infinite plane and checking if that point is inside the triangle.
What is the "significance" you are talking about? This is something common with an uncommon display.
Ray tracing, at it's core, is actually beautifully simple.
Also, ray tracing is absolutely not the interesting (or "significant") part of this article. I highly encourage to RTFA first.
As for combining the two: having read on Raymond Chens blog about all the optimization that went into Notepad over the years, I'd guess Notepad is the real complex part here.
Note that if you actually want to do something like this, you'd probably need to deactivate the Edit window from rendering anything, sending WM_SETREDRAW will probably work.
As long as they are actual win32 Windows, then you can still interact with them using the system's API functions.
Other fun fact, Direct3D has interfaces inside of GDI32.DLL, look at all the D3DKMT functions there.
Now feed it Doom haha
... although i did a wireframe with bresenham, and struggled to exceed 15fps