Pro mappers please come - Object streaming <-----
#1

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
Reply
#2

You can use "CreateDynamicObjectEx ()" which has a drawdistance parameter.

PHP код:
CreateDynamicObjectEx(modelidFloat:xFloat:yFloat:zFloat:rxFloat:ryFloat:rzFloat:streamdistance STREAMER_OBJECT_SDFloat:drawdistance STREAMER_OBJECT_DDworlds[] = { -}, interiors[] = { -}, players[] = { -}, STREAMER_TAG_AREA areas[] = { STREAMER_TAG_AREA -}, priority 0maxworlds sizeof worldsmaxinteriors sizeof interiorsmaxplayers sizeof playersmaxareas 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); 
Reply
#3

Which draw distance do you suggest for good rendering?
Reply
#4

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.
Reply
#5

Thanks for explaining! I'll get into that later
Unf I cant rep you, it says I need to spread some.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)