Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Background stars in the wrong position #73

Open
lealea401 opened this issue Oct 4, 2023 · 2 comments
Open

Background stars in the wrong position #73

lealea401 opened this issue Oct 4, 2023 · 2 comments

Comments

@lealea401
Copy link

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
Copy link
Owner

typpo commented Nov 6, 2023

Hi @lealea401,

Thanks for the report! Just checking, are you using createStars (rendered points) or createSkybox (rendered image)?

@lealea401
Copy link
Author

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);
        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants