abdfairul / min3d2

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

how to detect touch for 3d models and loading progress dialog #59

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi i am new to android 3d. i used this framework for 3d model implementation. 
its works fine. This framework is so nice to all new people like me. i am 
strucking with two problems 
1. Displaying Progress dialog when model is loading. It seems black instead i 
need to show progress dialog 
2. I need to handle touch when user touch the model. i have 2 models in a 
screen when user touch the model i need to detect which model was touch by user.

Can anyone please suggest any solution for these issues. Since i am new to 3d 
please forgive me for asking these simple questions.

Original issue reported on code.google.com by spdeepa...@gmail.com on 19 Aug 2011 at 10:13

GoogleCodeExporter commented 9 years ago
For the rotation you can check here, he has code provided and I replied on it 
with working code (at least in my case) 
http://code.google.com/p/min3d/issues/detail?id=70

For the loading event, you should load the model in a Thread.
When I'm multi Threading, I always use a new Thread (background thread). This 
will not 'lag' or slow down the application. before you start the thread, you 
show a progress dialog. And you can use a handler to cancel it (pass the 
ProgressDialog with a variable) and call sendEmptyMessage(1) for example to 
identify what must be done.
        @Override
    public void handleMessage(Message msg) {
        switch (msg.what) {
        case 1: // Model done loading
            if ((pDialog != null) && (pDialog.isShowing()))
                    pDialog.dismiss();
            break;
            }
        }

Original comment by jens.deblieck on 28 Jan 2012 at 9:35

GoogleCodeExporter commented 9 years ago
hi all

please can anybody provide me code for the rotation of 3D object with touch 

thanx

Original comment by goyal.ar...@gmail.com on 5 Dec 2012 at 7:56

GoogleCodeExporter commented 9 years ago
I need to handle touch event on a object, Anyone please help.

Original comment by mee...@gmail.com on 2 Apr 2013 at 11:27