Page 1 of 1

Peculiar alt surface behaviour

Posted: 05.12.2007, 15:36
by Chuft-Captain
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??

Posted: 05.12.2007, 15:49
by selden
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.*" }

Posted: 05.12.2007, 16:23
by Chuft-Captain
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.