AltSurface and alpha embedded Specular

Report bugs, bug fixes and workarounds here.
Topic author
Kolano
Posts: 125
Joined: 15.02.2005
With us: 19 years 9 months
Location: New Jersey

AltSurface and alpha embedded Specular

Post #1by Kolano » 07.09.2008, 19:27

When I use AltSurface I no longer see speculars, which do show when the same texture is used in the standard object definition. Specifically the "NormalEx9" surface does display the alternate normal map, but Earth then has no speculars.

Modify "Earth" "Sol"
{
Texture "BMNG.ctx"
NormalMap "BMNGNormal.ctx"

Atmosphere {
Height 60
Lower [ 0.43 0.52 0.65 ]
Upper [ 0.16 0.37 0.74 ]
Sky [ 0.40 0.6 1.0 ]
Sunset [ 1.0 0.6 0.2 ]
Mie 0.0005
MieAsymmetry -0.15
Rayleigh [ 0.00025 0.0009 0.0015 ]
Absorption [ 0.00018 0.00005 0.0 ]
MieScaleHeight 18
CloudMap "earth-clouds.ctx"
CloudSpeed 0
}
}
AltSurface "NormalEx9" "Sol/Earth"{
Texture "BMNG.ctx"
NormalMap "BMNGNormal-Ex9.ctx"
}
System:
Asus A8N-SLI Premium nForce4 SLI
AMD Athlon 64 X2 4200+
2xeVGA GeForce 7800 GTX 256MB
2gb Dual Channel DDR (400) 3200

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

Re: AltSurface and alpha embedded Specular

Post #2by selden » 08.09.2008, 12:16

AltSurface replaces all surface textures, including specular. They are not inherited from the original object. If you want an AltSurface to have specular properties, you have to explicitly declare it in the AltSurface specification.

See http://www.lepp.cornell.edu/~seb/celest ... s.html#2.4
Selden

Topic author
Kolano
Posts: 125
Joined: 15.02.2005
With us: 19 years 9 months
Location: New Jersey

Re: AltSurface and alpha embedded Specular

Post #3by Kolano » 09.09.2008, 00:29

Ah I get it...

The AltSurface doesn't inherit the...
SpecularColor [ 0.8 0.8 0.85 ]
SpecularPower 25.0
...definitions from the Earth definition and needs them specified separately.
System:

Asus A8N-SLI Premium nForce4 SLI

AMD Athlon 64 X2 4200+

2xeVGA GeForce 7800 GTX 256MB

2gb Dual Channel DDR (400) 3200

duds26
Posts: 328
Joined: 05.02.2007
Age: 34
With us: 17 years 9 months
Location: Europe

Re: AltSurface and alpha embedded Specular

Post #4by duds26 » 26.09.2008, 12:38

selden wrote:AltSurface replaces all surface textures, including specular. They are not inherited from the original object. If you want an AltSurface to have specular properties, you have to explicitly declare it in the AltSurface specification.

See http://www.lepp.cornell.edu/~seb/celest ... s.html#2.4

Something to let an AltSurface inherit from Celestia's default or Another AltSurface would be nice.
Using BMNG with a few different height maps.
and all other stuff can be the same, so this would speed things up for addon developers.

Something like the following

Code: Select all

AltSurface
     {
      (here come the things that the addonmaker has specified)   
      inherit AltSurface "Default"
     }


Return to “Bugs”