Pro mappers please come - Object streaming <----- -
v1k1nG - 01.10.2018
Hello. So yes I never mapped and need your help.
My question is:
Can I manage the objects I create so they won't appear suddently when getting nearer? They aren't visible from a certain distance but then pufff they pop up.
Only thing to do is editing server cfg, or..?
I'm using Incognito's streamer
Thanks for your time
Re: Pro mappers please come - Object streaming <----- -
Undef1ned - 01.10.2018
You can use "CreateDynamicObjectEx ()" which has a drawdistance parameter.
PHP код:
CreateDynamicObjectEx(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, Float:streamdistance = STREAMER_OBJECT_SD, Float:drawdistance = STREAMER_OBJECT_DD, worlds[] = { -1 }, interiors[] = { -1 }, players[] = { -1 }, STREAMER_TAG_AREA areas[] = { STREAMER_TAG_AREA -1 }, priority = 0, maxworlds = sizeof worlds, maxinteriors = sizeof interiors, maxplayers = sizeof players, maxareas = sizeof areas);
You can increase the amount of object the streamer will draw.
PHP код:
Streamer_MaxItems(STREAMER_TYPE_OBJECT , 800);
Streamer_VisibleItems(STREAMER_TYPE_OBJECT , 800);
Re: Pro mappers please come - Object streaming <----- -
v1k1nG - 01.10.2018
Which draw distance do you suggest for good rendering?
Re: Pro mappers please come - Object streaming <----- -
NaS - 01.10.2018
A draw distance similar to the stream distance.
If the Draw Distance is lower than the Stream Distance they will appear later than they stream in. That's pretty pointless.
Using a higher Draw Distance than Stream Distance will lead to the pop-in effect you are experiencing.
When they are about the same they will be invisible at the moment they get created, and when moving closer they will smoothly fade in.
Adjust the stream and draw distances so that the total amount of streamed objects doesn't reach the maximum too often, that will reduce the stream distance of the visible objects as they cannot be shown from too far and they will pop in again.
You can also adjust the max. number of visible items as already suggested, but going too high may result in more frequent crashes.
Quote:
Originally Posted by Undef1ned
You can increase the amount of object the streamer will draw.
PHP код:
Streamer_MaxItems(STREAMER_TYPE_OBJECT , 800);
Streamer_VisibleItems(STREAMER_TYPE_OBJECT , 800);
|
Don't use MaxItems. This will limit the number of dynamic objects, but does NOT influence the number of objects shown per player. VisibleItems is what you need.
Re: Pro mappers please come - Object streaming <----- -
v1k1nG - 01.10.2018
Thanks for explaining! I'll get into that later
Unf I cant rep you, it says I need to spread some.