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.

Programming terrain from scratch using C++ and OpenGL by Shamus Young (2006)

107 pointsby pathless9 months ago

9 comments

tombh9 months ago
I just finished watching a live-coding session (from 2 years ago) by Inigo Quilez (ex Pixar), where he constructs an entire ray-marched landscape using only maths (mostly SDFs) in pure GPU shader code.<p>The stream: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=BFld4EBO2RE" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=BFld4EBO2RE</a><p>The demo: <a href="https:&#x2F;&#x2F;www.shadertoy.com&#x2F;view&#x2F;4ttSWf" rel="nofollow">https:&#x2F;&#x2F;www.shadertoy.com&#x2F;view&#x2F;4ttSWf</a>
评论 #41368348 未加载
herodoturtle9 months ago
This reminds me of NeHe’s OpenGL tuts. That, and a little earlier Denthor’s mode13h tut, changed my life. Good times.
评论 #41353560 未加载
baruz9 months ago
I loved this series and his procedural city. His death was a great loss for the recreational programming and gaming community.
评论 #41364195 未加载
Simon_ORourke9 months ago
I remember being blown away by something similar on the venerable Commodore Amiga in the early 90s. Can&#x27;t remember the name of the app, but you&#x27;d adjust a few parameters and line by line a terrain may would appear.
评论 #41351015 未加载
评论 #41359973 未加载
fredthedeadhead9 months ago
I really miss reading new blog posts and series from Shamus :(
ricree9 months ago
I also enjoyed his similar series on generating a procedural city: <a href="https:&#x2F;&#x2F;www.shamusyoung.com&#x2F;twentysidedtale&#x2F;?p=2940" rel="nofollow">https:&#x2F;&#x2F;www.shamusyoung.com&#x2F;twentysidedtale&#x2F;?p=2940</a>
评论 #41350116 未加载
评论 #41349948 未加载
评论 #41350183 未加载
评论 #41350270 未加载
评论 #41350344 未加载
layoric9 months ago
I don&#x27;t think it was this tutorial, but something similar I did around 2006 after completing a year of games programming study. Generating noise as height maps, mapping height ranges for texture blending and creating these terrains had me hooked on programming. Sadly, web development was just a lot more lucrative, so I dropped C++ for C#, and only done games dev as a hobby every now and then. I love these kind of tutorials though, same with Open GL NeHe, Game Programming Gem books, GPU Gems, etc. Good times!
zootboy9 months ago
Yet another &quot;Hey, this reminds me of a similar thing&quot; contribution: Sean Barrett (of the STB header-only libraries fame) has a series of coding livestreams going over his OpenGL voxel rendering library and sort of turning it into a game:<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=kD93nsghj9A&amp;list=PLMkT-w6m06QvQaGJKw7vRuPlnYJWczvPj" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=kD93nsghj9A&amp;list=PLMkT-w6m06...</a>
jheriko9 months ago
its interesting... but i do wonder how we went from planet scale and infinite terrains in the earlier 2000s and late 90s down to &quot;lets just do one little square&quot;. granted this looks a lot prettier...
评论 #41355863 未加载
评论 #41352222 未加载