How do you add a cloud PNG?

General discussion about Celestia that doesn't fit into other forums.
Topic author
NeilF
Posts: 35
Joined: 20.03.2005
With us: 19 years 8 months

How do you add a cloud PNG?

Post #1by NeilF » 22.03.2005, 09:33

I've downloaded a cloud PNG for Mars. How do I tell the program to apply them?

My current "extras" definition for Mars is:-


Code: Select all

extras/
        mars/
                  mars.ssc (see below)
                  textures/
                        hires/
                        lowres/
                        medres/
                                MarsVT.ctx (see below)
                                MarsVT/
                                        level0/
                                                *png files*
                                        level1/
                                                *png files*
                                        level2/
                                                *png files*
                                        level3/
                                                *png files*
                                        level4/
                                                *png files*


My mars.ssc file:-

Code: Select all

AltSurface "MarsVT" "Sol/Mars"
{
   Texture "MarsVT.ctx"
}


My Mars.ctx file:-

Code: Select all

VirtualTexture
{
        ImageDirectory "Mars"
        BaseSplit 0
        TileSize 512
        TileType "png"
}


Where do I put the actual PNG file, and what (if any) of the definition files do I need to change?

I've looked in the manual, across this site, and "help sites", and cannot seem to find an example?!

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

Post #2by selden » 22.03.2005, 12:02

As answered elsewhere, use Celestia's right-mouse-button popup-menu.
Selden

Topic author
NeilF
Posts: 35
Joined: 20.03.2005
With us: 19 years 8 months

Post #3by NeilF » 22.03.2005, 14:52

selden wrote:As answered elsewhere, use Celestia's right-mouse-button popup-menu.


Sorry, don't understand that. If we take earth as an example. Press "I" adds/removes the cloud cover. Right-Click on it and there is no option applicable to:-
a) Where to put a downloaded cloud PNG.
b) Any particular naming convention for it.
c) Any script changes necessary to bind it into Celestia.

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

Post #4by selden » 22.03.2005, 15:11

Sorry, I misunderstood your question.

There is as yet no way to immediately select alternate cloud cover images except by putting them in the lores, medres and hires directories and typing r or R to switch among them.

(AltSurface only works for Surface textures.)

Another way would be to define different planets, each with its own specific CloudMap and Beginning and Ending directives. Then you'd have to go to specific times, perhaps by using Cel:// URLs or scripts.
Selden

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

Post #5by selden » 22.03.2005, 16:04

*sigh*

I've got to start reading entire posts and not thinking I know which question is being asked.

Sorry.

To add a single cloud texture to Mars as a separate Addon:
1. create the folder extras/Addons/Mars
2. create an SSC file in that folder which adds clouds to Mars. It should contain this text:

Code: Select all

Modify "Mars" "Sol" {
Atmosphere {
      CloudHeight 7
      CloudSpeed 65
      CloudMap "mars-clouds.*"
   }
}

3. create the folder extras/Addons/Mars/textures/medres/
4. place a 2K or smaller cloud texture image named mars-clouds.png (or .dds) in that folder

(You also can create /lores/ and /hires/ and use
r and R to switch among whatever cloud images you put in them. The images must all have the same filename, but can have different filetypes.)

5. start Celestia
6. view Mars

If you want to use a 4K or larger or a VT cloud image, then you must specify

Code: Select all

CloudSpeed 0


Sorry for the confusion.
Selden

Topic author
NeilF
Posts: 35
Joined: 20.03.2005
With us: 19 years 8 months

Post #6by NeilF » 22.03.2005, 17:33

selden wrote:*sigh*

I've got to start reading entire posts and not thinking I know which question is being asked.

Sorry.

To add a single cloud texture to Mars as a separate Addon:
1. create the folder extras/Addons/Mars
2. create an SSC file in that folder which adds clouds to Mars. It should contain this text:

Code: Select all

Modify "Mars" "Sol" {
Atmosphere {
      CloudHeight 7
      CloudSpeed 65
      CloudMap "mars-clouds.*"
   }
}

3. create the folder extras/Addons/Mars/textures/medres/
4. place a 2K or smaller cloud texture image named mars-clouds.png (or .dds) in that folder

(You also can create /lores/ and /hires/ and use
r and R to switch among whatever cloud images you put in them. The images must all have the same filename, but can have different filetypes.)

5. start Celestia
6. view Mars

If you want to use a 4K or larger or a VT cloud image, then you must specify

Code: Select all

CloudSpeed 0


