Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Command SetSpriteShapePolygon crashes in Tier 2 debug mode

Author
Message
Jugival
6
Years of Service
User Offline
Joined: 28th Feb 2018
Location:
Posted: 17th Mar 2019 17:56
The following code crashes in tier 2 debug mode:



It give an error message "Please ensure your polygon is convex and has a CCW winding order" which means that the polygon verifying code doesnt accept the used polygon. I can't see anything wrong with it.

The code works in release mode and in Tier 1.



JugiMap - a map editor
Bengismo
6
Years of Service
User Offline
Joined: 20th Nov 2017
Location: Yorkshire, England
Posted: 17th Mar 2019 19:24
Quote: "It give an error message "Please ensure your polygon is convex and has a CCW winding order" "


Your points make a triangle in a clockwise rotation and the error states that counter clockwise winding order is needed.

Could you swap round 2 of the coordinates to make it counter clockwise and try that??
Jugival
6
Years of Service
User Offline
Joined: 28th Feb 2018
Location:
Posted: 17th Mar 2019 23:44
That triangle is CW if Y axis points up but my programming brains always point it down
I now check the order of polygon points and reverse them if not CCW. Then it works.


JugiMap - a map editor

Login to post a reply

Server time is: 2024-04-16 21:37:22
Your offset time is: 2024-04-16 21:37:22