Author Topic: Loading bar  (Read 2193 times)

Offline svarvi

  • byte
  • *
  • Posts: 2
    • View Profile
Loading bar
« 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...


Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Loading bar
« Reply #1 on: August 16, 2012, 01:23:17 pm »
The model is loaded when the load-method returns.

Offline svarvi

  • byte
  • *
  • Posts: 2
    • View Profile
Re: Loading bar
« Reply #2 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 ).

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Loading bar
« Reply #3 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.