Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

266
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!