Skip to main content

User login

What is OpenID?
  • Log in using OpenID
  • Cancel OpenID login
  • Create new account
  • Request new password
Register
  • Home
  • Browse
    • 2D Art
    • 3D Art
    • Concept Art
    • Textures
    • Music
    • Sound Effects
    • Documents
    • Featured Tutorials
  • Submit Art
  • Collect
    • My Collections
    • Art Collections
  • Forums
  • FAQ
  • Leaderboards
    • All Time
      • Total Points
      • Comments
      • Favorites (All)
      • Favorites (2D)
      • Favorites (3D)
      • Favorites (Concept Art)
      • Favorites (Music)
      • Favorites (Sound)
      • Favorites (Textures)
    • Weekly
      • Total Points
      • Comments
      • Favorites (All)
      • Favorites (2D)
      • Favorites (3D)
      • Favorites (Concept Art)
      • Favorites (Music)
      • Favorites (Sound)
      • Favorites (Textures)
  • ❤ Donate

Chat with us!

Discord: OpenGameArt
discord.gg/yDaQ4NcCux

IRC: #OpenGameArt on freegamedev.net/irc/#opengameart

Active Forum Topics - (view more)

  • Mix distribution 1 day 16 hours ago by glitchart
  • Manic Minutes 4 days 2 hours ago by Technopeasant
  • Sharing My Music and Sound FX - Over 2500 Tracks 6 days 11 hours ago by Eric Matyas
  • [AFFORDABLE] Professional Game Music Composer - Open for Commissions! 1 week 3 days ago by IndieDevs
  • Change Username Requests 1 week 5 days ago by Firefly in the Dusk
  • Pixel art commissions 3 weeks 8 hours ago by SurrealEmber
  • Project Ideas feedback 3 weeks 3 days ago by Yaroslav_Novikov
  • Small 3D animation recreation (non-commercial, practice only) 1 month 5 days ago by Juanmecánico2
Subscribe to Active Forum Topics

Recent Comments - (view more)

  • Re: sheep running Ninh Thuan by MedicineStorm
  • Re: Winter Forest Pixel Art Tileset 16x16 by MedicineStorm
  • Re: Random_t by MrAmogus
  • Re: Spinning glass potions by MedicineStorm
  • Re: Snowy Village by Louswan
  • Re: Cozy Puzzle Title by game guy maker
  • Re: Cozy Puzzle Title by game guy maker
  • Re: Animated UI Arrow by MilitaryG
Subscribe to Recent comments

New Art Collections - (view more)

  • Oroboros Sounds
  • Music
  • collect
  • Bitrate Royalty: Pixel & Chiptune Soundtrack Pack
  • CC0 Chiptune FX
  • CC0 Chiptune Music
  • Blender Pipes 1
  • dryads-wake-candidate
  • vfx
  • Space Wrap

Affiliates

  • FLARE
  • FreeGameDev
  • Kenney
  • Liberated Pixel Cup
  • Universal LPC Spritesheet Generator

Night sky skybox generator

Entry
Night sky skybox generator
Author: 
MysticMike

Well if generators are allowed I'll enter my nightsky skybox generator.

also includes skyboxs at common OpenGL resolutions. I had in mind being able to navigate by the stars in game but at this stage I'm only going to claim it's statistically accurate. I did consider posting this last week for the space challenge.

This is a skybox generator in C

It works by reading the ascii version of the yale bright star catalog extracting the J2000 coordinates and plotting them onto 6 square bitmaps which are then output in pgm format. The coordinates are converted to degrees, then converted to a vector which is normalised the component with the largest magnitude controls which bitmap the star is rendered to the coordinates are then scaled and the brightness is calculated based on the apparent visual magnitude.

It is intended to be used to generate a night sky skybox for use in computer games to enable the player to navigate by the stars. I have include a skybox with a grid marked on it that shows the orientation of the skybox the green line represents the celestial equator and the red line zero of right assension (first point of aries). It should be possible to correctly orientate the skybox with 2 rotations, rotate the celstial equator according to the latitude and rotate zero of right assension according to longitude and time of day (UTC). The skybox is drawn using J2000 cordinates, therefore it is accurate for 1st january 2000 (at midday UTC), I have not taken into account proper motion or pressession of the equinox but for a computer game background it's good for year 2000+/-25 years at least.

Have Fun!

Preview: 
Preview