check it out, i've made a little java program that combines images
this combines 30 512*512 .bmp images into one 15360*512 bmp
your .bmps must be named [custom name here] (#).bmp
there MUST be a space between your name and the brackets, the numbers must not have leading zeros and the numbers must be 1-30 (no 0)
not, that's alot of musts and must nots, but thats ok, because...
that's the format of windows multiple rename function
basically, select your 30 images you want to merge, right click on one of the 30 selected, choose rename, name it something like my_image.bmp
windows will then rename all selected "my_image (1-30).bmp
to use, point your command prompt at the folder containing the compiled class (you need to compile the code first)
type java combine my_image
where my_image is the name without brackets or extension of the images you want to combine
hit enter
this comes in two versions
this version has a bar that moves along saying how close to completion it is
CODEimport java.awt.*;
import java.awt.event.*;
import java.awt.image.*;
import java.io.*;
import javax.imageio.*;
import javax.swing.*;
import java.awt.image.BufferedImage.*;
public class combine{
public static void main(String [] args){
BufferedImage [] imgs = new BufferedImage [30];
BufferedImage Output = new BufferedImage(15360, 512, BufferedImage.TYPE_INT_RGB);
int i = 0;
for(i = 1;i<=30; i++){
// imgs[i-1] = null;
try {
imgs[i-1] = ImageIO.read(new File(args[0]+" (" + i + ")" + ".bmp"));
} catch (IOException e){
}
}
System.out.println("..............................");
for(i = 0;i<30; i++){
System.out.print(".");
for(int x = 0; x<512; x++){
for(int y = 0; y<512; y++){
Output.setRGB(i*512+x,y, imgs.getRGB(x,y));
}
}
}
try {
BufferedImage bi = Output;
File outputfile = new File(args[0]+" combined.bmp");
ImageIO.write(bi, "bmp", outputfile);
} catch (IOException e) {
}
}
}
//System.out.println(BufferedImage.TYPE_3BYTE_BGR); //TYPE_INT_RGB
this version says 1/30 2/30 3/30 etc
CODEimport java.awt.*;
import java.awt.event.*;
import java.awt.image.*;
import java.io.*;
import javax.imageio.*;
import javax.swing.*;
import java.awt.image.BufferedImage.*;
public class combine{
public static void main(String [] args){
BufferedImage [] imgs = new BufferedImage [30];
BufferedImage Output = new BufferedImage(15360, 512, BufferedImage.TYPE_INT_RGB);
int i = 0;
for(i = 1;i<=30; i++){
// imgs[i-1] = null;
try {
imgs[i-1] = ImageIO.read(new File(args[0]+" (" + i + ")" + ".bmp"));
} catch (IOException e){
}
}
for(i = 0;i<30; i++){
//System.out.println(i+"/30");
for(int x = 0; x<512; x++){
for(int y = 0; y<512; y++){
Output.setRGB(i*512+x,y, imgs.getRGB(x,y));
}
}
}
try {
BufferedImage bi = Output;
File outputfile = new File(args[0]+" combined.bmp");
ImageIO.write(bi, "bmp", outputfile);
} catch (IOException e) {
}
}
}
//System.out.println(BufferedImage.TYPE_3BYTE_BGR); //TYPE_INT_RGB
orion can have some credit too since he made me investigate whether java lets you modify pixels individually
Explosion textures
Last edited by madpeople on Wed Jan 24, 2007 8:37 pm, edited 1 time in total.
-
Your_Persona
- Posts: 773
- Joined: Sat Dec 04, 2004 8:00 am
- Contact:
-->>Elitism<<--
I'm not Hamlet. I don't take part any more. My words have nothing to tell me anymore.
I'm not Hamlet. I don't take part any more. My words have nothing to tell me anymore.
cool, i'l have a look at that some time.
right now i've been using exgen
started making an explosion in 3ds studio max the other day. (see previous post)
but now i have the combining sorted i should be able to make loads of these easily, so far i have jsut been makig really psycodelic ones so i can easily tell what is used for what so i can update this post
http://www.freeallegiance.org/forums/index...ost&p=63980
its kinda annoying i err obtained photoshop when all i really needed was to write some java, i've also found the java is much easier to use than photoshop. (and fireworks is better than photoshop)
right now i've been using exgen
started making an explosion in 3ds studio max the other day. (see previous post)
but now i have the combining sorted i should be able to make loads of these easily, so far i have jsut been makig really psycodelic ones so i can easily tell what is used for what so i can update this post
http://www.freeallegiance.org/forums/index...ost&p=63980
its kinda annoying i err obtained photoshop when all i really needed was to write some java, i've also found the java is much easier to use than photoshop. (and fireworks is better than photoshop)
-
Your_Persona
- Posts: 773
- Joined: Sat Dec 04, 2004 8:00 am
- Contact:
That is a very silly thing to say.madpeople wrote:QUOTE (madpeople @ Jan 24 2007, 02:33 PM) (and fireworks is better than photoshop)
Photoshop movie
Fireworks movie
They do not compeate for the same workspace.
-->>Elitism<<--
I'm not Hamlet. I don't take part any more. My words have nothing to tell me anymore.
I'm not Hamlet. I don't take part any more. My words have nothing to tell me anymore.
yeah i know, but for what i need - ability to specify where i want to crop / position images using text to say want to crop a size of 512*512 at position 0,512 fireworks is better as photoshop wont let you do this (you can write scripts for it, but i don't know its syntax)
but photoshop does do the arty stuff better
/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
well, i have a copy of particle illusion, but i will play with it some other time because my processor is tied up rendering a explosion texture i made in 3ds max, and i used a lot of particles... perhaps in a few hours it will have finished the 30 frames...
ok, its finished rendering
http://www.youtube.com/watch?v=hhvwv-xsiqw
it may have too many reaching the edges though :/
i'm going to test it out in game now.. anyone want to host explosions i make? (the good ones, not the playing around ones)
i modified it so it fades out in a circular pattern so it doesn't make squares appear in alleg...
it appears allegiance plays explosions multiple times when a ship dies, its probably a good idea to not have a defining feature in your explosion texture (things like shockwaves etc)
i do have one that looks good if anyone wants to host it
i just made one in PI, not tested it yet
p.s. what defines the size of an explosion?
pps. can we have other textures animated? - i really want an animated sun for a poster, and animated gun sprites would be awesome, the neon sign on the belters base could flicker on and off with power surges and cuts etc
but photoshop does do the arty stuff better
/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
well, i have a copy of particle illusion, but i will play with it some other time because my processor is tied up rendering a explosion texture i made in 3ds max, and i used a lot of particles... perhaps in a few hours it will have finished the 30 frames...
ok, its finished rendering
http://www.youtube.com/watch?v=hhvwv-xsiqw
it may have too many reaching the edges though :/
i'm going to test it out in game now.. anyone want to host explosions i make? (the good ones, not the playing around ones)
i modified it so it fades out in a circular pattern so it doesn't make squares appear in alleg...
it appears allegiance plays explosions multiple times when a ship dies, its probably a good idea to not have a defining feature in your explosion texture (things like shockwaves etc)
i do have one that looks good if anyone wants to host it
i just made one in PI, not tested it yet
p.s. what defines the size of an explosion?
pps. can we have other textures animated? - i really want an animated sun for a poster, and animated gun sprites would be awesome, the neon sign on the belters base could flicker on and off with power surges and cuts etc
Last edited by madpeople on Fri Jan 26, 2007 11:18 pm, edited 1 time in total.
-
Your_Persona
- Posts: 773
- Joined: Sat Dec 04, 2004 8:00 am
- Contact:
-->>Elitism<<--
I'm not Hamlet. I don't take part any more. My words have nothing to tell me anymore.
I'm not Hamlet. I don't take part any more. My words have nothing to tell me anymore.
`rc
do you still have the code for mdlcMasterBat ?
i'm thinking perhaps adding another select files button (or radio button to switch modes) and a tickbox to change how it functions.
the new select files button (or with the radio button changed to combine mode) lets you select many files, and when you select them, the following gets put in the textbox
with the tickbox set to true
java combine [true], [file1.bmp], [file2.bmp], [filee.bmp]
with tickbox clear
java combine [false], [file]
where [file]'s name is is in for form "[file] (1).bmp"
the tickbox changes mode from select multiples files to select list
.
..
...
....
...................................................
or, you could combine your image combine program with mdlcMasterBat
you select ether the first in the list of images or multiple individual images (multiple individual ones so you can select them every other frame for example)
then specify an output name
it outputs the file, then runs mdlc to convert it to allegiance format.
so you can ether select files you want to convert to alleg format wit hit, or you can combine multiple files and then convert them to alleg format in one operation.
basically i'm trying to make mdlcMasterBat into an omni artwork tool.
p.s. if anyone wants it, i have two more java programs, one uncombines .bmp files - changes a row of images into multiple files, the other replaces all non-black colours with white (for transparency in 3d modelling programs).
pps. a useful program for previewing, http://sourceforge.net/projects/makeavi/
ppps. re-read my post above this one, i edited it a lot in the days after posting it
do you still have the code for mdlcMasterBat ?
i'm thinking perhaps adding another select files button (or radio button to switch modes) and a tickbox to change how it functions.
the new select files button (or with the radio button changed to combine mode) lets you select many files, and when you select them, the following gets put in the textbox
with the tickbox set to true
java combine [true], [file1.bmp], [file2.bmp], [filee.bmp]
with tickbox clear
java combine [false], [file]
where [file]'s name is is in for form "[file] (1).bmp"
the tickbox changes mode from select multiples files to select list
.
..
...
....
...................................................
or, you could combine your image combine program with mdlcMasterBat
you select ether the first in the list of images or multiple individual images (multiple individual ones so you can select them every other frame for example)
then specify an output name
it outputs the file, then runs mdlc to convert it to allegiance format.
so you can ether select files you want to convert to alleg format wit hit, or you can combine multiple files and then convert them to alleg format in one operation.
basically i'm trying to make mdlcMasterBat into an omni artwork tool.
p.s. if anyone wants it, i have two more java programs, one uncombines .bmp files - changes a row of images into multiple files, the other replaces all non-black colours with white (for transparency in 3d modelling programs).
pps. a useful program for previewing, http://sourceforge.net/projects/makeavi/
ppps. re-read my post above this one, i edited it a lot in the days after posting it
Last edited by madpeople on Mon Jan 29, 2007 1:37 pm, edited 1 time in total.
OK. First... YP, thank you so much for the video tutorial on ParticleIllusionSE, that was the jump start i needed. (Same reason i'm doing video tutorials for newbs) After making a few really cool explosions by just layering them and a few tweaks, i thought... bigger explosions... cool; higher resolutions... even better. So i figured i'd start from square one with one of my own. Humm, square one, a starting point. That's when it hit me. Why not start with an intact base, having the explosion ripple from one side first before... boom? Humm, which base would i use? That's when it all fell apart. Allegiance assigns an explosion to bases, any and all of them, tele's and ref's included. End of my idea. But is it possible to assign specific explosion textures to specific bases? Ohhh, the possibilities.
Allegiance Terror Alert Level: HIGH
core change + code change
well, i suppose you could name the explosion file the same as the base and just do a code change
well, i suppose you could name the explosion file the same as the base and just do a code change
Last edited by madpeople on Tue Jan 30, 2007 8:41 am, edited 1 time in total.

