Rajawali Tutorial 12: Object Picking

Posted by on Mar 23, 2012 in 3D, Android, Rajawali9 comments

This tutorial has moved to the [Rajawali Wiki](https://github.com/MasDennis/Rajawali/wiki/Tutorial-12-Object-Picking).



Tags: , , ,


9 comments

» Comments RSS Feed
  1. [...] Rajawali Tutorial 12: Object Picking Tags: 3D, Android, OpenGL, OpenGL ES, Rajawali [...]

  2. Hello, I’m using your library as my project. I was wondering is ACTION_MOVE works too? Because It seems that it’s only recognize ACTION_DOWN in my project

  3. Sure, you can use ACTION_MOVE as well. Just add it to your activity like so:
    public boolean onTouch(View v, MotionEvent event) {
    if(event.getAction() == MotionEvent.ACTION_MOVE)

  4. How can I get the coordinate (x,y,z) when the object touched?

  5. I mean how can I get the touched coordinate (x,y,z) on the object?

    PS : Sorry for the double posting.

  6. For now you can just use the picked object’s coordinates. A more accurate picker is in the pipeline, so it’ll have to do for now :)

  7. Great, great, great work!!
    my humble woooooowwwww….!! for you.
    I was reading this and I cannot figure out how to add Offset change reaction to a live wallpaper (lets say: the camera rotates when offset changes).
    As I can see from here, you extend the famous Robert GreenĀ“s GLSurfaceView reimplementation for LWPs; so you extend WallpaperService itself wich in turn has the onOffsetChanged(…) method; but when trying to get access to mOffset (=xOffset * xPixels) I get always mOffset = 0…
    Could you give me a hint?

  8. It is posible to use the OnObjectPickedListener in a live wallpaper?
    I tried it, but didn’t work for me.

    Thank’s

  9. I am also interested if it is possible Object Picking in live wallpapers.
    Will it work?

    And as already said by others, really compliments for your great work on this engine, it saved me a lot of time!

    thanks.
    Ivan

Leave a comment