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.

Why NASA Switched from Unity to Blend4Web

150 pointsby felhralmost 10 years ago

12 comments

ndepoelalmost 10 years ago
It&#x27;s very simple: Unity was never designed with a target platform as radical as HTML5&#x2F;JS&#x2F;WebGL in mind. It&#x27;s stuck with an older version of the Mono runtime for its scripting language, and they&#x27;ve pulled off some crazy tricks to get it to work on WebGL: Mono IL code is cross-compiled to C++, which then gets cross-compiled again to JS&#x2F;WebGL using Emscripten. That it works at all is nothing short of a miracle. However, compatibility and performance will be really hard to get up to a decent standard, especially when compared to engines that were built from the ground up for WebGL, such as Blend4Web.<p>Long story short: if WebGL is your primary target platform, Unity is not exactly the first place you should look.
评论 #10065558 未加载
评论 #10065630 未加载
azakaialmost 10 years ago
The article puts too much blame on Unity and not enough blame on browser vendors.<p>This is hinted at in the article:<p>&gt; Browsers are the programs which eat all of a computer&#x27;s free memory, and the half-finished Unity WebGL build often causes crashes and closes browser tabs (especially in Chrome).<p>The main problem is that Chrome has deprecated NPAPI before it is capable of running content like Unity well.<p>If you look at Unity&#x27;s forums, you can see lots of posts talking about Chrome-specific issues, for example<p><a href="http:&#x2F;&#x2F;forum.unity3d.com&#x2F;threads&#x2F;webgl-issue-on-chrome.336871&#x2F;" rel="nofollow">http:&#x2F;&#x2F;forum.unity3d.com&#x2F;threads&#x2F;webgl-issue-on-chrome.33687...</a><p><a href="http:&#x2F;&#x2F;forum.unity3d.com&#x2F;threads&#x2F;bugs-in-chrome-stuttering-and-javascript-error-on-reloading-page.337880&#x2F;" rel="nofollow">http:&#x2F;&#x2F;forum.unity3d.com&#x2F;threads&#x2F;bugs-in-chrome-stuttering-a...</a><p>As those threads say, many Unity games run well in other browsers, but since Chrome is dominant in the market (over 50%), poor Chrome performance makes Unity look bad. But this isn&#x27;t Unity&#x27;s fault.<p>Chrome decided to deprecate NPAPI now, before it has a good-enough solution for running large asm.js codebases. For example, on the Massive asm.js benchmark, Chrome is well behind both Firefox and Edge,<p><a href="http:&#x2F;&#x2F;www.winbuzzer.com&#x2F;2015&#x2F;07&#x2F;28&#x2F;asm-js-only-benchmarking-asm-js-javascript-performance-of-microsoft-edge-vs-google-chrome-44-vs-firefox-39-xcxwbb&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.winbuzzer.com&#x2F;2015&#x2F;07&#x2F;28&#x2F;asm-js-only-benchmarking...</a>
评论 #10067125 未加载
评论 #10067278 未加载
评论 #10082247 未加载
thearn4almost 10 years ago
Just a quick note: NASA is not a unified entity marching in lockstep. This was one org-unit&#x27;s decision made for their own work. I work with a lab at NASA GRC that uses Unity engine pretty extensively for scientific visualization.
simonz05almost 10 years ago
We have a product which used to run on Unity Webplayer. After the Chrome NPAPI deprecation we lost about 50% of our users. WebGL wasn&#x27;t done and still isn&#x27;t really working. Our experience is the same as described in the article. Memory usage and multi million lines of compressed JavaScript will cause most of our users computers to freeze or lag out. Any user with less than 4 GB and on Chrome will have a pretty bad experience. FireFox is far ahead here and runs much better.<p>Edit: Direct to one of our games using WebGL and websockets. <a href="http:&#x2F;&#x2F;www.kogama.com&#x2F;games&#x2F;play&#x2F;68818&#x2F;?webgl=1&amp;da=0" rel="nofollow">http:&#x2F;&#x2F;www.kogama.com&#x2F;games&#x2F;play&#x2F;68818&#x2F;?webgl=1&amp;da=0</a>
评论 #10066292 未加载
Aardwolfalmost 10 years ago
Good. Anything that goes away from Unity is good. I dislike Unity because they refuse to make their web player for Linux. So several Newgrounds games don&#x27;t work for Linux users due to Unity.<p>The Blend4Web Mars Rover demo here works perfectly for me in Linux btw, and guess what, the linked old Unity version says &quot;unsupported platform&quot;, so, thank you NASA for thinking about more users :).
评论 #10085372 未加载
zimbatmalmost 10 years ago
Blend4Web homepage with nice demos: <a href="https:&#x2F;&#x2F;github.com&#x2F;TriumphLLC&#x2F;Blend4Web" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;TriumphLLC&#x2F;Blend4Web</a>
deprodersalmost 10 years ago
What about Unreal 4? I read that they support HTML5 pretty decently by using Emscripten. I really do not know what is their current status on that subject.
评论 #10065665 未加载
评论 #10065678 未加载
评论 #10065623 未加载
exodustalmost 10 years ago
To be fair, the previous Unity version he links to is obviously a beta design. It actually says &quot;beta&quot; at the top. For me, the Unity version loads and runs smoothly.<p>The Blend4Web version seems more polished because it <i>is</i> more polished. They&#x27;ve toned down the lighting, completely changed the interface, and reduced the map area.. you&#x27;re confined to quite a small space. The Unity version you can drive further, only the ground texture needed work. Zoom out though and you&#x27;ll see why the ground texture is more blurry than the Blend4Web version.<p>I&#x27;m sure Blend4Web is great, but what isn&#x27;t great is that Blender is required!
评论 #10066213 未加载
eggyalmost 10 years ago
I wonder how big the deliverable is compared with Unity, UE4 or other similar solutions? I am a long-time Blender user, but I have never used this in any of its previous versions. It seems it supports a lot of the things from Blender - materials, lights, and others. I will have to see how much can be directly used in the transition. I am not very clear on GPL. If I use it for my company, but I choose to release the source, do I still have to pay for a commercial license or is the open source license adequate? I know the commercial license comes with a lot of support material.
sandworm101almost 10 years ago
Is nasa doing this stuff in-house? I&#x27;ve never thought of nasa as experts on software beyond control systems. Have they brought in some gaming people to help with media relations?
jimmaswellalmost 10 years ago
Was it that necessary to keep it in the browser? Why not just give it to the user as a normal Unity build download instead of redoing everything to keep it on the browser?
mschuster91almost 10 years ago
Hmm, about networking, could not WebSockets be used for client-server comms?
评论 #10065791 未加载