Server Help

General Questions - is there any ship rotating program that works?

Anonymous - Thu Mar 13, 2003 12:59 pm
Post subject: is there any ship rotating program that works?
not shipbuilder b/c it won't run with my video card and not SSM because all it produces is a green / black blob. Please help. ty.
Gravitron - Thu Mar 13, 2003 2:28 pm
Post subject:
How about SScustomizer?
SuSE - Thu Mar 13, 2003 5:08 pm
Post subject:
How about photoshop?
Anonymous - Thu Mar 13, 2003 11:31 pm
Post subject:
nevermind, made my own
SuSE - Fri Mar 14, 2003 12:47 am
Post subject:
ha, nice sa_tongue.gif
Gravitron - Fri Mar 14, 2003 6:46 am
Post subject:
He's joking.....right? icon_confused.gif
SOS - Fri Mar 14, 2003 12:38 pm
Post subject:
Well making a rotator is ez... maybe I'll make one...
Gravitron - Fri Mar 14, 2003 2:10 pm
Post subject:
!!
Damn, I should start speeding up the pace on those tutorials...easy he say...
SOS - Sat Mar 15, 2003 2:02 am
Post subject:
Wee it's done! Slight bug however... it outputs an entirely black bmp sa_tongue.gif
Dr Brain - Sat Mar 15, 2003 9:22 am
Post subject:
OO, Black? Can I have the program? PLEASE?
Smong - Sat Mar 15, 2003 1:39 pm
Post subject:
Does no one use mine?
http://forums.minegoboom.com/viewtopic.php?t=553
I read the PSP manual for filters and they just alter pixels and stuff. Someone with Photoshop should make a plugin to do this (seems the plugin maker only comes on the Photoshop CD).
SOS - Sat Mar 15, 2003 3:06 pm
Post subject:
I didn't know any plugin maker on the CD... hmm...
Anyway, my rotation sucked and the background turned blue suddenly(???), so no go icon_sad.gif
Anonymous - Sun Mar 16, 2003 12:16 pm
Post subject:
here you go
Smong - Mon Mar 17, 2003 3:00 am
Post subject:
I did "java SSRotate" and got an error :( using JDK 1.4.1_02
A bit of a shame it doesn't do bmp's either.
Dr Brain - Mon Mar 17, 2003 9:52 am
Post subject:
Erm, smong, why aren't you using the API's image manipulation stuff?
Smong - Mon Mar 17, 2003 3:02 pm
Post subject:
I am using the API's in Rapid-Q to rotate the image in my ship rotator. Could you explain further?
Dr Brain - Mon Mar 17, 2003 8:03 pm
Post subject:
Example i found in a Java 2 game programming book:

Code: Show/Hide

     import java.applet.*;
     import java.awt.*;
     import java.awt.geom.*;
     import java.util.*;
         
     public class ImageTest extends Applet
     { 
          // the Images to render
          private Image[] images;

          // filename description of our images
          private final String[] filenames = { "simon.gif", "tj2gp.gif", "blade.gif" };

          public void init()
          {
               // get the base URL
               java.net.URL appletBaseURL = getCodeBase();

               // allocate memory for the images and load 'em in
               int n = filenames.length;
               images = new Image[n];
               for(int i = 0; i < n; i++)
               {
                    images[i] = getImage(appletBaseURL, filenames[i]);
               }
          }

          public void paint(Graphics g)
          {
               // cast the sent Graphics context to get a usable Graphics2D object
               Graphics2D g2d = (Graphics2D)g;

               // save an identity transform                 
               final AffineTransform identity = new AffineTransform();

               // used to transform our images
               AffineTransform at = new AffineTransform();
       
               Random r = new Random();

               int width = getSize().width;
               int height = getSize().height;

               int numImages = filenames.length;

               // render 100 images, each with a random transformation
               for(int i = 0; i < 100; i++)
               {
                    // clear the transformation
                    at.setTransform(identity);

                    // randomly set up the translation and rotation
                    at.translate(r.nextInt()%width, r.nextInt()%height);
                    at.rotate(Math.toRadians(360*r.nextDouble()));

                    // draw the image           
                    g2d.drawImage(images[i%numImages], at, this);
               }
          }
     }    // ImageTest

Anonymous - Mon Mar 17, 2003 9:07 pm
Post subject:
uhm, did you try opening it using the provided shortcut / what happened?

at SSRotate.<init>(SSRotate.java:46)

46 is

final JFileChooser fc = new JFileChooser(new File("loaded.gif"));

maybe it's looking for loaded.gif in the same directory as java.exe instead of the .clas file, use the provided shortcut should fix this.

maybe windows upped security. if that doesn't work try making loaded.gif not read only.

bitmaps are platform dependent. It woudln't be fair to my solaris users to include them icon_smile.gif. Also different programs change the colors to 256 differently, so therefore i don't want you to be forced into using a crappy decolorizer(word?).

Just try the provided shortcut.
Smong - Tue Mar 18, 2003 2:50 am
Post subject:
Ok, now I've tried the shortcut and "javawindows SSRotate". I've also made loaded.gif non-read only. The "start-in" folder setting of the shortcut is the folder I unzipped everything to, actually I think it was zipped in a folder anyway.

I get a different error, seems to be the same as last time except:
Code: Show/Hide

Dynamic libraries:
0x52000000 - 0x52007000    C:\WINDOWS\SYSTEM\INDICDLL.DLL

(It gets as far as the bit saying please wait while loading).
Anonymous - Wed Mar 19, 2003 5:34 am
Post subject:
what does the entire error say? is that it ?
Helicon - Wed Mar 19, 2003 4:10 pm
Post subject:
about pshop plugin... i aint got the plugin maker. supposedly you have to "request" the SDK for PShop 7 from Adobe (who does that). The best bet might be a macro that enlargens, copies, rotates, and applies the redner->lighting effect?
Smong - Sat Mar 22, 2003 11:58 am
Post subject:
VampZ wrote:
what does the entire error say? is that it ?

No, I said it looked the same as last time except the bit I quoted. I've attached the log this time.
Anonymous - Wed Apr 09, 2003 7:28 pm
Post subject:
Made v1.2 - now supporting uncompressed bitmaps ooooooooo
you shouldn't get the error now as I'm using the platform standard file chooser instead of JFileChooser.

Advantages:

- Doesn't have a set image size
- Doesn't have a set # row / colums (you can use it for more than just ships!)
- Thinking of switching to Solaris? Java supports multiple platforms so don't let your image rotating program be what's holding you back
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group