Re-placement of skydome objects

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re-placement of skydome objects

Post by Maveritchell »

I'm looking to move some of the sky dome models around, and I can't seem to do it. There's an offset command:
Hidden/Spoiler:
[code]DomeInfo()
{
Texture("sky_yav2");
Angle(-90.000000);
Ambient(255.000000, 255.000000, 255.000000);
Filter(1);
Threshold(150);
Intensity(50);

Softness(1);
SoftnessParam(60);

DomeModel()
{
Geometry("sky_yav2");
}
DomeModel()
{
Geometry("sky_yav2_planet");
Offset(100.0);
MovementScale(0.995);
}

DomeModel()
{
Geometry("sky_yav2_mountains");
Offset(100.0);
MovementScale(0.995);
}

LowResTerrain()
{
Texture("yav2");
PatchResolution(2);
FogNear(400.0);
FogFar(800.0);
FogColor(80,80,80, 128);
}


}[/code]
But it doesn't appear to have any effect on the actual relative location of the dome objects. Anyone familiar with the command used to move objects around the sky along the XZ plane? (i.e. not just up and down)
User avatar
Eggman
Master Bounty Hunter
Master Bounty Hunter
Posts: 1516
Joined: Mon Jul 16, 2007 1:30 pm
Projects :: Battlefront Chronicles
Location: Las Vegas

Re: Re-placement of skydome objects

Post by Eggman »

I'm not 100% sure if it applies to objects in the .sky file, but for a world's sun in the .fx file, you can move it around by changing the angle values: Angle(120.000000, -30.000000);. You could try using that for an individual dome model, such as this:

DomeModel()
{
Geometry("sky_yav2_planet");
Angle(120.000000, -30.000000);
Offset(100.0); - I'm not sure if this would still need to be there, I've never used it before.
MovementScale(0.995);
}
Post Reply