Skip to content

Cropping regions in a map is causing a cropped region to be moved closer (incorrect coordinates) #1987

Description

@stuntguy3000

Hi everyone,

Weird problem. I'm trying to render a simple world, with two simple crop regions. I'm finding that when I individually render each crop zone, they render correctly, and in the correct place (as determined by player POI coordinates & cursor-based hovering on the maps to see the co-ordinates.

However, when I render both crop regions in the same render run, one of the crop zones is brought much closer to the other one. All renders are done with a complete deletion of the render, so a fresh run.

Left side (individual): https://i.imgur.com/KfaqKjk.jpeg
Right side (individual): https://i.imgur.com/0PUy0jJ.jpeg
Combined render: https://i.imgur.com/axCkn1f.jpeg

Please note the co-ordinates of my player marker.

def playerBaseIcons(poi):
    if poi['id'] == 'PlayerBase':
        poi['icon'] = "https://mc-heads.net/avatar/%s/32" % poi['username']
        return "%s's Base" % poi['username']

worlds["survival-v2"] = "[...]/v2"

renders["survival-v2-overworld"] = {
    "world": "survival-v2",
    "title": "Overworld",
    "rendermode": smooth_lighting,
    "dimension": "overworld",
	"crop": [
		(1000,750,2250,2000),		# xxx
		(-1000,-400,150,200),		# yyy
	],
	"manualpois": [
        {'id':'PlayerBase', 'x':1364, 'y':64, 'z':1258, 'username':'stuntguy3000'},
        {'id':'PlayerBase', 'x':1854, 'y':64, 'z':1128, 'username':'xxx'},
        {'id':'PlayerBase', 'x':1960, 'y':64, 'z':1221, 'username':'xxx'},
		{'id':'PlayerBase', 'x':-249, 'y':64, 'z':-177, 'username':'xxx'},
		{'id':'PlayerBase', 'x':-223, 'y':64, 'z':-235, 'username':'xxx'},
	],
	'markers': [dict(name="Player Bases", filterFunction=playerBaseIcons, createInfoWindow="true", checked="true")]
}

To perform the individual cropping, I am comment out these lines

"crop": [
		#(1000,750,2250,2000),		# xxx
		(-1000,-400,150,200),		# yyy
	],
"crop": [
		(1000,750,2250,2000),		# xxx
		#(-1000,-400,150,200),		# yyy
	],

...like so

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions