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

MonoGame pipeline support #34

Open
Serdan opened this issue Sep 26, 2024 · 5 comments
Open

MonoGame pipeline support #34

Serdan opened this issue Sep 26, 2024 · 5 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@Serdan
Copy link

Serdan commented Sep 26, 2024

You mention DotTiled.MonoGame.Pipeline in the readme, but I can't find it anywhere.

@dcronqvist
Copy link
Owner

Yeah, I should remove that. I currently only have plans on creating a MonoGame.Pipeline nuget for MonoGame support.

There's currently nothing available like that for DotTiled, but we can keep this issue open until I have added that support.

Sorry if that caused a bit of confusion, I'll correct it in the README as soon as I have my workstation available.

@TheBoneJarmer
Copy link

If you are looking for MonoGame support, may I suggest not using the pipeline at all? It was not designed for that. The pipeline was meant to parse images, models and fonts since they are all external graphics files which needs to be converted to an internal format used by the graphics driver in order for the renderer to display them on the screen.

Tiled maps (and xml files in general for that matter) are data files and serve a different purpose. They need no parsing since they are stored in ASCII/UTF8 format already, readable by almost any file reader. And usually not as big as image or model files.

@Serdan
Copy link
Author

Serdan commented Oct 10, 2024

Yeah, I came to the same conclusion and forged ahead. The only, minor, concern is that the image source in tsx files can't be trusted because it's an image file and goes through the pipeline.

@TheBoneJarmer
Copy link

TheBoneJarmer commented Oct 11, 2024

You are right about the image source. But the way I handled those was by using a Dictionary<string, Texture2D> where the string was the filename of the tileset and the texture2d object the tileset itself. Saves you not only re-loading the tileset again and again but that way you can match the tileset as well with ease.

@dcronqvist
Copy link
Owner

I agree with @TheBoneJarmer here, there's little no need for any actual specific MonoGame pipeline implementation.

The only advantage would be that it would automatically add the depending tileset textures and then rebuild appropriately. However, as mentioned, Tiled maps are simple text files and require no external -> internal format conversion in MonoGame, so you should be able to just load them as you would any other text file.

We'll keep this issue open as a reminder, and as a way for others to voice their opinions on the matter.

@dcronqvist dcronqvist changed the title DotTiled.MonoGame.Pipeline ?? MonoGame pipeline support Oct 27, 2024
@dcronqvist dcronqvist added documentation Improvements or additions to documentation enhancement New feature or request labels Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants