Jump to content

How object streamer works?


H5N1

Recommended Posts

Posted

Hello, I have problem that I can't solve. My script creates about 100 objects near player and I need to check 3 states of each object.

1st state - Object is streamed in and visible (loaded)

2nd state - Object is streamed in (in range) but is not visible and is still loading

3rd state - Object is too far away to load/stream

But I have problem to calculate second state, because some objects stream in about 100 units, and other in about 400. Can anyone help me how to check draw distance for each model?

Posted

Maybe get the distance between the objects and the player and add a limit for each state you want.

First state can be less than 50 and second can be less than 60 and third can be greater than 60.

Posted

Oh...

I check state 2 by calculating distance 3D between object and player. But you dont understand, for every model distance when object is streamed in, is different! I need to check this value somehow.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...