8000 GitHub - jeantimex/geospatial: A realistic Earth atmosphere effect using the @takram/three-atmosphere library.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jeantimex/geospatial

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
NXVlKBL3HNdXlBPg.mp4

Atmosphere Demo Preview

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 --legacy-peer-deps

    Note: The --legacy-peer-deps flag is required due to peer dependency conflicts between packages. Specifically, 3d-tiles-renderer requires React 18, while other dependencies (like expo pulled in by @react-three/fiber) expect React 19. This flag tells npm to use the older, more permissive dependency resolution algorithm to handle these version conflicts.

  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

A realistic Earth atmosphere effect using the @takram/three-atmosphere library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0