balvinder788 / min3d

Automatically exported from code.google.com/p/min3d
0 stars 0 forks source link

Progressive dialog while loading models #52

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I´ve been using Min3d, i have to tell you that it´s a wonderful library. :)
I have one mistake...I´ve benn trying to modify some examples of your library 
(ExampleLoadObjFile.java, ExampleLoad3DSFile), but I have not managed to show a 
"progressive dialog" when I load any of your models.
Only it appears the "progressive dialog" after loading the model, and the 
"progressive dialog" appears for a short time while I get is a black screen.
Is it possible to modify the examples to be displayed correctly with a 
"progressive dialog"? 
I'd be very grateful. :)

Original issue reported on code.google.com by mobsolut...@gmail.com on 2 Jul 2011 at 10:13

GoogleCodeExporter commented 8 years ago
You should perform the loading in a separate thread. Before you start the 
thread, show the progress dialog. Then spawn a new thread in which you load the 
models. When the thread finishes, use a Handler to notify the UI thread and 
remove the dialog.

Take a look at this page on threading in Android: 
http://developer.android.com/resources/articles/painless-threading.html

Original comment by Koperdra...@gmail.com on 21 May 2012 at 12:13