Page 1 of 2

Ahh our old friend is going to be FREE

Posted: Fri Sep 08, 2006 3:25 pm
by Pantcho!!
Hi all!
I found out that the last patent of GIF is expired!!

http://www.gnu.org/philosophy/gif.html

Since 1 oct 2006 anyone can use it!!

Now... what are we PureBasicers gonna do about ?! :twisted: :twisted:

Posted: Fri Sep 08, 2006 4:19 pm
by Num3
Erh...

Take a picture of Berikco shaking is bootie and make a gif anim !? :twisted:

Posted: Fri Sep 08, 2006 4:30 pm
by thamarok
This is very good. Now we all can put GIF images in production. Perhaps the PureBasic development team has some plannings for UseGIFImageDecoder() ?

Now everybody can discover the power of GIF images 8)
(By the way, if GIF images are going to be officially supported by PureBasic, I think the support for animation is the first aim; meaning that 2D game development will get much easier and you don't need each frame of an image as a separate file. This will make PureBasic to the ultimate application and game development product [as if it wouldn't be now :P ].)

Re: Ahh our old friend is going to be FREE

Posted: Fri Sep 08, 2006 4:36 pm
by Shannara
Pantcho!! wrote:Hi all!
I found out that the last patent of GIF is expired!!

http://www.gnu.org/philosophy/gif.html

Since 1 oct 2006 anyone can use it!!

Now... what are we PureBasicers gonna do about ?! :twisted: :twisted:
Lol, according to that date, the last GIF patent have not expired.

Posted: Fri Sep 08, 2006 4:45 pm
by Fluid Byte
The Software Freedom Law Center says that after 1 October 2006, there will be no significant patent claims interfering with employment of the GIF format.
:wink:

Re: Ahh our old friend is going to be FREE

Posted: Fri Sep 08, 2006 7:12 pm
by Shannara
Pantcho!! wrote: Since 1 oct 2006 anyone can use it!!
;)

Posted: Sat Sep 09, 2006 2:32 am
by MadMax
Hi all!
I found out that the last patent of GIF is expired!!

http://www.gnu.org/philosophy/gif.html

Since 1 oct 2006 anyone can use it!!

Now... what are we PureBasicers gonna do about ?! Twisted Evil Twisted Evil
Use PNG maybe :idea: :roll:

Posted: Sat Sep 09, 2006 9:21 am
by thamarok
MadMax wrote:
Hi all!
I found out that the last patent of GIF is expired!!

http://www.gnu.org/philosophy/gif.html

Since 1 oct 2006 anyone can use it!!

Now... what are we PureBasicers gonna do about ?! Twisted Evil Twisted Evil
Use PNG maybe :idea: :roll:
Using PNG images could be useful to get transparency, but fo animation you still have to use GIF images.

Posted: Sat Sep 09, 2006 10:52 am
by Rescator
There is something called MNG too you know and APNG! (PNG animation)
http://en.wikipedia.org/wiki/Mng
http://en.wikipedia.org/wiki/APNG

Posted: Sat Sep 09, 2006 1:26 pm
by thamarok
Rescator wrote:There is something called MNG too you know and APNG! (PNG animation)
http://en.wikipedia.org/wiki/Mng
http://en.wikipedia.org/wiki/APNG
I nearly forgot about MNG files, but I have never heard of APNG. However, if we want to have these formats to work in PureBasic, we got to get their file specification and create a PureBasic reader of their structure.

Posted: Sat Sep 09, 2006 3:06 pm
by NoahPhense
thamarok wrote:
MadMax wrote:
Hi all!
I found out that the last patent of GIF is expired!!

http://www.gnu.org/philosophy/gif.html

Since 1 oct 2006 anyone can use it!!

Now... what are we PureBasicers gonna do about ?! Twisted Evil Twisted Evil
Use PNG maybe :idea: :roll:
Using PNG images could be useful to get transparency, but fo animation you still have to use GIF images.
When I had to, I made animations from still frames, put them in an array
and displayed them.. animation was just fine. Never seeing gif ever
again will not affect my life.

- np

Posted: Sat Sep 09, 2006 11:27 pm
by MadMax
To animate I just put all images in a single image, and then clip as needed.

Posted: Sun Sep 10, 2006 2:27 am
by NoahPhense
MadMax wrote:To animate I just put all images in a single image, and then clip as needed.
I've seen that, mostly in ppl making games.

Can you demonstrate with some code?

- np

Posted: Sun Sep 10, 2006 3:34 am
by Fluid Byte

Code: Select all

InitSprite() : InitKeyboard()

OpenScreen(640,480,16,"untitled")

CreateSprite(0,320,64)

StartDrawing(SpriteOutput(0))
FrontColor($0000FF)
Box(0,0,64,64)
Box(64,0,64/2,64/2)
Box(128,0,64/3,64/3)
Box(192,0,64/4,64/4)
Box(256,0,64/5,64/5)
StopDrawing()

Repeat
	ClearScreen(0)
	
	ExamineKeyboard()
	
	AnimDelay + 1
	
	If AnimDelay = 15
		AnimDelay = 0
		Frame + 1
	EndIf	
	
	ClipSprite(0,Frame * 64,0,64,64)
	DisplaySprite(0,320,240)
	
	If Frame = 5 : Frame = 0 : EndIf
	
	FlipBuffers()
Until KeyboardPushed(1)

Posted: Sun Sep 10, 2006 7:56 am
by thamarok
Sure these methods work too, but in my earlier post in this topic I said:
By the way, if GIF images are going to be officially supported by PureBasic, I think the support for animation is the first aim; meaning that 2D game development will get much easier and you don't need each frame of an image as a separate file.
The support for animated GIF images would save disk space needed by a game, because all frames are saved in one file and they are compressed with the LZW algorithm. This is needed especially if you are making a fighting game where you need every attack to be properly animated.