Skydome Issues
Posted: Sat Jun 02, 2007 5:38 am
My player is covered to his chest in terrain.
I am using this script for my skydome:
// Example Skydome Scripts:
// -----------------------------------
// Entity Properties
// -----------------------------------
// InitOrder - "Initialize"
// StartOrder - "Start"
// -----------------------------------
//--------------------------------Script starts
here.................................//
{
Initialize[ ()
{
DisableSun(false);
DisableCloud(false);
SetLocation(-23, 6, 12, 24);
SetSunScale(-100);
SetHeightOrigin(0);
SetMoonColor(255, 255, 255, 255);
SetMoonPhase(2);
SetSkyColor(164, 200, 255, 255);
} ]
Start[ ()
{
SetTimeScale(25);
RenderWireframe(false);
ToggleMoveWithCamera(true);
SetTwilightColor(255,25,255,200);
} ]
}
//begin skydome script;
//have done this with the skydome entity using this script:
//Code:
{
Init[ ()
{
SetLandscapeSize(40200);
SetSkyDome(4920, 128);
SetVertScale(1);
SetHorizScale(1);
SetHeightOrigin(-128);
SetDesiredTriangles(512);
SetSkyTexture("cloud.bmp");
SetSkyColor(164, 200, 255, 255);
DisableSun(false);
SetSunScale(64);
SetSunColor(255, 128, 0, 255);
DisableCloud(false);
SetDistanceFromSunFactor(40200);
SetMoonColor(255, 255, 255, 255);
SetMoonPhase(2);
SetLocation(40, 6, 23, 5);
SetTimeScale(60);
UseSkyFog(true);
SetAmbientLightColor(255,255,255,0);
self.time;
self.daytime;
} ]
Run[ ()
{
SetWindDirection("east");
} ]
}
//end skydome script
I am using a skybox with these measurements:
Y size is 512 pixels (-256 to 256). X size is 1500, and Z size is 512.
My terrain is dead center. It is about 100 pixels high (from about -65 to 25 pixels). The surface is at 0.
I placed the skydome entity below my terrain (below -60). Even when I place it way below, it makes no difference. I changed the SetHeightOrigin() to –a lot, and it made no difference. My player continues to be engulfed in the skydomes terrain as though he is walking in a sea of sand. Can someone help me sort this out.
I am using this script for my skydome:
// Example Skydome Scripts:
// -----------------------------------
// Entity Properties
// -----------------------------------
// InitOrder - "Initialize"
// StartOrder - "Start"
// -----------------------------------
//--------------------------------Script starts
here.................................//
{
Initialize[ ()
{
DisableSun(false);
DisableCloud(false);
SetLocation(-23, 6, 12, 24);
SetSunScale(-100);
SetHeightOrigin(0);
SetMoonColor(255, 255, 255, 255);
SetMoonPhase(2);
SetSkyColor(164, 200, 255, 255);
} ]
Start[ ()
{
SetTimeScale(25);
RenderWireframe(false);
ToggleMoveWithCamera(true);
SetTwilightColor(255,25,255,200);
} ]
}
//begin skydome script;
//have done this with the skydome entity using this script:
//Code:
{
Init[ ()
{
SetLandscapeSize(40200);
SetSkyDome(4920, 128);
SetVertScale(1);
SetHorizScale(1);
SetHeightOrigin(-128);
SetDesiredTriangles(512);
SetSkyTexture("cloud.bmp");
SetSkyColor(164, 200, 255, 255);
DisableSun(false);
SetSunScale(64);
SetSunColor(255, 128, 0, 255);
DisableCloud(false);
SetDistanceFromSunFactor(40200);
SetMoonColor(255, 255, 255, 255);
SetMoonPhase(2);
SetLocation(40, 6, 23, 5);
SetTimeScale(60);
UseSkyFog(true);
SetAmbientLightColor(255,255,255,0);
self.time;
self.daytime;
} ]
Run[ ()
{
SetWindDirection("east");
} ]
}
//end skydome script
I am using a skybox with these measurements:
Y size is 512 pixels (-256 to 256). X size is 1500, and Z size is 512.
My terrain is dead center. It is about 100 pixels high (from about -65 to 25 pixels). The surface is at 0.
I placed the skydome entity below my terrain (below -60). Even when I place it way below, it makes no difference. I changed the SetHeightOrigin() to –a lot, and it made no difference. My player continues to be engulfed in the skydomes terrain as though he is walking in a sea of sand. Can someone help me sort this out.