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 / PNG-Issues on Windows

Author
Message
CaesiumPP
9
Years of Service
User Offline
Joined: 14th Mar 2015
Location:
Posted: 11th Aug 2016 18:49
Hey guys,

i have a weird problem with some PNGs. All of the used PNGs are originated from the Giant Assets Pack.
For some reason I can only draw a few of them.
For testing purposes I had them numbered from 1 to 28.png. Some do show when I draw them, some don't. Seems completely random.

Anyone got an idea why?

Thanks in advance!

Bye
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 11th Aug 2016 23:30
Are they all power of 2 dimensions?
V2 T1 (Mostly)
Phone Tap!
Uzmadesign
CaesiumPP
9
Years of Service
User Offline
Joined: 14th Mar 2015
Location:
Posted: 20th Aug 2016 14:51 Edited at: 20th Aug 2016 14:52
Sorry for letting you wait.
I am not aware of the PNG-Datatype being anything but 2-dimensional? I'm not quite sure I understand your question.

Just fyi: I am using T2 only.

Thanks in advance.
Ortu
DBPro Master
17
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 20th Aug 2016 17:01
He means size dimensions

2px by 2px
128px by 128px
1024px by 1024 px

Etc, size as a power of 2


A single player RPG featuring a branching, player driven storyline of meaningful choices and multiple endings alongside challenging active combat and intelligent AI.
CaesiumPP
9
Years of Service
User Offline
Joined: 14th Mar 2015
Location:
Posted: 20th Aug 2016 19:08
If I get it right: no, they are actually not.

For example: Two of the working PNGs have seizes of 284x367 and 290x476. Another one on the other hand, with a size of 528x466, is not working.
As they are all unaltered original "AGK-Giant Asset Pack" files one could expect they could at least be drawn without altering their sizes or anything like that!?
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 22nd Aug 2016 16:01
They should work even if they are a non-power of two size. Do you get any error messages in the output window of Visual Studio when the app is run attached to the IDE? Is it always the same images that don't load, if so can you list some of them so I can try to replicate it?

Login to post a reply

Server time is: 2024-11-25 03:56:20
Your offset time is: 2024-11-25 03:56:20