TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Minetest – A free, open-source voxel game engine and game

161 点作者 mynameislegion超过 8 年前

8 条评论

dcposch超过 8 年前
This is pretty cool. Props for doing a massive amount of work and creating something open and extensible.<p>--<p>I just tried reading the code to learn how MineTest does voxel meshing, and it didn&#x27;t go so well.<p>(Voxel meshing is about turning blocks into triangles efficiently, and it&#x27;s surprisingly tricky. Mikola Lysenko wrote a great exposition of the problem and several solutions way back in 2012: <a href="https:&#x2F;&#x2F;0fps.net&#x2F;2012&#x2F;06&#x2F;30&#x2F;meshing-in-a-minecraft-game&#x2F;" rel="nofollow">https:&#x2F;&#x2F;0fps.net&#x2F;2012&#x2F;06&#x2F;30&#x2F;meshing-in-a-minecraft-game&#x2F;</a> )<p>I was curious which approach MineTest chose, and I still don&#x27;t know. I think I found the files where the meshing happens, mapblock_mesh.h&#x2F;cpp. The code quality is... less than perfect.<p>There are 200+ line C++ functions. There&#x27;s commented out code and preprocessor &quot;#if 0&quot; ignored code.<p>There&#x27;s a struct that looks important, but it&#x27;s called &quot;MeshMakeData&quot;, and I don&#x27;t know what it represents. The comment above just says &quot;Mesh making stuff&quot;:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;minetest&#x2F;minetest&#x2F;blob&#x2F;0a16e53b40d347db7dcd04cb694d0f8f2ed1a5a7&#x2F;src&#x2F;mapblock_mesh.h#L40" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;minetest&#x2F;minetest&#x2F;blob&#x2F;0a16e53b40d347db7d...</a><p>The file that seems to run everything, game.cpp, is almost 5000 lines long.<p>--<p>For an example of really clean game code, check out Quake or Doom 3. Both have:<p>* short and sweet main() methods<p>* comments that guide the reader and explain what does what<p>* clean decomposition<p>* short, readable functions, and...<p>* reasonably small files<p>So far, MineTest, at least in part, took the &quot;big hairy ball of C++&quot; approach.<p>Good luck with future development!
评论 #12671471 未加载
评论 #12671123 未加载
评论 #12671095 未加载
TamHagmas超过 8 年前
A minetest developer just recently published a sphere-shaped planet version of minetest:<p><a href="https:&#x2F;&#x2F;forum.minetest.net&#x2F;viewtopic.php?f=14&amp;t=15643" rel="nofollow">https:&#x2F;&#x2F;forum.minetest.net&#x2F;viewtopic.php?f=14&amp;t=15643</a><p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=ztAg643gJBA" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=ztAg643gJBA</a><p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=joFWr3JzBOI" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=joFWr3JzBOI</a><p>That&#x27;s just the thing I love about these smaller voxel games - they may not have a huge userbase, but there is innovation happening.
giancarlostoro超过 8 年前
It&#x27;s worth noting that Minetest is available on Ubuntu (and possibly Debian?) via apt (apt-get). Not sure how dated it may be, but it&#x27;s still playable and useful.
评论 #12670444 未加载
评论 #12670780 未加载
qwertyuiop924超过 8 年前
As a longtime MC user, I have to say this is really cool. OTOH, it doesn&#x27;t have MC&#x27;s amazing mod ecosystem, which is a huge part of why that game is so great.
评论 #12670739 未加载
评论 #12670553 未加载
评论 #12670549 未加载
评论 #12671711 未加载
评论 #12671661 未加载
qznc超过 8 年前
I made a few mods a while ago. Pleasurable experience even though I was new to Lua.
smnscu超过 8 年前
One of the best &#x27;downloads&#x27; page I&#x27;ve seen<p><a href="http:&#x2F;&#x2F;www.minetest.net&#x2F;downloads&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.minetest.net&#x2F;downloads&#x2F;</a>
gravypod超过 8 年前
Unfortunately this doesn&#x27;t seem to expose nearly enough features to the programmer of mods. No way to do direct rendering of your own, add AIs, or many other much needed things.<p>You can basically just define blocks and HUD items and that&#x27;s it.<p>Good work on writing the engine, just needs a little more work on the API side.
ghostDancer超过 8 年前
There&#x27;s also a fork Voxelands <a href="http:&#x2F;&#x2F;www.voxelands.com&#x2F;about.html" rel="nofollow">http:&#x2F;&#x2F;www.voxelands.com&#x2F;about.html</a>