a night(texture)mare

Tips for creating and manipulating planet textures for Celestia.
Topic author
petronius
Posts: 2
Joined: 12.03.2007
With us: 17 years 8 months
Location: London

a night(texture)mare

Post #1by petronius » 12.03.2007, 23:05

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?

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Post #2by selden » 13.03.2007, 01:29

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

Topic author
petronius
Posts: 2
Joined: 12.03.2007
With us: 17 years 8 months
Location: London

Post #3by petronius » 13.03.2007, 01:57

Wow. That's one thing I completely overlooked. It's working now, much thanks.


Return to “Textures”