Hi,I'm a newbie for jpct-ae. I used the getSphere(float scale) Function of Primitives Class. and then map a earth on it. I found that the sphere appeared not properly. I also use the opengl es of android to draw a sphere and map a texture on it. It showed correctly.
this is the code sample
Texture texture = new Texture(BitmapHelper.rescale(BitmapHelper.convert(context.getResources().getDrawable(R.drawable.earth)),1024,512));
TextureManager.getInstance().addTexture("texture", texture);
// cube = Primitives.getCube(20);
cube = Primitives.getSphere(25, 25);
cube.calcTextureWrapSpherical();
cube.setTexture("texture");
cube.build();
world.addObject(cube);
com.threed.jpct.Camera cam = world.getCamera();
cam.moveCamera(com.threed.jpct.Camera.CAMERA_MOVEOUT,50);
cam.lookAt(cube.getTransformedCenter());
I also found that it is slow when the project is generating the sphere!!
anyone met this problem?? thanks
[attachment deleted by admin]