Created
September 5, 2014 08:43
-
-
Save OnlyInAmerica/389b8e8d9e3867b51476 to your computer and use it in GitHub Desktop.
RajaWali Interior Shape Rendering
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
try
sphere.setDoubleSided(true);