Thanks for the suggestion.
I think that’s unlikely to explain the differences, since:
- The default margin in jme3-bullet v3.3 was changed to 0.04 by PR 1053, so the margins should be same for both libraries.
BoxCollisionShape
is a precise shape, so margin shouldn’t affect its visualization.
Edit: I think I found a workaround for the Z-fighting (see below), but the Android wireframe issue remains a mystery.
ViewPort overlay = renderManager.createPostView("Overlay", cam);
overlay.setClearFlags(false, true, false);
bulletAppState.setDebugViewPorts(overlay);
Edit: We’re not the first to notice the Android wireframe issue: PhysicsDebugGeometry drawn solid
Does anybody know of wireframe materials that work on Android?