4 Commits

Author SHA1 Message Date
tverona1
2fd091667b Fix cubemap sky map rendering
Fix an issue with cubemap sky map rendering
2019-11-23 14:31:31 -08:00
tverona1
91aa2479b9 Optimize memory utilization for large # of icons
Optimize memory utilization for large # of icons by dynaically loading / unloading icons as they are scrolled into view.
2019-11-23 13:09:25 -08:00
tverona1
fa1f67cfc2 Support for 3d background: 2048px 6-side horizontal cubemap
Adding support for 2D texture that represents 6-sided cube (2048px per side) as a horizontal layout:
[ +x ]  [ -x ]  [ +y ]  [ -y ]  [ +z ]  [ -z ]

This is the recommended representation of cube map as it is more efficient in terms of memory.
2019-11-02 10:58:59 -07:00
tverona1
4f0399bcdf Adding support for custom background images
This change adds support for custom background images.

Usage:
- Background images are stored in "backgrounds" folder as with jpg or png.
- Both 360 degree (equirectangular) and 6-side cubemap images are supported. This is automatically detected based on aspect ratio (with cubemap having 4:3 aspect ratio).
- Select the background from Settings.

Changes:
- The selected background image is persisted in config in this format: "background": "backgrounds/my_background.jpg",
- Image is decoded in a background thread (via Android plugin), as Texture2D.LoadImage can cause multi-second freeze on the UI thread. We then compensate for unity (re-ordering coordinate origin and also alpha channel).
- Made ground smaller & semi-transparent
2019-09-14 18:07:34 -07:00