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

Night sky skybox generator - ypos.png

MysticMike
Friday, June 21, 2013 - 15:25
License(s): 
GPL 2.0
The authors of this content agree to license it under later versions of the licenses they selected above.
Texture Dimensions: 
256x256
File(s): 
Preview
ypos_1.png ypos_1.png 1.3 Kb [45 download(s)]
Art: 
Night sky skybox generator
Texture Pack Description: 

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.

I have also included skyboxs at the common OpenGL resolutions, also although this is intended to be accurate I have almost certainly got at least one bitmap upside down or back to front so maybe best to consider these just statistically accurate stars.

also I have not included the star catalog itself because it is not clear if this is distrutable.