show layout after detected object

Started by nima.sh23, June 30, 2015, 10:42:29 AM

Previous topic - Next topic

nima.sh23

Hi there
I use of vuforia and jpct.
I need when my object detected show a small layout on screen.
how can i do that?
help me please.

EgonOlsen

What exactly do you mean by layout?

nima.sh23


EgonOlsen

For a simple button and similar elements, just draw them into a texture and blit it onto the screen using the blit methods in FrameBuffer.

nima.sh23

Thanks for your comment.
but can you tell me,how can I do that?(I mean draw button into texture)

nima.sh23

excuse me,also I have an another question.
I want render a video in vuforia? but i can't find native sample for android.
can you help me,please.
Thanks

EgonOlsen

Onto a texture? Then this might help: http://www.jpct.net/forum2/index.php/topic,3794.0.html

(It's a rather long thread, but it should be possible to derive a solution from it.)

nima.sh23

Thanks for you replay.
I got it,but can you answer my first question?(draw button into texture).
Thanks


nima.sh23

#9
um,sorry,my english not very well.
but my question is:how can I draw button into texture?
I'm new in vuforia/jpct.

nima.sh23

I got it,I solved it.
Thanks a lot.
for the last question.
can I use ImageSwicher instead of object3D?
I need render a Image gallery.

EgonOlsen

You can try to mix standard Android GUI/layout stuff with OpenGL output. Personally, I wouldn't do it, but that might be just a personal preference. If you do it that way, it's independent from jPCT-AE and this forum isn't the right place to ask for support.
The other option is stay within the OpenGL world, but that requires you to re-invent some stuff. For a simple button, you can create a texture that contains the button as an image and use one of the blit()-methods in FrameBuffer to draw it on screen.

EgonOlsen

Quote from: nima.sh23 on July 01, 2015, 04:00:43 PM
can I use ImageSwicher instead of object3D?
I need render a Image gallery.
Not sure what you mean? You want to combine the ImageSwitcher with Vuforia or what?