Author Topic: Error when rendering a territory: split into two colors  (Read 64 times)

nandusmasta

  • Newbie
  • *
  • Posts: 23
    • View Profile
Error when rendering a territory: split into two colors
« on: March 17, 2021, 03:19:48 PM »
Hey. I was wondering if you guys could help with an issue I am getting while generating territories by code. I create several territories, but sometimes one of them will be split with two colors, with a straight line down the middle. Do you have any idea why this might be? Any help would be most appreciated, as this has been going on for quite some time, without me being able to find a fix; even if I progress in other areas of the prototype game I am working on. Thanks in advance!


Kronnect

  • Administrator
  • Hero Member
  • *****
  • Posts: 6869
    • View Profile
Re: Error when rendering a territory: split into two colors
« Reply #1 on: March 17, 2021, 03:23:31 PM »
Hi,

This can happen when the polygon has duplicated vertices or self-crosses.
I don't see this happening here.
Would you mind sending a scene with this exact issue by email?

Thanks

Kronnect

  • Administrator
  • Hero Member
  • *****
  • Posts: 6869
    • View Profile
Re: Error when rendering a territory: split into two colors
« Reply #2 on: April 05, 2021, 06:13:43 PM »
Please make sure you're using latest beta as it comes with important changes regarding territories and multi-regions.