QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

Grr...

This is a discussion on Grr... within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Since Lua doesnt support freaken Gif Does anyone know of an animated gif to png converter? That keeps the animation ...

Reply
 
LinkBack Thread Tools
Old 05-29-2006, 04:34 PM   #1
 
Aquador's Avatar
 
Join Date: Feb 2006
Posts: 214
Trader Feedback: 0
Default Grr...

Since Lua doesnt support freaken Gif


Does anyone know of an animated gif to png converter? That keeps the animation goin?

Im using a program called pivot to make my gifs and it doesnt allow me to save as png so yeah...and its super easy to use unlike official gif animators, so yeah....
Aquador is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-29-2006, 04:37 PM   #2
 
Ninjax1's Avatar
 
Join Date: Feb 2006
Location: United Kingdom, London
Posts: 3,492
Trader Feedback: 0
Default

Thats impossible.
Ninjax1 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-29-2006, 04:37 PM   #3

Tha Sigerator
 
Xodiac21's Avatar
 
Join Date: Jul 2005
Location: New Orleans, LA
Posts: 4,047
Trader Feedback: 0
Default

wait.do u want the .png to show as an animation? if so then i won't worrk...
you would have to code the "animation or whatever...

but u can change a .gif and view all it's frames in macromedia fireworks 8
__________________
- - - - Somewhere Lurking in THA SHADOWS - - - -

Check Out My Myspace HERE
Comment My Qj Wiki
Xodiac21 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-29-2006, 04:38 PM   #4
 

 
Join Date: Mar 2006
Location: LOLWUT
Posts: 2,625
Trader Feedback: 1
Default

Quote:
Originally Posted by Aquador
Since Lua doesnt support freaken Gif


Does anyone know of an animated gif to png converter? That keeps the animation goin?

Im using a program called pivot to make my gifs and it doesnt allow me to save as png so yeah...and its super easy to use unlike official gif animators, so yeah....
1.) Can you post a link to this "pivot" b/c I've been trying to find an animation gif thing for a while now.

2.) I'm not sure if png's can be animated.
PSPduh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-29-2006, 04:39 PM   #5
 
Aquador's Avatar
 
Join Date: Feb 2006
Posts: 214
Trader Feedback: 0
Default

Nooo, what I want is to convert an animated gif to png, and the png wont be a still image, but still be animated like the gif


If pngs cant be animated then how are you suppose to get animated things in lua games?


And just google search pivot, its super easy to use.
Aquador is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-29-2006, 04:41 PM   #6

Tha Sigerator
 
Xodiac21's Avatar
 
Join Date: Jul 2005
Location: New Orleans, LA
Posts: 4,047
Trader Feedback: 0
Default

Quote:
Originally Posted by Aquador
Nooo, what I want is to convert an animated gif to png, and the png wont be a still image, but still be animated like the gif


If pngs cant be animated then how are you suppose to get animated things in lua games?


And just google search pivot, its super easy to use.
no png's wont show animated....
to do aimations in lua u gotta code it urself.
__________________
- - - - Somewhere Lurking in THA SHADOWS - - - -

Check Out My Myspace HERE
Comment My Qj Wiki
Xodiac21 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-29-2006, 04:48 PM   #7
 
Aquador's Avatar
 
Join Date: Feb 2006
Posts: 214
Trader Feedback: 0
Default

oh, ok...
Aquador is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-29-2006, 04:54 PM   #8
 
Yeldarb's Avatar
 
Join Date: Jul 2005
Posts: 984
Trader Feedback: 0
Default

Yeah, what you are looking for is converting an animated .gif to a png sequence. Then you'll have to use each image as a "frame" for your animation. Load them all into an array and loop through it.

