Wrong .mtl attaching to .obj in Android mode

edited October 2013 in Android Mode

I'm new to Android Mode.
I want to display an .obj file on my phone.
(the obj file is downloaded on the Internet)
when I run it in java mode it works well like this:
https://www.dropbox.com/s/i6zwarpreov3z44/1.JPG
but in android mode its color turns purple, and become transparent! like the material file(.mtl) read incorrectly.
pic like this:
https://www.dropbox.com/s/p3d1j0233xyujg7/2.jpg
here's my code: It's really simple!

PShape object;
float rotX;
float rotY;

    void setup() {
    size(1280, 800, P3D);
    noStroke();
    object = loadShape("kn.obj");
    }

    void draw() {
    background(0);
    lights();
    scale(1);

    rotateX(rotY);
    rotateY(rotX);
    shape(object,800,-200);

    }
    void mouseDragged()
    {
        rotX += (mouseX - pmouseX) * 0.01;
        rotY -= (mouseY - pmouseY) * 0.01;
    }

I can't figure out what's wrong with my code, Can you lend me a hand? Thx!

Tagged:

Answers

  • maybe something wrong with the OpenGL of android mode?

  • hi, the opengl renderers in the Android mode are a bit outdated and don't include recent fixes. The next release of the mode will address this issue.

  • @codeanticode Thank you!
    I'm a big fan of your work, it once helped a lot to my graduation project.
    Looking forward to the next release!

Sign In or Register to comment.