udoprog / c10t

A minecraft cartography tool
Other
225 stars 50 forks source link

Add option to generate grid #126

Closed theepoon closed 10 years ago

theepoon commented 13 years ago

Hm, my text disappeared and the edit button does nothing ... I wanted to suggest an option like --outline-chunks where a 16x16 grid is drawn on the chunk borders. This would be very helpful for people like me who fiddle with the chunks on their server directly.

EdGruberman commented 13 years ago

This would be very useful. So much is done with chunk related operations and yet so few easy ways to "see" where a chunk exactly is.

I would assume this would also only be useful for the normal/topdown render mode.

But, since everything is pixels already, where to fit a chunk border line? The first thing I can think of is to draw a single black pixel border around each chunk, but you are giving up a decent amount of pixels for a 16x16 pixel section that way. Perhaps only draw a corner of the border in each of the 4 corners effectively creating + signs at the intersection of borders of chunks?

As I'm typing this out I'm thinking this might actually be a bit too specialized for this program's approach. Couldn't you just determine the projected 0,0 with the JSON and JavaScript code udoprog has already supplied, then use some post processing logic to generate a grid overlay if desired? (I might actually try and do this in my Google Maps interface...)