3d models and Open GL

by teazel » Tue, 12 May 2009 01:36:00 GMT


Sponsored Links
 Hello All,

I've managed to get some basic 3d stuff working quite nicely on my
Android device. My question is how do you define/create more
complicated 3d models? Obivously using int[] arrays of vertices hand
written is quite time consuming and error prone. Are there any
modelling tools that can be used?

Thanks in advance,

James

--~--~---------~--~----~------------~-------~--~----~



3d models and Open GL

by nEx.Software » Tue, 12 May 2009 07:28:45 GMT


 Back in the day, before I gave up on my game idea, I was very close to
finishing an Android export script for Anim8or. It was all Java code
output. I found loading models that were at all complex took entirely
too long. Do a search for Obj Loader for Android, you'll find one on
Google Code. That might help. There was also a MD2 loader in that same
product. Sorry I have no links but I am on my phone at the moment.



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. Having Android Documentation in Groups Pages area

The official location of the documentation is in the source tree, in the
source documentation files and various java docs related to all of the
classes.  We have been regularly accepting contributions to that code to fix
and improve the documentation there.

Someone could certainly copy the docs to wherever else they want, but they
are going to have a fair amount of work cut out for them to keep those in
sync with the official docs.

On Thu, Aug 27, 2009 at 7:44 AM, Balwinder Kaur (T-Mobile USA) <







> > >

2. problem in Http Get method..can any one tell me pls...

Can anyone tell what is the problem in the given code to retrieve

 the data from the local server by using Http Get method......pls give some

example code......i tried but if i give the url the result i m getting same
url

in the text view...shall any one point out wat the error in the code........


pls point out the errors...

With regards,
Raghav.S



package req.http1;


import java.io.IOException;
import java.io.InputStream;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpRequestBase;
import org.apache.http.impl.client.DefaultHttpClient;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

public class reqhttp extends Activity {
    TextView text;
     EditText edt;
     Button btn;
     String n=null;
     String contentOfMyInputStream1;
     String output = null;


    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        edt=(EditText)findViewById(R.id.edt);
        text=(TextView)findViewById(R.id.text);
        btn=(Button)findViewById(R.id.btn);




        btn.setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
            text.setText("");
            // Thread thread = new Thread();
             String st1;

             st1=edt.getText().toString();
            //thread.start();


            try {
                 output ="http://localhost:8080/Serv1/servlet/Servlet1?st1=
"+st1;
                downloadUrl(output);
            } catch (IOException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
            if (output != null)
            {
                text.setText(output);
            }


            }
            });


    }

    public String downloadUrl(String url) throws  IOException{
        HttpClient httpclient = new DefaultHttpClient();
        HttpRequestBase httpRequest = null;
        HttpResponse httpResponse = null;
        InputStream inputStream = null;
        String response = "";
        StringBuffer buffer = new StringBuffer();

        httpRequest = new HttpGet(url);

        httpResponse = httpclient.execute(httpRequest);
        inputStream = httpResponse.getEntity().getContent();
        int contentLength = (int)
httpResponse.getEntity().getContentLength();
        if (contentLength < 0){
           // Log.e(TAG, "The HTTP response is too long.");
        }
        byte[] data = new byte[256];
        int len = 0;
        while (-1 != (len = inputStream.read(data)) )
        {
            buffer.append(new String(data, 0, len));
        }

        inputStream.close();

        response = buffer.toString();

        return response;

    }


}

--~--~---------~--~----~------------~-------~--~----~

3. can one cmulator control controls two emulators in the same computor at the same time ?

4. What is DISABLE_DEXPREOPT ?

5. ADC II Package Rename & Content Providers

6. Date Picker

7. ANR - when using google-json library to serailize.