Ship encoder available

Here's a link to a tool to help you make your own ship models. There's docs and sample files included in the zip file. You will need a paint program like Photoshop that can save files as windows bitmaps and as 32 bit targa files. This program is rather rough, but it gets the job done. If you have problems, please post them on this forum instead of the main one.

http://storage.stardock.com/files/gc_ship_encoder_040803.zip
12,078 views 65 replies | Pinned
Reply #1 Top
Excellent. Time for a little test drive.

~SDC~
Reply #2 Top
Than you CarElf. Until i feel i have an exceptional grasp of the game I will be limiting my MODS to visual and sound. Which is easily done for ones self with all the media on the average gamers PC. But I will be trying to generate non-copywrite argueable mods, and that takes a bit more effort. I look forward to my own hand built images conquering the galaxy! Along with some meater sound effects. If I can find the time and mental health to carry through I will try to generate some new WAVs.

~SDC~
Reply #3 Top
If you need to shut down the application just press Alt&F4

~SDC~
Reply #4 Top
Oh yeah, I never did get the close button in. I run in 1280x1024, so I always have the little x at the top of the window to close it.
Reply #6 Top
So far all I have had time to try is the ship rotator. But it work quite well. Although I will want the ability to use at least 16 bit color images, so will look forward to an automator able to do that. As high as will work in the game. As I have a whole theme of MODed ships in mind and quality color will be essential to pulling them off. If I have to go the tedious route I will but it would take me a LOT longer to get a MOD done. As to the thematic material; that is classified "Top Secret."

~SDC~
Reply #7 Top
Hmmm, I wonder if my linear algebra textbook has algorithms for rotating an image?

I'd like to build it in to the ship encoder, but I need to find an algorithm.
Reply #8 Top
Any possibility of getting the MAX script that was mentioned in the Doc. file posted? Pretty please? :)
Reply #9 Top
yes the Max script would be great. in the mean time created a photoshop script to complete those files.

~SDC~
Reply #10 Top
Would it be possible to post al the current ships here so we could modify them?
Or perhaps a way for us to extract the images from the MDL files.

I for one would do a fast MOD that simply colorizes them in relation to their race, if possible. Some of us have poor vision and this would be helpful. I might also make some of the ships a bit larger.

This all being seperate from my Secret MOD.

~SDC~
Reply #11 Top
Carielf, rotating an image isn't that hard you know ;)
Just basic sine and cosine of the x and y coordinates. It might get slightly more complicated when you want to have nice anti-aliasing but I'm fairly sure that will come out automatically when you use floating point precision.

~SDC~
Reply #12 Top
but before you start writing one yourself check out some websites. There are a lot of algorithms out there you can use directly for this.

~SDC~
Reply #13 Top
hmmm...don't work with graphics much, do ya carielf? ;p

x' = xcos@ + ysin@
y' = -xsin@ + ycos@

you'd probably have to run some linear interpolation on the result to make it look nice.

cheers

h
Reply #14 Top
depending on the language you're looking for for example:
Delphi: http://www.burstnet.com/cgi-bin/ads/ba2674a.cgi/RETURN-CODE/if/20034101733444/
C++ : http://www.fastgraph.com/help/rotate_c.html
http://www.programmersheaven.com/zone10/cat345/15441.htm


~SDC~
Reply #15 Top
The Ship rotater was written by a friend of mine, I have been bothering him for the source code but I don't think he has it anymore.

~SDC~
Reply #16 Top
From personal experience, rotating a small and/or high-contrast image by arbitrary angles (aside from 0, 90, 180 or 270 degrees :) ) can end up with some pretty ugly results unless you apply a little oversampling :p

~SDC~
Reply #17 Top
just a matter of using a good linear interpolation so that you don't truncate anything.

~SDC~
Reply #18 Top
No, I don't code graphics much. :) I had to do a histogram once for a school assignment and that was it. All the graphics code used in our games was written by someone else.

I don't know how viable extracting the image from the mdl files would be. Certainly, it wouldn't be a quick thing for me to implement.

I'll ask Alex if he can give me the max script to put up.

Reply #19 Top
It will be interesting to see the ship model sites
pop up.

:)
Reply #20 Top
This tool doesn't seem very user friendly. Is there a spec for the .mdl format (it's not the quake .mdl is it?). That way I could build a tool to do the rotating and compiling all in one.

~SDC~
Reply #21 Top
No, it's not the quake mdl. I don't really have specs for the format. When I made this program, I only had a limited amount of time to do it, so I basically just hijacked the code for the program that we use to encode ships and stuff and just automated a lot of the steps that we have to take.
Reply #22 Top
Sorry I wasn't trying to be rude, having been a programmer for a fair while I completly appreciate the fact that dev tools don't need to be user friendly ;)

I've got a 'cunning plan' for building the image strips without having to resort to photoshop etc. and it would just have been nice not to have them go through another program to get to the final result.

If the encoding code isn't uber top secret could we have that and work backwards?



~SDC~
Reply #23 Top
Is there any chance someone can snag some of the bajillion ship models available for Space Empires IV, and convert them for use in GalCiv? I have approximately 0% graphics skills (give or take .0001%), so I am relying on you clever people do to this! ;p

There was a guy on the regular forums awhile back that had a ton of SEIV ship models he was asking to convert awhile back. If there was a fairly simple procedure to convert these things, I would give it a try myself! I don't suppose there is a very simple method.. is there.

Please post updated ship sets here! LOL

fleabitfox
Reply #24 Top
We probably won't be able to make the source code available to you because we're actually licensing the code from one of our former developers.

Were you planning on rotating the image in memory?

--Cari