www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: Zemalax on November 25, 2011, 09:30:44 am

Title: The distortion of the sphere.
Post by: Zemalax on November 25, 2011, 09:30:44 am
Hello! I have a problem, I create a sphere and displays it in the world. When she is at the center of the display - a round sphere (right), but when I ask her to the upper-right corner (where it generally move), it is distorted and looks like an ellipse or oval. Of course, I thought at the expense of what is due to camera angle, but I thought always that which side and the angle at which the sphere does not look - it will remain a sphere. Could you explain me or suggest how to fix it and what is the error.

Code - create sphere in the world
Code: [Select]
sph=Primitives.getSphere(15f);
sph.setAdditionalColor(new RGBColor(0, 255, 0));
sph.calcNormals();
sph.compile();
world.addObject(sph);
world.buildAllObjects();

sph.translate(0.0f,-7.85f, 0.0f);

(http://)

[attachment deleted by admin]
Title: Re: The distortion of the sphere.
Post by: EgonOlsen on November 25, 2011, 09:42:34 am
That's perspective projection. It's totally fine this way.