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

Can't draw map properly if it wasn't the the first one the maploader loaded. #69

Open
Tooni opened this issue Aug 4, 2016 · 4 comments
Labels
Milestone

Comments

@Tooni
Copy link

Tooni commented Aug 4, 2016

Huge apologies if this is me missing something obvious. I'm not sure if this is an issue or if I'm doing something wrong.

When I load a map in the program for the first time like ml.Load("first.tmx"); it loads the map and draws it fine. But later on in the program, when I load another map to the same maploader like ml.Load("second.tmx"); and draw it, it will only draw the first 10x10 tiles from the top left.
e.g. first load: http://i.imgur.com/mS6lR3t.png?1
second load: http://i.imgur.com/SDJ0Noo.png?1

I'm not doing anything with SFML's views and the map is the same size as the window. Thanks for any help.

@fallahn
Copy link
Owner

fallahn commented Aug 4, 2016

:/

If I were to hazard a guess the layer chunks are not getting rebuilt properly (the layers are split in to smaller vertex arrays when drawn for easier culling) and you're only getting the first chunk. I'll take a look when I can (are you using the current or next branch? next has a few bug fixes in it already) as a temporary work around you can always create a new map objects and load from scratch - I can understand this might be a pita though

@fallahn fallahn added the bug label Aug 4, 2016
@Tooni
Copy link
Author

Tooni commented Aug 4, 2016

Thanks for the response. I'm using the master branch. I'll try the next one tomorrow.

@Tooni
Copy link
Author

Tooni commented Aug 5, 2016

Same thing happens in the next one too.

@fallahn
Copy link
Owner

fallahn commented Aug 5, 2016

OK thanks for letting me know

@fallahn fallahn added this to the 2.0.0 milestone Aug 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants