We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hey folks,
I'm making an android app with P3D renderer, but it's nearly uncontrollable because it's terribly slow. What I'm doing is making use of dozens of vertexes to draw some weird polysurfaces. The interaction here is just dragging vertexes to adjust its position, therefore changing the whole shape, and rotating the screen to see every face of the shape. I've tried not specifying render in size() method, but it says like the renderer does not support screenX(), screenY() and screenZ() functions. Those functions are crucial because you are to drag points in 3D space with 2D interface, so I cannot get rid of those parts. Is there any better way to deal with 3D in android mode, or are any better renderers out there?
BTW, it works just great if I run the sketch in JAVA mode. And the android device I'm testing with is NEXUS 7 with Android version 4.4.
Thank you in advance, and let me know if additional information is needed.
Answers
Perhaps you can use some of the new PShape functionality (tutorial is for 2D, but I think it works in 3D as well) that allows the shapes to be stored on the GPU for faster rendering. I have not dealt with this myself... but it's worth mentioning.
Hello,
I'm also just starting to code with processing and was trying to work out to get fast 3D performance in android. Finally, using PShapes and PShape(GROUP) I got a rather smooth rendering on my smartphone. Find an example below. This is maybe not exactly what you are looking for, but maybe it helps somehow.