Loading...
Logo
Processing Forum

"P3D" in Android

in Android Processing  •  1 years ago  
Hi all, I have a Processing sketch that run under Windows right now, which uses the P3D rendering engine - any idea if this would have a chance of running under Android?  (I would just try it, but I don't have an Android device...)

OpenGL is also an option, but the sketch does use some 3D graphics.  If the answer is "no, not yet", then any good idea for a hack on how to show this app from an Android tablet, e.g. through remote desktop?

Thanks,
Brian

Replies(4)

Re: "P3D" in Android

1 years ago
I don't have any P3D sketches right now but I'd be happy to try it for you. Post your code or send it and I'll try to run it on a Galaxy S2.

Re: "P3D" in Android

1 years ago
you may try adding following code next to your draw()
Copy code
  1. String sketchRenderer() {
  2.   return P3D; 
  3. }
It will use OPENGL.

Re: "P3D" in Android

1 years ago
P3D on Android uses the A3D renderer. You can try it on an AVD (Simulator) which comes with the Android SDK but the performance is well below what you'd expect from a real device.

Hope this helps

Dave

Re: "P3D" in Android

1 years ago
Hi guys, thanks for the responses.  I borrowed an Android tablet from a friend and am trying to get things up and running (although having some problems - I have another post about it...)  

Thanks for the help,
Brian