Skip to content

LegionsBoom/agriweather

Repository files navigation

Geospatial

A collection of Three.js-based geospatial visualizations, featuring an Earth atmosphere rendering demo.

Atmosphere Demo

This demo showcases a realistic Earth atmosphere effect using the @takram/three-atmosphere library. The visualization includes:

  • Realistic sky rendering with proper light scattering
  • Dynamic sun and moon positioning
  • Atmospheric perspective effects
  • Interactive camera controls
Screenshot 2025-04-30 at 10 09 09 PM

Atmosphere Demo Preview

Technologies Used

  • Three.js (v0.175.0)
  • @takram/three-atmosphere (v0.11.1)
  • @takram/three-geospatial (v0.2.0)
  • @takram/three-geospatial-effects (v0.3.0)
  • Postprocessing (v6.36.7)
  • Vite (for development and building)

Getting Started

Prerequisites

  • Node.js (v16 or higher recommended)
  • npm or yarn
  • Google Maps JavaScript API key (for Tiles demo)

Installation

  1. Clone the repository:

    git clone https://github.com/jeantimex/geospatial.git
    cd geospatial
  2. Install dependencies:

    npm install
  3. Create a .env file in the root directory with the following content:

    VITE_GOOGLE_MAPS_JS_API_KEY=your_google_maps_api_key_here
    

    Replace your_google_maps_api_key_here with your actual Google Maps JavaScript API key.

    Important: Make sure to enable both the Maps JavaScript API and Map Tiles API for your API key in the Google Cloud Console.

  4. Start the development server:

    npm run dev
  5. Open your browser and navigate to the URL shown in the terminal (typically http://localhost:5173).

Available Demos

Building for Production

To build the project for production:

npm run build

The built files will be in the dist directory.

Credits

License

MIT

Author

Yong Su (jeantimex)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published