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

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).

Text, Sweet Text

Wednesday, May 1, 2013 - 04:24
Date Range: 
17 June 2013 to 23 June 2013
Description: 

Create art using only the text editor of your choice. This includes putting together some nice ASCII art, writing up a story, creating art in text-based file format, or anything else that qualifys as game art. Here are a couple of popular text-based file formats: OBJ+MTL, PBM/PGM/PPM, SVG, COLLADA, POV-Ray, ...

Winner(s): 
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

Comments

caeles
joined 13 years 1 month ago
Monday, June 17, 2013 - 13:09

Let me mention the XPM format (http://en.wikipedia.org/wiki/X_PixMap).

Also, if povray source code qualifies, does source code for programming-language-of-choice qualify as well (if the generated program outputs art)?

  • Log in or register to post comments
CruzR
joined 14 years 5 months ago
Monday, June 17, 2013 - 13:38
CruzR's picture

Yeah, I guess it would, although you should probably keep the compilation process simple and not require too many dependencies.

  • Log in or register to post comments
MysticMike
joined 12 years 6 months ago
Friday, June 21, 2013 - 15:33
MysticMike's picture

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

just posted it.

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.

 

enjoy the soltice.

 

  • Log in or register to post comments