Explosion textures

A place to discuss user-created Allegiance 3D models, textures, images, and other visual ingame content.
madpeople
Posts: 4787
Joined: Tue Dec 16, 2003 8:00 am
Location: England

Post by madpeople »

i'm good at thinking of ways to do an idea that are easy to implement.

more formal defifnition.

save the explosion you want to be used for a specific object as
exp[name of object]bmp.mdl

so if you wanted to make all "Teleport (lt)" explode in a specific manner, save your file as
expTeleportltbmp.mdl
(dont use spaces, mdlc doesnt like it)

then the game when loading stuff looks in the artwork directory for exp[every model loaded's name]bmp.mdl any it finds get loaded and used as an explosion texture for that object when ever it gets killed.

i'm interested in animated textures for everything.
animated bullet sprites,
animated base textures (belters neon sign that can flicker)
an animated poster of the sun! this would be sooooo cool.

and working out if a texture is animated is simple too,

Code: Select all

//borrows a piece of code from my java uncombine script
int Height=imgs.getHeight();
int Width=imgs.getWidth();
int Frames = Width/Height;
they all are, the non-animated ones are actually animated ones with only one frame

and since all out textures have the same width and height, and aren't stacked - all the frames are side by side, dividing the width by the height will always result in an integer which is the number of images next to each other.

side notes, for particles (bullets) the play speed is based on their lifespan - start at frame 0 when its made, reach end frame at the end of their life.
fading one frame in as the other fades out will smooth things for very long life bullets

p.s. with making explosions try to avoid letting particles reach the edges, i made a macro in photoshop that radially fades out from the middle
http://www.youtube.com/watch?v=hhvwv-xsiqw - without
http://www.youtube.com/watch?v=hV4n21B4Tak - with fade out

i don't have a screen shot of the version without the fadeout, but it looked bad in game, you basically get a yellow square because the texture stops and so many particles are at the edge.
Last edited by madpeople on Tue Jan 30, 2007 5:07 pm, edited 1 time in total.
mesial
Posts: 3009
Joined: Sun Dec 26, 2004 8:00 am
Location: Florida

Post by mesial »

Yea, i noticed that with some of the early ones i was making.
Allegiance Terror Alert Level: HIGH
Lyncor
Posts: 181
Joined: Sun Mar 06, 2005 8:00 am
Location: New Zealand

Post by Lyncor »

Your_Persona wrote:QUOTE (Your_Persona @ Jan 12 2007, 07:27 PM) Ok, I figured i'd give a little hack at it, and this is what I made.
exp24bmp.mdl and exp25bmp.mdl

They are both the same explosion, though I wasn't sure what explosion 24 and 25 were used for.
I was hoping it was ship and base explosions. I have seen it work on ship explosions, but havent had a chance to blow a base with them in yet.

Explosion preview.avi
Despite my efforts, I have been unable to un-archive this file. The explosion looks SWEET so I really want it. Any suggestions?
Image
New Zealand's icecream is some of the best in the world. Isn't that worth fighting for? Isn't that worth being podded for?
madpeople
Posts: 4787
Joined: Tue Dec 16, 2003 8:00 am
Location: England

Post by madpeople »

tried 7-zip ?

failing that, try win ace.
strike700
Posts: 434
Joined: Wed Oct 15, 2003 7:00 am
Location: Slightly above the earths surface.

Post by strike700 »

Win-Rar works as well.
Apparently a California "cabin" is any place more than 4 blocks from a McDonalds.
madpeople
Posts: 4787
Joined: Tue Dec 16, 2003 8:00 am
Location: England

Post by madpeople »

win-rar costs money and i'm not about to tell someone to get a cracked version on thal's site
BEER
Posts: 847
Joined: Wed Jul 02, 2003 7:00 am
Location: Louisville, KY

Post by BEER »

I had the same problem, but 7-zip worked great. Thanks Mad.
Last edited by BEER on Sun Feb 04, 2007 4:15 pm, edited 1 time in total.
20 Things Worth Knowing About Beer.....I feel sorry for people who don't drink. When they get up in the morning, that's as good as they're going to feel all day.
madpeople
Posts: 4787
Joined: Tue Dec 16, 2003 8:00 am
Location: England

Post by madpeople »

though rar compresses more, i think its probably best to use .zip because more people can open it, unless you also link to things like 7-zip with the rar saying you can use this FREE utility to open it
strike700
Posts: 434
Joined: Wed Oct 15, 2003 7:00 am
Location: Slightly above the earths surface.

Post by strike700 »

Does it? It never used to..... then again I ahven't downloaded it in ages.
Apparently a California "cabin" is any place more than 4 blocks from a McDonalds.
madpeople
Posts: 4787
Joined: Tue Dec 16, 2003 8:00 am
Location: England

Post by madpeople »

i looked at a rar and a .zip each had 2 explosion textures in, the rar was smaller. though they were different textures, so the rar hay have had an easier image to compress
Post Reply