Kronnect

Voxel Play => Support => Topic started by: kcchan on January 06, 2021, 02:27:01 AM

Title: Mirror integration - terrain doesn't generate voxels beyond initial ones
Post by: kcchan on January 06, 2021, 02:27:01 AM
Hi,

Has anyone encountered the issue of VoxelPlay environment not auto-generating voxels when the player moves around the map, after implementing multi-player by integrating Mirror using the example in https://kronnect.freshdesk.com/support/solutions/articles/42000080992-multi-player-using-mirror?

It looks as if the terrain has become "static" and cuts off after a certain distance from the player's starting position.
This happens for both the host and client player.

Wonder if anyone has any advice.

Thank you!
Title: Re: Mirror integration - terrain doesn't generate voxels beyond initial ones
Post by: koyima on January 14, 2021, 05:45:18 PM
You mean when you are the host the environment you see doesn't update? (same for client)
Title: Re: Mirror integration - terrain doesn't generate voxels beyond initial ones
Post by: Kronnect on March 12, 2021, 10:03:05 AM
Note that Voxel Play will generate chunks according to the camera frustum (if "Only Render In Frustum" option is used) and respecting the "Force Chunk Distance" and "Visible Chunk Distance".
You can also ensure chunks around certain objects are generated on the server by attaching the Voxel Play Behaviour to the object and set the "Chunk Area" to certain extents, like (2,1,2) and click "Render Chinks" - that will ensure the chunks are generated on the server as well regardless of the camera.