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)

  • looking for an unpaid computer game graphic designer at an HD quality 1 hour 55 min ago by zombietom
  • Free/Open-Source Research Project About Games 1 day 1 hour ago by Jetical
  • Sharing My Music and Sound FX - Over 2500 Tracks 2 days 2 hours ago by Eric Matyas
  • Training an AI to Generate Sprites 2 days 13 hours ago by lyogavin
  • Building a Library of Images for Everyone 4 days 2 hours ago by Eric Matyas
  • Studio Startup 6 days 18 hours ago by Jetical
  • July 2025 Art Challenge - Post-Apocalyptic Survival 6 days 18 hours ago by Tsorthan Grove
  • Legend Despite All Else! 6 days 21 hours ago by Jetical
Subscribe to Active Forum Topics

Recent Comments - (view more)

  • Re: Detective Game by BibiDev
  • Re: Radar by MiniModele
  • Re: JRPG Collection by Elbon Eastmage
  • Re: Blue Space by Elbon Eastmage
  • Re: Free Music Pack by Elbon Eastmage
  • Re: Just a Remake + Just a Test by Alejo_c....
  • Re: Winter Background by MedicineStorm
  • Re: Knight by piacenti
Subscribe to Recent comments

New Art Collections - (view more)

  • Compil A Lost Bread - Filamentum
  • 1j01's Favorites
  • 1bpp
  • Tank Twister
  • Metal Devils
  • Detective Game
  • Music for "Starphase"
  • Freedoom's Intermission screens
  • Missile Commandish Relaunched
  • DungeonDeveloper Music

Affiliates

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

Error message

Notice: Only variables should be passed by reference in eval() (line 4 of sites/all/modules/ds/ds.module(969) : eval()'d code).

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