Page 1 of 1

a night(texture)mare

Posted: 12.03.2007, 23:05
by petronius
Been trying my hand at this planet-making thing, and it's gone well except that I can't get my night texture to work. Originally I was trying to use a .png with an alpha channel (per what I was reading here: http://www.lns.cornell.edu/~seb/celesti ... s.html#3.2 ). When that kept failing I just tried to use a .jpg, and didn't have any better luck. It's not an issue of Celestia actually displaying night textures -- the one on Earth shows up fine.

This is how the relevant bit of the .ssc file reads:

Code: Select all

"Arrakis (Dune)" "Canopus"
{
   Texture "arrakis.jpg"
   NightTexture "arrakisnight.jpg"
   BumpMap "arrakisbump.jpg"
   ...
}


I'm running Celestia 1.4.1. Any ideas?

Posted: 13.03.2007, 01:29
by selden
What are the dimensions of the texture image file? Don't forget that it needs to be a power of two on a side, e.g. 1024x512.

Posted: 13.03.2007, 01:57
by petronius
Wow. That's one thing I completely overlooked. It's working now, much thanks.