Sample Scenes
The Far Out SDK includes several sample scenes to help you understand how to use the various APIs in your own projects. These samples demonstrate common use cases and best practices for using NASA data in Unity.
Importing the Samples
To import the sample scenes:
- Open your Unity project
- Go to Window > Package Manager
- Select the Far Out SDK package from the list
- Click the Samples tab
- Click the Import button next to each sample you want to use
The samples will be imported into your Assets/Samples/Far Out SDK/ directory.
Sample Gallery
APOD Gallery
A dynamic gallery that displays recent Astronomy Pictures of the Day with titles and descriptions.
Features
- Loads multiple APOD images and displays them in a scrollable UI
- Demonstrates how to handle both image and video media types
- Shows how to cache images for better performance
- Includes date selection to view APODs from specific dates
Mars Rover Explorer
Browse through photos from various Mars rovers with filtering options.
Features
- Select between different rovers (Curiosity, Opportunity, Spirit, Perseverance)
- Filter by camera type
- Choose by sol (Martian day) or Earth date
- View high-resolution versions of selected images
Earth Viewer
Interactive Earth imagery viewer that lets you explore satellite imagery from any location on Earth.
Features
- Interactive map to select viewing locations
- Date selection to view historical imagery
- Coordinate input for precise location selection
- Save favorite locations
NEO Tracker
Visualize near-Earth objects (asteroids) in a 3D space simulator.
Features
- Scale-accurate 3D visualization of Earth and near-Earth objects
- Real-time data from NASA's NEO API
- Details panel showing size, speed, and potential hazard information
- Time controls to see asteroid positions over time
EPIC Earth Timelapse
Create timelapses of full-disk Earth images from NASA's EPIC camera aboard the DSCOVR satellite.
Features
- Loads full-disk Earth images from the EPIC API
- Creates animated timelapses over days or weeks
- Toggle between natural color and enhanced color imagery
- Includes UI controls for playback speed and range
Using Sample Code in Your Project
Feel free to use any code from the samples in your own projects. Each sample includes well-commented code to help you understand how everything works.
Key scripts to look at include:
ApodGalleryManager.cs
- For managing Astronomy Picture of the Day dataMarsRoverExplorer.cs
- For browsing Mars rover photosEarthImageryViewer.cs
- For working with Earth satellite imageryNeoVisualizer.cs
- For visualizing asteroid dataEpicTimelapseGenerator.cs
- For creating Earth timelapses
Sample Requirements
The samples require:
- Unity 2022.3 LTS or newer
- Universal Render Pipeline (URP) for some visual effects
- TextMeshPro for UI elements
The package manager will automatically install these dependencies when you import the samples.
Back to Top