Skip to content

Instantly share code, notes, and snippets.

@OnlyInAmerica
Created September 5, 2014 08:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OnlyInAmerica/389b8e8d9e3867b51476 to your computer and use it in GitHub Desktop.
Save OnlyInAmerica/389b8e8d9e3867b51476 to your computer and use it in GitHub Desktop.
RajaWali Interior Shape Rendering
getCurrentCamera().setPosition(0, 0, 0);
Sphere sphere = new Sphere(10, 24, 24);
/** Below renders a portion of the exterior of the sphere with texture applied */
sphere.setPosition(0, 0, -13);
/** Below renders nothing when I'd expect to "see" the interior of the sphere */
//sphere.setPosition(0, 0, 0);
Material material = new Material();
material.addTexture(new Texture("brc", R.drawable.brc_sm));
sphere.setMaterial(material);
getCurrentScene().addChild(sphere);
@MasDennis
Copy link

try sphere.setDoubleSided(true);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment