Difference between revisions of "Talk:Libwiisprite"

From WiiBrew
Jump to navigation Jump to search
Line 30: Line 30:
 
:Please try to save as PNG32 (using an alpha channel should be enough here). We are planning to review PNGU (once we've done with our next update) to possibly support even more png formats, but for now this one has to do the cut, sorry :/ --[[User:Chaosteil|Chaosteil]] 03:43, 16 June 2008 (CEST)
 
:Please try to save as PNG32 (using an alpha channel should be enough here). We are planning to review PNGU (once we've done with our next update) to possibly support even more png formats, but for now this one has to do the cut, sorry :/ --[[User:Chaosteil|Chaosteil]] 03:43, 16 June 2008 (CEST)
 
::Thanks for the quick reply :), it works perfect now, my image had a solid background, I removed a part from it to force photoshop to use alpha channel and it works now :D, thanks again : ) -- [[User:Bool|Bool]]
 
::Thanks for the quick reply :), it works perfect now, my image had a solid background, I removed a part from it to force photoshop to use alpha channel and it works now :D, thanks again : ) -- [[User:Bool|Bool]]
 +
 +
== Collision Detection Woes ==
 +
Collision detection is not acurate at all when rotating or zooming sprites... It seems as though the detection algorithm is still using the original Image's unrotated height and width to detect collision.
 +
 +
I'd greatly appreciate a fix; or the source to provide a fix back to you... After all, you can't really play operation without superb collision detection :) --[[User:Beardface|Beardface]] 04:44, 19 June 2008 (CEST)

Revision as of 04:44, 19 June 2008

just what i've been waiting for, i'll give a test on my tank's project ^^ --Grillo 15:34, 11 June 2008 (CEST)

nice clean useful library. thanks! --Beardface 16:07, 11 June 2008 (CEST)

Where do I sign up! hehe... looks like I'll be using this library then :D JD 20:38, 11 June 2008 (CEST)

Your library makes me rage. I had just finished writing all my sprite and collision box code with GRRLIB, and now you make this :( Also, any possibility of a plain C version for those who are too lazy to learn C++? Or source. :P SquidMan 080611

  • Thanks for all your comments, guys :) A C version is currently not planned, because OOP is a big feature of this library, which is the reason why development can be so fast with it. But we will release the source once the projects gets mature. --Chaosteil 14:38, 12 June 2008 (CEST)

sprite test not working

Added to the SD and on loading it went to a black screen and any key press would exit. JD 19:02, 13 June 2008 (CEST)

  • What files did you put on your SD Card? --Chaosteil 21:58, 13 June 2008 (CEST)
Whatever was included in the download... couple of png files an xml and a dol JD 22:12, 13 June 2008 (CEST)
Sorted it... small error in the source.
if(image.LoadImage("/libwiisprite.png") != IMG_LOAD_ERROR_NONE)exit(0);
changed to:
if(image.LoadImage("./libwiisprite.png") != IMG_LOAD_ERROR_NONE)exit(0);
HAHA! I feel stupid for not noticing it :D JD 22:30, 13 June 2008 (CEST)
Oh yeah, thank you, this fix is going to be in the next release then. (It would be best to remove the ./ altogether, btw ;) ) --Chaosteil 22:53, 13 June 2008 (CEST)
yea, I did think that, but it wouldn't work for some strange reason?? probably just how tired I am I suppose! JD 23:18, 13 June 2008 (CEST)
Check out the newest release then and report if you can find any bugs :) --Chaosteil 11:22, 14 June 2008 (CEST)
already got the new version running! haha. and with ./ its also answered anther question I had. I was having problems loading some custom PNG files, but that seems to have gone now :) keep up the good work ;) JD 11:50, 14 June 2008 (CEST)

problems with pngs

I tried to load a png on screen created with Photoshop CS3, but when it is loaded it has no colors, it shows in black and white... I tried with PNG-8 and PNG-24, and no one worked. Then I tried the PNGs provided in the library and it worked. is PhotoshopCS3 saving PNGs in a format that is unrecognizable by the library? or what could be my problem? -- Bool

Please try to save as PNG32 (using an alpha channel should be enough here). We are planning to review PNGU (once we've done with our next update) to possibly support even more png formats, but for now this one has to do the cut, sorry :/ --Chaosteil 03:43, 16 June 2008 (CEST)
Thanks for the quick reply :), it works perfect now, my image had a solid background, I removed a part from it to force photoshop to use alpha channel and it works now :D, thanks again : ) -- Bool

Collision Detection Woes

Collision detection is not acurate at all when rotating or zooming sprites... It seems as though the detection algorithm is still using the original Image's unrotated height and width to detect collision.

I'd greatly appreciate a fix; or the source to provide a fix back to you... After all, you can't really play operation without superb collision detection :) --Beardface 04:44, 19 June 2008 (CEST)