Log in or register to post comments

Possible to change the object without compiling?

March 14, 2012 - 2:03am #1

Hi, there. :)
I tried to modify ImageTarget sample.
I'd like to change the 3D object using button listener.
If it's impossible, I just change texture color.
Plz~ give me some advice how to do that.

Re: Possible to change the object without compiling?

March 14, 2012 - 8:13pm #2

The FrameMarkers sample renders different models depending on which marker is visible. The VirtualButtons sample renders the same model with a different texture when a virtual button is pressed. I suggest looking at the renderFrame method of both of those samples for some ideas (in the sample .cpp file).

If you want to change the model on an Android UI button press, you'll need to call from Java to C and set a variable that the renderFrame method can use to determine which model to render.

- Kim

Log in or register to post comments