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.

Show HN: Realtime GPU-powered implicit function plotter in your browser

41 pointsby timokoestersover 2 years ago

7 comments

c1ccccc1over 2 years ago
Here&#x27;s some more examples:<p><pre><code> cos((x - t)) + cos(0.5877852522924731*y + 0.8090169943749475*(x - t)) + cos(0.9510565162951535*y + 0.30901699437494745*(x - t)) + cos(0.9510565162951536*y - 0.30901699437494734*(x - t)) + cos(0.5877852522924732*y - 0.8090169943749473*(x - t)) = z 10.0*(pow(sin(0.1*(x*x-y*y)), 2.0) + pow(sin(0.2*x*y), 2.0))&#x2F;sqrt(x*x + y*y) = z x*x+y*y+z*z=2.0+cos(t+10.0*x+24.0*y)+cos(t - 10.0*x+24.0*y+16.0*z)+sin(t+x+y+2.0*z)+cos(3.0*t+y-z)+sin(2.0*t+x*y)+cos(t+3.0*x*y)+sin(0.1*t+y*z + 7.0*x*y)+cos(0.5*t+x*y*z)+cos(5.0*z)+cos(1.618*t+7.0*z)+cos((x+2.0*y)*(2.0\*z-y))</code></pre>
评论 #34512496 未加载
jayhoonover 2 years ago
Adding a periodic unbounded function of time (like tan) makes the plot to &quot;explode&quot;:<p>(6.0*(0.04*x*x - 1.0)*pow(0.2*x, 2.0) + pow(0.02*x*x - 1.0, 2.0) + 6.0*(0.04*y*y - 1.0)*pow(0.2*y, 2.0) + pow(0.04*y*y - 1.0, 2.0) + 6.0*(0.04*z*z - 1.0)*pow(0.2*z, 2.0) + pow(0.04*z*z - 1.0, 2.0)) = tan(t)<p>Adding more non-linearity makes the plot is more dynamic:<p>(6.0*(0.04*x*x - 1.0)*pow(0.2*x, 2.0) + pow(0.02*x*x - 1.0, 2.0) + 6.0*(0.04*y*y - 1.0)*pow(0.2*y, 2.0) + pow(0.04*y*y - 1.0, 2.0) + 6.0*(0.04*z*z - 1.0)*pow(0.2*z, 2.0) + pow(0.04*z*z - 1.0, 2.0)) = tan(t*cos(t))<p>Edit: Escaping.
memalignover 2 years ago
This project is so cool!<p>Please copy some of the UI ideas from my 2D graphing calculator (which itself copied nearly all of the UI of graphtoy.com): <a href="https:&#x2F;&#x2F;memalign.github.io&#x2F;m&#x2F;formulagraph&#x2F;index.html" rel="nofollow">https:&#x2F;&#x2F;memalign.github.io&#x2F;m&#x2F;formulagraph&#x2F;index.html</a><p>- Buttons to load examples<p>- Quick way to share a link to the current plot<p>- Buttons that show what functions are supported
ausydiover 2 years ago
This is a truly impressive achievement in real-time browser rendering. The utilization of GPU power to plot implicit functions in real-time is a testament to the capabilities of modern web technologies. The ability to interactively explore and visualize these complex mathematical functions in the browser will undoubtedly prove to be a valuable tool for both researchers and students alike. The seamless integration of this technology into a web-based platform also makes it easily accessible to a wide audience, further increasing its impact. I am eager to see what other groundbreaking developments will come out of this field in the future.
评论 #34512819 未加载
Mizzaover 2 years ago
Dang, that&#x27;s really pretty. Could do with a little interface polish, but really nice visualizations. How does &#x27;t&#x27; work? Would love to be able to feed an audio waveform into a fullscreen mode and some palette options.
评论 #34511656 未加载
farcasterover 2 years ago
I&#x27;ve been meaning to do some project in the browser involving the GPU and can&#x27;t decide on a framework to use.<p>What would you recommend? The cool kids seem to be using pure webGPU
评论 #34511624 未加载
gpmover 2 years ago
Did you publish the source as well?