Sorry for the confusion.


That works... as long as I use "CloudSpeed 0".

If I use 65 then there is a strange join line/seem (vertically) down Mars.

The clouds do not move on their own (like Earth)!?

The clouds I've downloaded are:-
http://www.celestiamotherlode.net/catalog/marscloud.php

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

Post #7by selden » 22.03.2005, 17:49

That's a 4K texture. You have an ATI card. ATI cards have at most a 2K texture buffer. Moving cloud textures have to fit into the card's texture buffer. You'll have to use a graphics utility to scale the image down to 2Kx1K.

For stationary textures that will be pasted onto spheres, Celestia can cut large images into pieces small enough to fit into a card's texture buffer and remap the pieces onto the sphere appropriately. It can't do that for moving clouds, for planet Rings or for textures mapped onto 3D Mesh objects.

Sorry.

(Current generation Nvidia cards have 4K texture buffers.)
Selden

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 8 months
Location: Hamburg, Germany

Post #8by t00fri » 22.03.2005, 17:59

NeilF wrote:
That works... as long as I use "CloudSpeed 0".

If I use 65 then there is a strange join line/seem (vertically) down Mars.

The clouds do not move on their own (like Earth)!?

The clouds I've downloaded are:-
http://www.celestiamotherlode.net/catalog/marscloud.php


But you downloaded a 4k cloud texture. So, as Selden emphasized, it CANNOT work correctly for CloudSpeed <>0 with your ATI card.

To repeat myself: I suggest you first acquire a certain familarity with how Celestia works and how it is structured, before installing 'extreme' sized stuff. Otherwise, e.g. Selden will have a new 'fulltime' job ;-)

Bye Fridger

Topic author
NeilF
Posts: 35
Joined: 20.03.2005
With us: 19 years 8 months

Post #9by NeilF » 22.03.2005, 18:04

selden wrote:That's a 4K texture. You have an ATI card. ATI cards have at most a 2K texture buffer. Moving cloud textures have to fit into the card's texture buffer. You'll have to use a graphics utility to scale the image down to 2Kx1K.

For stationary textures that will be pasted onto spheres, Celestia can cut large images into pieces small enough to fit into a card's texture buffer and remap the pieces onto the sphere appropriately. It can't do that for moving clouds, for planet Rings or for textures mapped onto 3D Mesh objects.

Sorry.

(Current generation Nvidia cards have 4K texture buffers.)


Aha! Thank! This is what it looks like!

Image

At least the bump mapping is working now!

Infact a small bumpmap improves the appearance of planet far more than a new virtual texture.

For example the default Mars texture with a bumpmap looks just as good as my 280+meg virtual texture with the same bump map applied!!!

In short a good bump map would appear to make more difference than hundreds of megs of virtual textures!!

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

Post #10by selden » 22.03.2005, 18:22

Until you get right down to the surface.

My guess is that the shading provided by your bumpmap is limiting what you can see in your high resolution closeups. Specular, bump and surface texture maps all really need to be the same resolution.
Selden

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 8 months
Location: Hamburg, Germany

Post #11by t00fri » 22.03.2005, 19:00

NeilF wrote:At least the bump mapping is working now!


In fact a small bumpmap improves the appearance of planet
far more than a new virtual texture.

For example the default Mars texture with a bumpmap looks
just as good as my 280+meg virtual texture with the same
bump map applied!!!

In short a good bump map would appear to make
more difference than hundreds of megs of virtual
textures!!



NeilF,


while it is certainly correct that /good/,i.e. smooth and
noiseless normalmaps/bumpmaps
are /most/ essential
components of a high-quality 3d display in Celestia, your
above statement is barely ridiculous!

How long have you been a member of this forum? Please
don't forget that it hosts quite a number of experts in these
matters ...

I think you just got to see how Mars looks with some real
resolution 1st class textures!
The following examples
are from 1600x1200 screendumps of my system. Sorry for
vasting space here, but it seems to be the only way to make
you think a bit before your next post....


Image
Image
Image
Image

Bye Fridger

Topic author
NeilF
Posts: 35
Joined: 20.03.2005
With us: 19 years 8 months

Post #12by NeilF » 22.03.2005, 19:30

selden wrote:Until you get right down to the surface.

My guess is that the shading provided by your bumpmap is limiting what you can see in your high resolution closeups. Specular, bump and surface texture maps all really need to be the same resolution.


This is quite interesting... I'll start a new thread for this...


Return to “Celestia Users”