Background stars in the wrong position
lealea401 opened this issue · 2 comments
lealea401 commented
Hello,
I am using the Stars background generated by Spacekit. I noticed that the position of background stars is not correct. Stars are in the wrong position and/or duplicated. The arrangement suggests a 180-degrees error in the software. Could you suggest if I can somehow rotate the background to correct the star positions with respect to Earth?
typpo commented
Hi @lealea401,
Thanks for the report! Just checking, are you using createStars
(rendered points) or createSkybox
(rendered image)?
lealea401 commented
Hi @typpo ,
I am using createStars. I use createSkybox for rendering the Milky Way. Here it is the code:
const vt = window['vt'];
const camera = vt.getViewer().cameraControls;
const scene = vt.getScene();
const settings = VisualisationService.getSettings();
const backColor = settings.objectsSettings.background.color;
scene.background = new THREE.Color(backColor);
scene.background.set( backColor );
if (settings.objectsSettings.dsos.value) {
vt.stars = vt.createStars();
}
if (settings.objectsSettings.milkyWayBackground.value) {
vt.skybox = vt.createSkybox(Spacekit.SkyboxPresets.NASA_TYCHO);
}