Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

267
Visualizações
Real time globe with three.js

I am creating a globe within my react project and I need to correctly initialise this globe based on a given time, (ie, now or sometime in the future). This globe should position itself correctly against a light source's day and night cycle (the sun).

Are there any examples or libraries that can help with this task? I know satellite tracking applications have this problem solved, however, there isn't many correct examples.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

There are a couple examples on the internet:

GitHub: On the home page of GitHub, you can see a globe that rotates and shows recent public commits.

Postprocessing: This example on the docs might help you out with the lighting of the sun.

As for the positioning of the globe based on time, you could grab the users current time:

var d = new Date();
hour = d.getHours(); //9 hours
minute = d.getMinutes(); //30 minutes

Then with that information, you can adjust your globe and light source (the sun) accordingly.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda