Rajawali Tutorial 6: Adding User Interface Elements

Posted by on Feb 17, 2012 in 3D, Android, Rajawali12 comments

This tutorial has moved to the Rajawali Wiki



Tags: , , ,


12 comments

» Comments RSS Feed
  1. [...] to Rajawali Tutorial 6: Adding User Interface Elements. Tags: 3D, Android, engine, OpenGL ES, Rajawali, [...]

  2. Hello, thanks for this tutorial, I have one question: how can I implement same thing using min3d? We apply the renderer to the surface view in RendererActivity class and I start my graphics like that:

    this.startActivity(new Intent(this, mOpenGL.class));

    I have no idea where exactly should I add user interface

  3. by the way, I’ve implemented ray picking for min3d and some other stuff, I can email you my code or share it some other way, just tell me how should I do this. I know you’re not maintaining min3d any more, but I hope it can be useful for other beginner developers.

  4. Hi Ilya,
    Maybe something like this?
    http://code.google.com/p/min3d/source/browse/trunk/sampleProjects/min3dSampleProject1/src/min3d/sampleProject1/ExampleInsideLayout.java

  5. Awesome. Would you be interested in implementing ray picking in Rajawali? Just fork the repository on Github :-)

  6. wow, thanks for that. Exactly what I wanted :)

    I had some troubles with uploading my files on github, so I used upload.com
    Here is my solution: http://uploading.com/files/84a46ac4/min3d.zip/
    I’ve written something like a tutorial, sorry for my english if I made some mistakes, I’m just a student from Ukraine :)

    You can edit and include it to min3d or just post it somewhere if you want or have time, I hope it will be useful to someone.

    I’ afraid I won’t have time to deal with new library next month or two, but you can use my code to implement picking in Rajawali, the main idea is the same so I don’t think it will be a big problem

  7. [...] Rajawali Tutorial 6: Adding User Interface Elements [...]

  8. Hi Dennis,
    Have you tried to use my picking? I hoped you would answer something about it :) Are you going to try/test it or you don’t want to update min3d at all any more?

  9. hi,
    haven’t had the time to look into it yet :-( but it’s high on my todo list. thanks a lot for sending the code! :-)

  10. Can I load the layout from .xml ?
    Rather use Eclipe’s GUI designer.

  11. How would you had a regular 2d surfaceview in order to draw something like a HUD?

  12. how to interact with user interface? I found how interact with objects: public boolean onTouch(View v, MotionEvent event) {
    if(event.getAction() == MotionEvent.ACTION_DOWN)
    {
    mRenderer.getObjectAt(event.getX(), event.getY());
    }
    return super.onTouchEvent(event);
    }

    but if I want touch to UI elements and do something with object… how implement it?

Leave a comment