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)

  • Manic Minutes 9 hours 14 min ago by Technopeasant
  • Free/Open-Source Research Project About Games 1 day 16 min ago by emmacaputo
  • Full LPC Credits? 1 day 20 hours ago by MedicineStorm
  • Sharing My Music and Sound FX - Over 2500 Tracks 2 days 21 hours ago by Eric Matyas
  • Looking for 2d Tree sprites with a fair amount of detail 2 days 23 hours ago by kheldarath
  • Rockstar Tycoon: Perfect Ballad v6.6.3c - Looking for Lead Artist 5 days 9 hours ago by SIEMPRERETORNA
  • Feedback Wanted: Ported “Pukan, Bye-Bye!” to Web – Looking for Bug Reports 6 days 5 hours ago by YokaGames
  • Building a Library of Images for Everyone 1 week 2 days ago by Eric Matyas
Subscribe to Active Forum Topics

Recent Comments - (view more)

  • Re: Rumpus by maocleal
  • Re: Boba Gor by maocleal
  • Re: Ganymede by maocleal
  • Re: Starfield Dreams by maocleal
  • Re: Escalate by maocleal
  • Re: Dogs of Cyberspace by maocleal
  • Re: Car - Porsche 911 Carrera 1998 by Aqu67
  • Re: 2D Explosion Animations | Frame by frame by vrszabi
Subscribe to Recent comments

New Art Collections - (view more)

  • NeuroBlade
  • Encouraging Success-Animations
  • hexagon-art
  • SpellBound
  • new city game 3d
  • Metal music
  • Smith
  • Retro
  • Misc
  • city game 2d

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