Ahh our old friend is going to be FREE

Everything else that doesn't fall into one of the other PB categories.
Pantcho!!
Enthusiast
Enthusiast
Posts: 538
Joined: Tue Feb 24, 2004 3:43 am
Location: Israel
Contact:

Ahh our old friend is going to be FREE

Post 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:
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

Erh...

Take a picture of Berikco shaking is bootie and make a gif anim !? :twisted:
thamarok
Enthusiast
Enthusiast
Posts: 282
Joined: Wed Sep 06, 2006 1:37 pm

Post 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 ].)
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Re: Ahh our old friend is going to be FREE

Post 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.
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post 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:
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Re: Ahh our old friend is going to be FREE

Post by Shannara »

Pantcho!! wrote: Since 1 oct 2006 anyone can use it!!
;)
MadMax
Enthusiast
Enthusiast
Posts: 237
Joined: Mon Oct 06, 2003 11:56 am

Post 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:
thamarok
Enthusiast
Enthusiast
Posts: 282
Joined: Wed Sep 06, 2006 1:37 pm

Post 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.
User avatar
Rescator
Addict
Addict
Posts: 1769
Joined: Sat Feb 19, 2005 5:05 pm
Location: Norway

Post 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
thamarok
Enthusiast
Enthusiast
Posts: 282
Joined: Wed Sep 06, 2006 1:37 pm

Post 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.
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Post 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
MadMax
Enthusiast
Enthusiast
Posts: 237
Joined: Mon Oct 06, 2003 11:56 am

Post by MadMax »

To animate I just put all images in a single image, and then clip as needed.
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Post 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
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post 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)
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
thamarok
Enthusiast
Enthusiast
Posts: 282
Joined: Wed Sep 06, 2006 1:37 pm

Post 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.
Post Reply