Page 1 of 1
Sky view distance problem
Posted: Wed May 14, 2008 3:04 pm
by elfie
Alright this was really wierd. I changed the view distance in the sky file to something ridicoulusly big like 400000. I munged without cleaning, went ingame and the view distance was great, everything was visible and no lag. Except the sky was gone. It was just this big black sky and this happened without changing the tga/geometry section. What happened? THanks
Re: sky problem
Posted: Wed May 14, 2008 3:17 pm
by Teancum
It's possible you made the viewable area larger than the skybox itself, effectively turning the skybox off. Try lowering your numbers back to defaults and see if it comes back.
Re: sky problem
Posted: Wed May 14, 2008 4:24 pm
by elfie
But if I do that then I wont have a high view distance anymore and It will be all foggy and hard to see.
Re: sky problem
Posted: Wed May 14, 2008 4:30 pm
by Teancum
I'm just telling you what the issue more than likely is. Try lowering it just to see if that's the problem. You can always put the big numbers back in. 20 bucks says that's it though.
How big is the terrain on your map? Even with 512x512 terrain you shouldn't need a number that big.
Re: sky problem
Posted: Wed May 14, 2008 4:31 pm
by Aman/Pinguin
Teancum wrote:Try lowering your numbers
At least try that.
Re: sky problem
Posted: Wed May 14, 2008 4:32 pm
by Maveritchell
You don't
need that high a view distance.
Four
hundred thousand units is something on the scale of about 2 orders of magnitude too high. The biggest maps are only about 1000x1000 - and that's rare - and on a map like that you probably only ever need a distance of about 6000 at most.
Re: sky problem
Posted: Wed May 14, 2008 4:46 pm
by elfie
Four hundred thousand units is something on the scale of about 2 orders of magnitude too high. The biggest maps are only about 1000x1000 - and that's rare - and on a map like that you probably only ever need a distance of about 6000 at most.
I had It set originally at 6000 but it made no difference. My terrain is about I think 620x620. I had it set low and it did nothing. I have lowered them. Here is my sky file if you want to take a look.
Code: Select all
SkyInfo()
{
Enable(1);
FogColor(23,93,19);
PS2()
{
NearSceneRange(0.5, 200.000000, 270.000000);
NearSplitScreenRange(1.000000, 140.000000, 200.000000);
FarSceneRange(800.000000);
}
PC()
{
NearSceneRange(9000.0, 25000.0, 12000.0, 30000.0);
FarSceneRange(6000.000000, 14000.0);
}
XBOX()
{
NearSceneRange(0.5, 200.000000, 270.000000);
NearSplitScreenRange(1.000000, 200.000000, 270.000000);
FarSceneRange(800.000000);
}
}
DomeInfo()
{
Texture("dag1_Skydome.tga");
Angle(-90.000000);
Ambient(255.000000, 255.000000, 255.000000);
Softness(1);
SoftnessParam(60);
DomeModel()
{
Geometry("dag1_skydome.msh");
}
}
Re: sky problem
Posted: Wed May 14, 2008 5:25 pm
by obiboba3po
wait your terrain is 620x620, then we have a problem, it has to be a multiple of 2 (256, 512, 1024, 2048)
Re: sky problem
Posted: Wed May 14, 2008 5:45 pm
by elfie
310 x 2 = 620 = an even number. That is not the problem btw but I do appreciate the help. I got it fixed...mostly. When I zoom in with my weapon the sky goes black again. No matter how low I set the Far/near screen I still have the problemo.
Re: sky problem
Posted: Wed May 14, 2008 5:48 pm
by obiboba3po
oh lol i thought it had to be a power of 2

good thing that you got it fixed though. (for the most part

)
Re: sky problem
Posted: Wed May 14, 2008 5:51 pm
by elfie
I tried a clean then munge. I will test it out in a minute and see if the problem goes away.
Re: sky problem
Posted: Wed May 14, 2008 6:52 pm
by Teancum
elfie wrote:310 x 2 = 620 = an even number.
No, it MUST be a POWER of 2. Not an even number. So if it's not a problem now it will be very soon.
it ABSOLUTELY MUST BE:
64x64, 128x128, 256x256, 512x512. 1024x1024 technically would work, but is so incredibly huge you'd never use all of it, even in a starfighter, plus it can crash most people's games.
Re: sky problem
Posted: Wed May 14, 2008 7:39 pm
by elfie
wait, never mind. It was 1024x1024. It seems big but It
was neccessary. Besides, I have seven command posts and at each one are up to 5 speeders that spawn continuesly for both sides. This is for my map
The Old Republic btw.