Page 1 of 1

Object Limit [Solved]

Posted: Sat Mar 19, 2016 12:41 pm
by Oceans14
I'm curious what the maximum number of objects in a map is. After searching the site I found lots of references to the object limit but no mention of what that limit actually is. I mainly ask because I need to use a pretty decent amount of yav trees in a map, which also happens to be 256x256... so it's a lot of trees plus the addon leaves. Having placed about a third of what I need, the map is crashing either on spawn or seconds later with no severity 3 errors.

Additionally, does foliage count towards the object limit? I assume not, since that would drastically decrease the possible number of other props and such, but on the other hand foliage is a mesh too.

As far as the crashing is concerned, I'm using the stock sides. Only changes thus far are to the map, so my best guess is I've maxed out the objects.

Thanks for any help GT

Re: Object Limit

Posted: Sat Mar 19, 2016 1:16 pm
by thelegend
I think there is no real Object limit like the limit of avaiable CP's. Maybe it all matters how much needs to be rendered. I am not sure about that. You can fill your entire terrain with foliage, but the visibility range of each foliage group must be minimized down. Same for Objects. I often hit a limit of possible maximum objects, but on some maps I reached this limit earlier. Then sometimes I never hit a limit. I think adjusting the Far and Near Scene Range and other LOD settings and you should be able to have as many objects as possible. Or not. I never tried it.
I know trees are similair to foliages due to their 2D textures. Lowering the visibily range should fix the problem.

Re: Object Limit

Posted: Sat Mar 19, 2016 2:07 pm
by Oceans14
thelegend wrote:I think adjusting the Far and Near Scene Range and other LOD settings and you should be able to have as many objects as possible... Lowering the visibily range should fix the problem.
Ah okay. So to be clear, I would open the sky file and change the far scene range here from 5000 to, say, 2500 and then continue decreasing as needed?

Code: Select all

NearSceneRange(30.0, 160.0, 40.0, 200.0);
		FarSceneRange(5000.0, 5000.0);

		FarSceneRange(5000.0);
		FogRange(-100.0, 600.0);
I'll fool around with it and report my results in a few.

Edit:

Yeah, it's definitely the trees. I really don't have that many though:
Hidden/Spoiler:
Image
The problem is when you're in sight of one, you're in sight of too many.

Re: Object Limit

Posted: Sat Mar 19, 2016 2:44 pm
by thelegend
Also the nearscenerange is very important. I remember there are still some myths about the first numbers. I played around with it and came up with the following: The second and fourth = minimum and maximum Terrain View. Example: There is a transition if you have a discance of 100 at least between both (200-300).
The First one probably defines the Soldier Visibility Level. If you have high poly characters only then lowering this number should be helpful. Object distance is probably the third one. But I am not sure.

Re: Object Limit

Posted: Sat Mar 19, 2016 3:14 pm
by Oceans14
I stand corrected. After removing all the trees, the game still crashed, so I cleared the map of foliage and then added the trees back. Game runs fine now. I guess I'll just have to drop the foliage render distance wayyyy down (it was already at 35).
Also the nearscenerange is very important. I remember there are still some myths about the first numbers. I played around with it and came up with the following: The second and fourth = minimum and maximum Terrain View. Example: There is a transition if you have a discance of 100 at least between both (200-300).
The First one probably defines the Soldier Visibility Level. If you have high poly characters only then lowering this number should be helpful. Object distance is probably the third one. But I am not sure.
Interesting. I'm definitely going to tweak these, as well as continue to adjust the near/far range in the sky file.

Edit: I've found that adding any foliage crashes the map, so I'm just abstaining for now. I need to inspect the prp file more carefully at some point. As for the object limit, that has been answered. Thanks thelegend!