This may help if you need some guidance: http://www.psp-programming.com/dev-f...ight=animation
__________________
[url=http://www.barbdwyer.com/footer.php][img]http://www.barbdwyer.com/8Ball.jpg[/img][/url]
[FONT=Verdana][SIZE=1]
[b]PSP Developer Resource Site:[/b] [url=http://www.psp-programming.com]PSP-Programming.com[/url]

[b]Other:[/b] [url=http://wake-boarding.org]Wakeboarding[/url], [url=http://water-skiing.org]Waterskiing[/url], [url=http://wake-surfing.org]Wake Surfing[/url], [url=http://www.guitarhero-4.com]Guitar Hero IV[/url][/SIZE][/FONT]
Yeldarb is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-29-2006, 04:54 PM   #9

Tha Sigerator
 
Xodiac21's Avatar
 
Join Date: Jul 2005
Location: New Orleans, LA
Posts: 4,047
Trader Feedback: 0
Default

here's a 3 frame animation loop

Code:
sprite[1] = Image.load("blah")
sprite[2] = Image.load("blah")
sprite[3] = Image.load("blah")
x = 1

while true do
x = x + 1
screen:blit(0,0,sprite[x])
if x == 3 then
x = 1
end
screen.waitVblankStart(de lay between each frame)
screen.flip()
end
__________________
- - - - Somewhere Lurking in THA SHADOWS - - - -

Check Out My Myspace HERE
Comment My Qj Wiki
Xodiac21 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-29-2006, 04:58 PM   #10

73|-| m4573r poker
 
delight1's Avatar
 
Join Date: Jan 2006
Location: some place fun
Posts: 4,117
Trader Feedback: 0
Default

i thought there were ones that could...
apegs
http://annevankesteren.ni/2004/08/apeg
delight1 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-29-2006, 05:02 PM   #11
 
Aquador's Avatar
 
Join Date: Feb 2006
Posts: 214
Trader Feedback: 0
Default

Egh, ok, I can do that, no problem.

But I think its kind of stupid. Lua is suppose to be easy, games alteast need animations and if it could just support gif, that would make things sooooo much easier.
Aquador is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-29-2006, 05:19 PM   #12
 
Yeldarb's Avatar
 
Join Date: Jul 2005
Posts: 984
Trader Feedback: 0
Default

Unfortunately gif is a proprietary format, just like mp3.
__________________
[url=http://www.barbdwyer.com/footer.php][img]http://www.barbdwyer.com/8Ball.jpg[/img][/url]
[FONT=Verdana][SIZE=1]
[b]PSP Developer Resource Site:[/b] [url=http://www.psp-programming.com]PSP-Programming.com[/url]

[b]Other:[/b] [url=http://wake-boarding.org]Wakeboarding[/url], [url=http://water-skiing.org]Waterskiing[/url], [url=http://wake-surfing.org]Wake Surfing[/url], [url=http://www.guitarhero-4.com]Guitar Hero IV[/url][/SIZE][/FONT]
Yeldarb is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-29-2006, 05:20 PM   #13
 
Aquador's Avatar
 
Join Date: Feb 2006
Posts: 214
Trader Feedback: 0
Default

What do you mean by that?
Aquador is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-29-2006, 05:21 PM   #14

Tha Sigerator
 
Xodiac21's Avatar
 
Join Date: Jul 2005
Location: New Orleans, LA
Posts: 4,047
Trader Feedback: 0
Default

Proprietary formats are developed by software companies in order to encode data produced by their applications: only the software produced by a company who owns the specification of a file format will be able to read correctly and completely the data contained in this file.

.....gif = proprietary
.....png = open format
__________________
- - - - Somewhere Lurking in THA SHADOWS - - - -

Check Out My Myspace HERE
Comment My Qj Wiki
Xodiac21 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-29-2006, 05:22 PM   #15
TheMarioKarters
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by xodiac21
Proprietary formats are developed by software companies in order to encode data produced by their applications: only the software produced by a company who owns the specification of a file format will be able to read correctly and completely the data contained in this file.
Nice google..XD!
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-29-2006, 05:23 PM   #16

Tha Sigerator
 
Xodiac21's Avatar
 
Join Date: Jul 2005
Location: New Orleans, LA
Posts: 4,047
Trader Feedback: 0
Default

Quote:
Originally Posted by TheMarioKarters
Nice google..XD!
wha? do u think i lack the social statur...sumthan to....

ok so i googled
__________________
- - - - Somewhere Lurking in THA SHADOWS - - - -

Check Out My Myspace HERE
Comment My Qj Wiki
Xodiac21 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-29-2006, 05:54 PM   #17

OMFG
 
Slasher's Avatar
 
Join Date: Jul 2005
Location: Toronto
Posts: 2,816
Trader Feedback: 0
Default

Make yourself a sprite sheet with all the images in the world, then use it. That's how it's done.
Slasher is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-29-2006, 06:06 PM   #18
 
Join Date: Jun 2005
Posts: 375
Trader Feedback: 0
Default

instead of using a bunch of if statments couldnt you just use a for loop? or am i juist wrong?
soadnation is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-29-2006, 06:55 PM   #19

...in a dream...
 
SG57's Avatar
 
Join Date: Jul 2005
Posts: 4,957
Trader Feedback: 0
Default

Quote:
Originally Posted by xodiac21
no png's wont show animated....
to do aimations in lua u gotta code it urself.
Easy...Both C and LUA animations are pretty easy if you plan how you will od it for about 5 ish minutes.
__________________
SG57 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-29-2006, 07:09 PM   #20
 

 
Join Date: Mar 2006
Location: LOLWUT
Posts: 2,625
Trader Feedback: 1
Default

Code:
duh = Timer.new()
duh2 = duh:time()
duh:start()

sprite[1] = Image.load("blah")
sprite[2] = Image.load("blah")
sprite[3] = Image.load("blah")
x = 1
a = 1

while true do
if duh2 == 100 then
x = x + a
duh:reset(0)
end

if x == 3 then
x = 1
end

screen:blit(0,0,sprite[x])
Basically the same thing as xodiacs21's but a tad bit different because it has a timer. That would do it every one second. It wouldn't matter either way.
PSPduh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-29-2006, 07:33 PM   #21

total-Z
 
youresam's Avatar
 
Join Date: Jul 2005
Location: texas
Posts: 2,803
Trader Feedback: 0
Default

Quote:
Originally Posted by delight1
i thought there were ones that could...
apegs
http://annevankesteren.ni/2004/08/apeg
You mean APNGs?
I was actually going to create APNGs to be used with animationlib, but a google search turns out they actually exist..with the same extension!
http://en.wikipedia.org/wiki/APNG
__________________
牧来栠摩琠敨映汩獥
PSN: youresam
From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
youresam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-29-2006, 08:11 PM   #22

Your Fate is Grim...
 
Grimfate126's Avatar
 
Join Date: Oct 2005
Posts: 2,269
Trader Feedback: 0
Default

Quote:
Originally Posted by youresam
You mean APNGs?
I was actually going to create APNGs to be used with animationlib, but a google search turns out they actually exist..with the same extension!
http://en.wikipedia.org/wiki/APNG
o, BTW how IS animationlib coming along?i cant wait.
__________________
--------------------------------------------------------------------------------------
Grimfate126 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-29-2006, 09:49 PM   #23

total-Z
 
youresam's Avatar
 
Join Date: Jul 2005
Location: texas
Posts: 2,803
Trader Feedback: 0
Default

Quote:
Originally Posted by Grimfate126
o, BTW how IS animationlib coming along?i cant wait.

(This smily pretty much answers your question)
__________________
牧来栠摩琠敨映汩獥
PSN: youresam
From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
youresam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
grr

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 03:09 AM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us