Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to request exactly all tiles in Camera View ? #832

Closed
genaray opened this issue May 31, 2018 · 3 comments · Fixed by #683, portintegration/mapbox-unity-sdk#1, portintegration/mapbox-unity-sdk#3 or portintegration/mapbox-unity-sdk#4 · May be fixed by #1316
Assignees
Labels

Comments

@genaray
Copy link

genaray commented May 31, 2018

Dear community,

im currently struggling with some iusses...
My game isnt a top down game, so i have a normal perspective camera.
The problem is that either the transform location provider, neither the camera bounds tile provider requests all tiles in the camera viewport.

Heres a example :

https://imgur.com/a/2nlUhEW

As you can see only some tiles around the camera are visible. The rest isnt even there. So in my camera i see something like that :

https://imgur.com/a/XRoaGwt

And honestly that doesnt look good at all... So thats the result of the transform tile provider.

Heres the example of the camera bounds tile provider :

https://imgur.com/a/TaKOLzq

Better but not perfect... as you can see there still a few tiles missing.
Futhermore the performance of the camera bounds tile provider is awefull... using an update of rate of 0.1 it almost costs me hundred fps...

Any idea what could i else do to improve this ? I basically just want all the tiles in front of the camera..

@jordy-isaac
Copy link
Contributor

Hi there, @genaray! Have you tried selecting Range Around Transform for the Extent Options? I would make the Camera a child of your player and then increase the Visible Buffer to load more tiles.

screen shot 2018-06-01 at 6 26 14 am

As for performance, you might want to try using Group Features on an Vector Layer Visualizers that you have set up. Also, remove any unnecessary colliders on the terrain or geometry. If you have Retina settings or Mip Map checked you might also want to uncheck those settings.

@jordy-isaac jordy-isaac self-assigned this Jun 1, 2018
@jordy-isaac
Copy link
Contributor

Closing this one out. Please reopen if you need some more help.

This was referenced Jun 7, 2018
This was referenced Jul 10, 2018
@Ferrari177 Ferrari177 mentioned this issue Oct 20, 2018
6 tasks
@anyway2019
Copy link

image
same issue,visible buffer and dipose buffer have setted as above ,but cost lots of fps .use camera bounds instead also not work(ps: map with terrain layer)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment