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 / SetSpriteShape problem

Author
Message
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 9th Apr 2012 14:52
When I set SetSpriteShape to 3 (Polygon) all works fine with LoadImage sprites.

However SetSpriteShape is setting strange & totally incorrect outlines when used with LoadSubImage sprites.

What am I doing wrong?
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 9th Apr 2012 16:03
My textures are 1024x1024.

Setting textures to 768x768 makes SetSpriteShape get the proper outline but no matter what it is always set to 2-BOX not 3-Polygon

bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 9th Apr 2012 20:03
Too many problems, been banging my head all day trying to solve this issue. Seems there is way too little advantages using Atlas textures. You cannot do UV scrolling and Polygon masks are all messed up.

Giving up
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 10th Apr 2012 19:13
Can you send me an example with the image in question and I'll take a look
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 10th Apr 2012 19:28 Edited at: 10th Apr 2012 19:29
Will try to knock up an example later on.
For now I just gave up
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 10th Apr 2012 20:55
Here is a little offending example + related images.

What am I doing wrong???


Attachments

Login to view attachments
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 10th Apr 2012 20:56
and here is the related subimages file

Attachments

Login to view attachments
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 11th Apr 2012 00:55
There was a bug in the convex shape routine that meant it could not calculate polygon or circle shapes for sub images. I've fixed this for 107.
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 11th Apr 2012 09:23
GREAT Paul! Thanks a lot

Login to post a reply

Server time is: 2024-11-23 08:51:37
Your offset time is: 2024-11-23 08:51:37