Loading bar

Started by svarvi, August 16, 2012, 01:21:05 PM

Previous topic - Next topic

svarvi

i'm basically trying to make a loading bar when my mesh is being loaded. How do i know if a model has been loaded. Is there a callback somewhere or can something be done with the input stream?
help please...


EgonOlsen

The model is loaded when the load-method returns.

svarvi

That i get ... but you know how a loading bar works right...
I would be glad if i get data like total bytes to load and bytes currently loaded.
Right now when my mesh is loading all i can show is a splash screen(Maybe with a "loading..." text :P ).

EgonOlsen

Either you base the loading bar on the number of files you load (if applicable) or use one of the usual spinners that Android uses all over the place. I'm not going add a callback mechanism just for this.