TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ray Tracing in Notepad.exe at 30 FPS (2020)

339 pointsby madmax108over 2 years ago

13 comments

chunkyksover 2 years ago
Every time I see someone&#x27;s off-piste raytracer project, I feel compelled to link my own silly contribution to that diaspora: <a href="https:&#x2F;&#x2F;github.com&#x2F;chunky&#x2F;sqlraytracer" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;chunky&#x2F;sqlraytracer</a>
评论 #33157416 未加载
评论 #33157356 未加载
评论 #33156144 未加载
评论 #33159550 未加载
评论 #33155287 未加载
habiburover 2 years ago
&quot;Using notepad.exe as an output device&quot; is the message here.<p>But impressive job nevertheless.
评论 #33155278 未加载
anaisbettsover 2 years ago
Love this though I have to ask, wouldn&#x27;t getting the HWND of the Edit Control via WindowFromPoint and sending WM_SETTEXT be easier than digging through memory?<p>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&#x27;s other posts!
评论 #33152970 未加载
inglorover 2 years ago
This needs a 2020 flare @dang<p>Still very neat!<p>Previous discussion: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=23246221" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=23246221</a>
评论 #33163522 未加载
aardvarkrover 2 years ago
Great write up! Building a memory scanner and using that to inject text into notepad seems like a fascinating journey and it sounds like you learned a lot. Keep up the good work!
rahenover 2 years ago
That seems to be ray casting (a la Wolfenstein 3D), not ray tracing.
评论 #33154822 未加载
评论 #33153945 未加载
cphooverover 2 years ago
Only a matter of time before doom
评论 #33153877 未加载
评论 #33152946 未加载
soheilover 2 years ago
For those who don&#x27;t understand the significance of this I highly encourage you to learn about ray tracing and the complexity of it. If combining something that complex with something so simple (Notepad.exe) is not art I don&#x27;t know what is.
评论 #33152786 未加载
评论 #33152737 未加载
评论 #33155746 未加载
评论 #33152242 未加载
Dweditover 2 years ago
Hey I can draw in Notepad.exe too! GetDC(hwnd)<p>Note that if you actually want to do something like this, you&#x27;d probably need to deactivate the Edit window from rendering anything, sending WM_SETREDRAW will probably work.
评论 #33197337 未加载
savant_penguinover 2 years ago
This is hilarious<p>Now feed it Doom haha
评论 #33152408 未加载
评论 #33152312 未加载
louissanover 2 years ago
utterly useless hence absolutely indispensable. &lt;3
jherikoover 2 years ago
reminds me of doing this in excel in 1998<p>... although i did a wireframe with bresenham, and struggled to exceed 15fps
notoranditover 2 years ago
As cool as useless. But still cool.