Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
By adding cube support we can view very high quality 360 scenarios since OpenGL has a max texture limit. Using one bitmap this texture must be used for all of the 360 while with a cube this limit is applied for each face of the cube. In the example I included you have 2048x2048 faces.
The demo I just copied your examples and added cubemap, so it might be a bit clunky though I just wanted to get the demo up and running.
To use the cubemap you need to set the projection mode to CUBE and use
asCubemap
like you do forasBitmap
andasVideo
.To load each face,
onProvideCubemap
is executed for each face to be loaded. After all faces loadedonReady
is called.With the example I used Picasso as you already have. In my project I used Glide. Inside
onReady
in the demo, I calledcancelBusy
and in my project I use that to hide the overlay on top to hide the loading process and display loading spinners like you do. This allows very good flexibility.I'm not sure to which branch to push, so I created the request for
master
.