Back to project page min3d.
The source code is released under:
MIT License
If you think the Android project min3d listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.min3d; /*from ww w . j a v a 2 s . com*/ import com.min3d.lib.core.Object3dContainer; import com.min3d.lib.core.RendererActivity; import com.min3d.lib.objectPrimitives.Box; /** * @author Lee */ public class ExampleVertexColors extends RendererActivity { Object3dContainer _cube; public void initScene() { /** * Rem, the Box class automatically adds vertex colors (a different color for each side). */ _cube = new Box(1,1,1); _cube.colorMaterialEnabled(true); scene.addChild(_cube); /** * Turn off lighting so that colors come thru "as-is", without any changes in brightness based on * any extant lights or light settings. */ scene.lightingEnabled(false); } @Override public void updateScene() { _cube.rotation().y +=1; _cube.rotation().z += 0.2f; } }