The TerrainPageContent class I'll be providing will only deal in heightmaps - in practice this is what the vast majority of people need anyway. If you want to add overhang terrain support, or indeed any other kind of PageContent, that's entirely possible but outside the content types I'll be working on initially.xadhoom wrote:Do you mean heightmap images? This would be used in the very special cases of "not overhanging" terrains, wouldn´t it?sinbad wrote:The intention is to make the format friendly to pulling data from existing image formats, as external files from the resource system if required. Obviously once in memory it would be saved out in our packed format but there's no reason why it can't be pulled in from images as is done with most systems now.
As far as I understand your notes the goal of your approach is a generic concept for paged data in general. Do you have an idea how generic paged data would/could be described outside of the code. *squinting to the new StreamSerializer class*
PageContent will read data from its own chunk, which can be of any structure (StreamSerialiser just helps you out) so that's entirely extensible. You can embed any data you like so long as you have a PageContent subclass that knows how to interpret it.


