Peculiar alt surface behaviour

Report bugs, bug fixes and workarounds here.
Avatar
Topic author
Chuft-Captain
Posts: 1779
Joined: 18.12.2005
With us: 18 years 11 months

Peculiar alt surface behaviour

Post #1by Chuft-Captain » 05.12.2007, 15:36

Hi eveyone,

Just wondered if anyone has experienced anything like this...

I am using John van Vilet's 2-4K Jupiter and 2-4k Io textures as alt-surfaces.
When I select his texture as the alt-surface for Jupiter, the Io surface reverts back to the normal texture.

Visa-versa, if I then re-select JvV's surface for Io, then Jupiter reverts back to the normal one.

I cannot get both JvV's surfaces to display at the same time.

I've converted his original Jupiter texture into a JPG VT (2 tiles level0, 8 tiles level1).
The Io texture I've left as a straight PNG.

I suspect this is most likely a problem with my graphics or with the way I've configured the textures, but thought I'd check to see if anyone else has ever had similar experiences.

Here's a CelURL if anyone would like to test this for themselves

JUPITER

SSC:

Code: Select all

AltSurface "Jupiter4K JPG" "Sol/Jupiter"
{
   Texture "Jupiter4K JPG.ctx"
        #NormalMap "Jupiter4KNormal JPG.ctx"
}


CTX:

Code: Select all

VirtualTexture
{
        ImageDirectory "Jupiter4K JPG"
        BaseSplit 0
        TileSize 1024
        TileType "jpg"
}



IO

SSC:

Code: Select all

[AltSurface "John Van Vilet 2k-4k Io" "Sol/Jupiter/Io"
{
Texture "2k-4k Io.*"
}


(2K is in medres, 4K in hires)


Any ideas??
"Is a planetary surface the right place for an expanding technological civilization?"
-- Gerard K. O'Neill (1969)

CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS

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

Post #2by selden » 05.12.2007, 15:49

The same AltSurface name is applied to all bodies simultaneously. If you want a particular set of textures to be visible on all bodies simultaneously, you have to give them all the same AltSurface name. e.g.

Code: Select all

AltSurface "2KSurfaces" "Sol/Jupiter" { Texture "Jupiter2K.*" }
AltSurface "2KSurfaces" "Sol/Jupiter/Io" { Texture "Io2K.*" }
AltSurface "2KSurfaces" "Sol/Mars" { Texture "Mars2K.*" }
Selden

Avatar
Topic author
Chuft-Captain
Posts: 1779
Joined: 18.12.2005
With us: 18 years 11 months

Post #3by Chuft-Captain » 05.12.2007, 16:23

Sorted!!

(Well, you learn something new every day!! ) :wink:

Thanks for the swift reply Selden.

I think this will not be the last time I'm struck by this feature. (Because of the way I organise addons in my extras directory ..
eg.

Code: Select all

extras
    Jupiter
        2k_4k_Jupiter
            textures
                hires
                    Jupiter4K JPG
                        level0
                        level1
                lores
                medres
        Io
            textures
                hires
                lores
                medres

Jupiter stuff and Io stuff will be in their own sub-folders, so they have separate SSC's, rather than having all alt-surface definitions in the one file.

I do like having every addon self-contained, but I suppose I could have a single "alt-surfaces.ssc" at the top level of the extras folder and just add definitions to this as new addons are installed. This would make it easier to keep the names consistent, and I guess any textures which were removed (whether permanently or temporarily) would just have no effect when selected at a later date.
"Is a planetary surface the right place for an expanding technological civilization?"
-- Gerard K. O'Neill (1969)

CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS


Return to “Bugs”