One more LIKE to unity for this Webgl port. Once if any animation, video and even images are flash in a website. As
internet developed more new and better tools evolved like ajax, css3,
html5, js, jquery... and as a game developer i see webgl as major
development.
Plugin free game running in browser. This is one of the major feature which will game to reach a lot of people.
I had tried earlier webgl when introduced in a Linux environment with chromiu, then with three.js, now with unity 5.
Now I planned to port my Android game ZnopChains to webgl and publish the game online.
Upgraded the unity4 project to unity5, removed plugins like Unity Ads, Google play Achiments and Highscore, Soomla from the code. And fixed all errors because of this code removals.
FYI the above is not development builds..
These are the main files reason for the size reduction
Compressed\Html5_Fastest.jsgz
Release\Html5_Fastest.js
For Android out APK Size = 20mb
Image ref
Left side Web build vs Webgl build at rightside
Supports : Desktop versions of Firefox and Chrome
Not supported:(from unity site)
Upcoming more on webgl and unity5 topics like how to publish a unity webgl game online, how to run unity5 build on chrome...
Plugin free game running in browser. This is one of the major feature which will game to reach a lot of people.
I had tried earlier webgl when introduced in a Linux environment with chromiu, then with three.js, now with unity 5.
Now I planned to port my Android game ZnopChains to webgl and publish the game online.
Upgraded the unity4 project to unity5, removed plugins like Unity Ads, Google play Achiments and Highscore, Soomla from the code. And fixed all errors because of this code removals.
Build Setting | WebBuild | Slow(fast builds) | Fastest(very slow builds) |
Resolution | 900 x 600 | 900 x 600 | 900 x 600 |
Publishing setting | |||
WebGL Memorysize | 256 | 256 | |
Enable Exceptions | Yes | None | None |
Data Caching | off | off | |
WebGl Template | Minimal | Minimal | |
Result | |||
Time | Less time | More compared to webuild | More compared to slow(fast builds) |
Time | 2.3mb | 144mb | 49.5mb |
Files created | index.html | Compressed\fileloader.jsgz | Compressed\fileloader.jsgz |
ZnopChains.unity3d | Compressed\Html5.datagz | Compressed\Html5_Fastest.datagz | |
Compressed\Html5.html.memgz | Compressed\Html5_Fastest.html.memgz | ||
Compressed\Html5.jsgz | Compressed\Html5_Fastest.jsgz | ||
Compressed\UnityConfig.jsgz | Compressed\UnityConfig.jsgz | ||
Release\fileloader.js | Release\fileloader.js | ||
Release\Html5.data | Release\Html5_Fastest.data | ||
Release\Html5.html.mem | Release\Html5_Fastest.html.mem | ||
Release\Html5.js | Release\Html5_Fastest.js | ||
Release\UnityConfig.js | Release\UnityConfig.js | ||
.htaccess | .htaccess | ||
index.html | index.html | ||
FYI the above is not development builds..
These are the main files reason for the size reduction
Compressed\Html5_Fastest.jsgz
Release\Html5_Fastest.js
For Android out APK Size = 20mb
Image ref
Left side Web build vs Webgl build at rightside
Supports : Desktop versions of Firefox and Chrome
Not supported:(from unity site)
- Runtime generation of Substance textures
- MovieTextures
- Networking other then WWW class
- Support for WebCam and Microphone access
- Most of the non-basic audio features (anything beyond basic positional playback of audio is not supported).
- Script debugging
- Threads Any .NET features requiring dynamic code generation (just as on other AOT platforms like iOS)
- Runtime GI
Upcoming more on webgl and unity5 topics like how to publish a unity webgl game online, how to run unity5 build on chrome...
No comments:
Post a Comment