With earth.setBillboarding(true); not working, without earth.setBillboarding(true); works!!!
Here the code:
earth= new Object3D(dummyPlane, true);
earth.setTexture("glow");
earth.setAdditionalColor(RGBColor.WHITE);
earth.setLighting(Object3D.LIGHTING_NO_LIGHTS);
earth.setTransparencyMode(Object3D.TRANSPARENCY_MODE_ADD);
earthsetTransparency(7);
earth.setBillboarding(true);
earth.shareCompiledData(dummyPlane);
earth.build();
earth.strip();
earth.translate(0.22f,-25, -0.12f);
world.addObject(earth);
public void onDrawFrame(GL10 gl) {
try {
SimpleVector pivotsun= new SimpleVector();
pivotsun.x = -20;
pivotsun.y = -25;
pivotsun.z = -13;
earth.setRotationPivot(pivotsun);
//earth.getTransformedCenter(pivotsun);
//earth.translate(pivotsun);
earth.rotateY(0.05f);
}