Author Topic: a .gif as a tex?  (Read 2963 times)

Zoythrus

  • Guest
a .gif as a tex?
« on: 30 August 2010, 14:07:21 »
hey people, i have found some questions about texing in certain threads that i think could be fixed if .gifs could become a texture type. this would allow for changing textures, like for a pool of slime or something. it would make certain texes look much better.

so, can this be done?

ElimiNator

  • Airship
  • ********
  • Posts: 3,391
  • The MegaGlest Moder.
    • View Profile
Re: a .gif as a tex?
« Reply #1 on: 30 August 2010, 16:24:10 »
It is possible but .gif is copyrighted and it might bring up some problems.
Get the Vbros': Packs 1, 2, 3, 4, and 5!

Zoythrus

  • Guest
Re: a .gif as a tex?
« Reply #2 on: 30 August 2010, 21:32:54 »
it is?  that puts a kink in my plans...

Yggdrasil

  • GAE Team
  • Ornithopter
  • ********
  • Posts: 408
    • View Profile
Re: a .gif as a tex?
« Reply #3 on: 30 August 2010, 23:10:15 »
The patents have expired some years ago. There's not problem of using gif nowadays. MNG is an alternative.

I'm not sure if there's any big benefit of using animated textures...

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: a .gif as a tex?
« Reply #4 on: 31 August 2010, 00:29:53 »
I'm not sure if there's any big benefit of using animated textures...
Ah, you're not using your imagination. ;)

Robots with blinking lights, lava monsters with pulsating heat showing through the cracks in its skin, a water elemental that ripples and shimmers... okay, so maybe not a big benefit, but there are a few uses.

Zoythrus

  • Guest
Re: a .gif as a tex?
« Reply #5 on: 31 August 2010, 01:59:25 »
I'm not sure if there's any big benefit of using animated textures...
Ah, you're not using your imagination. ;)

Robots with blinking lights, lava monsters with pulsating heat showing through the cracks in its skin, a water elemental that ripples and shimmers... okay, so maybe not a big benefit, but there are a few uses.

that's why i want this!

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: a .gif as a tex?
« Reply #6 on: 31 August 2010, 02:05:32 »
Indeed, they could benefit aside from the fact that GIF has a 256 color pallet restriction...

Perhaps the (abet, lesser known) MNG (Multiple-image Network Graphics) is a better alternative? It is basically an animated PNG file, and is under the same licenses, etc (GAE supports PNG).

GIMP can export to MNG, which works the same way as it exports to GIF. It could be quite fun to see such a feature included, since as John said, imagine something like a water element that ripples and shimmers... Plus, some things could be easier to animate with an image than with a model (or even impossible to model sometimes). Of course, for those features, MNG would be MUCH better alternative to GIF since GIF only supports 256 colors and one alpha channel, which would make team color difficult, as well as limit quality poorly.

More info:
http://en.wikipedia.org/wiki/Multiple-image_Network_Graphics
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

ElimiNator

  • Airship
  • ********
  • Posts: 3,391
  • The MegaGlest Moder.
    • View Profile
Re: a .gif as a tex?
« Reply #7 on: 31 August 2010, 15:20:36 »
MG supports .PNG, .TGA, .BMP, and .JPG. (Ill see if I can get them to add .GIF)
Get the Vbros': Packs 1, 2, 3, 4, and 5!

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: a .gif as a tex?
« Reply #8 on: 31 August 2010, 18:05:42 »
Even if GIF is added, it would probably need some work to be able to support animation though...
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

Mark

  • Guest
Re: a .gif as a tex?
« Reply #9 on: 31 August 2010, 21:53:26 »
You could possibly add some kind of blood spreading from a wound in the death anim with .gifs or mngs.

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: a .gif as a tex?
« Reply #10 on: 3 September 2010, 12:44:52 »
particles are meant for this :)
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

ElimiNator

  • Airship
  • ********
  • Posts: 3,391
  • The MegaGlest Moder.
    • View Profile
Re: a .gif as a tex?
« Reply #11 on: 3 September 2010, 16:18:24 »
But there are some things like flashing monitors, with stuff playing on them that can't be made with particles.
Get the Vbros': Packs 1, 2, 3, 4, and 5!

Zoythrus

  • Guest
Re: a .gif as a tex?
« Reply #12 on: 4 September 2010, 03:05:37 »
But there are some things like flashing monitors, with stuff playing on them that can't be made with particles.
that's why i asked this!

Gabbe

  • Guest
Re: a .gif as a tex?
« Reply #13 on: 4 September 2010, 21:12:45 »
but will the texture get messy if there are diferent g3ds? Like one "standing" and "walking", will the texture then replay when a new animation g3d is loaded, so that it`ll look messy?

 

anything