danni.coy Posted December 13, 2013 Share Posted December 13, 2013 Is there any way to find out if unigine is done loading objects into the scene eg. grass. I am working on batch capture and being able to find out when the scene is good to go would be very useful. Link to comment
frustum Posted December 25, 2013 Share Posted December 25, 2013 ObjectGrass and ObjectMeshClutter nodes will have getSpawnCount() method which will return the number of to be generated cells. Everything will be ready when this function will return zero value. Link to comment
ulf.schroeter Posted December 25, 2013 Share Posted December 25, 2013 It might be helpful to have another function e.g. getQueueCount() on the filesystem singleton to get an indication if there are any pending background resource loads e.g. after a scripted jump to a new location. Maybe there is an even better place or mechanism to check end of background resource and node streaming ? Link to comment
frustum Posted December 25, 2013 Share Posted December 25, 2013 engine.filesystem.getNumQueuedData|Files|Images|Meshes|Resources() functions will be available as well. Link to comment
ulf.schroeter Posted December 28, 2013 Share Posted December 28, 2013 engine.world.getNumQueuedNodes() would complement available function set for getting pending background resource loads. Another issue is that the number of queued files will "miss" any resource which is currently in the process of being loaded by the backgroud thread (processed_node in the source code). Therefore getNumPendingData|Files|Images|Meshes|Resources|Nodes() returning sum of queued and currently processed files would be precise and a value of 0 would correctly indicate end of any background load. Link to comment
frustum Posted January 9, 2014 Share Posted January 9, 2014 Queued counters include the currently processed resource. engine.world.getNumQueuedNodes() function will be added in the next SDK update. Link to comment
nat.harrold Posted January 9, 2014 Share Posted January 9, 2014 That's great. Thanks Ulf and Frustum! Link to comment
Recommended Posts