www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: svarvi on August 16, 2012, 01:21:05 pm

Title: Loading bar
Post by: svarvi on August 16, 2012, 01:21:05 pm
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...

Title: Re: Loading bar
Post by: EgonOlsen on August 16, 2012, 01:23:17 pm
The model is loaded when the load-method returns.
Title: Re: Loading bar
Post by: svarvi on August 16, 2012, 01:28:47 pm
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 ).
Title: Re: Loading bar
Post by: EgonOlsen on August 16, 2012, 03:32:12 pm
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.