My latest project involves a rotating planet, specifically Saturn with its iconic rings. To capture the best view of this celestial marvel, I configured the camera with precision:
var camera = new THREE.PerspectiveCamera(45, width / height, 0.05, 1000);
camera.position.z = 3;
camera.position.y = 1;
camera.position.x = 1;
Despite my efforts, the current setup only presents the planet from a fixed angle on a flat x-y-z axis.
You can see how it looks in action here: Saturn & Rings
I'm keen to incorporate a visual aid by drawing a dashed or dotted line outlining the true axis of the planet, set at an angle 'Ɵ' relative to the orthogonal solar plane (assuming the solar-plane is aligned with 'x-z'). Additionally, I am intrigued by tweaking the angle of the default axes (XYZ) assigned to the planet. How can I achieve this?