FSIC Messageboard
  Old Tech Info
  MH or Mighty, help needed with untiff utility

Post New Topic  Post A Reply
profile | register | preferences | faq | search

UBBFriend: Email This Page to Someone! next newest topic | next oldest topic
Author Topic:   MH or Mighty, help needed with untiff utility
Spyder
Pilot
posted 11-22- 09:48 AM     Click Here to See the Profile for Spyder   Click Here to Email Spyder     Edit/Delete Message   Reply w/Quote
I posted this on the other forum but having heard it was due to go down the S bend soon I'm posting it here so you won't miss it.

I've constructed a GUI for the Untiff dos file but everytime I select a file in a list and try to process it I end up with a 1kb sized tif as the output.
In a dos window it works as it should: untiff input.tif output.tif but in my util it quickly brings up a dos window, runs the untiff with variables set for the input and output filename but then the output is knackered.
Basically the filename is being passed when a user selects it from a file list box to a variable and this becomes both input and output in a winexec string.
I know the filename string is correct because it processes the command and the output is the same name, what have I missed here?
cheers

IP: Logged

Spyder
Pilot
posted 11-23- 09:01 PM     Click Here to See the Profile for Spyder   Click Here to Email Spyder     Edit/Delete Message   Reply w/Quote
Putting it back up there.

------------------

IP: Logged

Bryan Russell
Pilot
posted 11-24- 03:59 AM     Click Here to See the Profile for Bryan Russell   Click Here to Email Bryan Russell     Edit/Delete Message   Reply w/Quote
I may not be reading you right but maybe the problem has something to do with using the same name for the input and output. I can't see why this would be a problem anyway but who knows.

If you wanted to get really fancy you could get the libtiff librarys and do a really flexible converter.

IP: Logged

Spyder
Pilot
posted 11-24- 05:21 AM     Click Here to See the Profile for Spyder   Click Here to Email Spyder     Edit/Delete Message   Reply w/Quote
I tried it using the same variable as input and output, which I thought should work as the output name needs to be the same name.
I'll try a different variable for the same name and see what happens.
All I need is to make the converter user friendly for the Untiff command, I wasn't planning on any other features as the main thing was to get the tif into some of the big paint programmes that don't open compressed tifs. I heard Photoshop or was it Paintshop(?), won't load in these Sdoe tifs?
Thanks Bryan.
Cheers

------------------

IP: Logged

Spyder
Pilot
posted 11-24- 07:35 AM     Click Here to See the Profile for Spyder   Click Here to Email Spyder     Edit/Delete Message   Reply w/Quote
Tried changing variables and no luck.
I'll shove it in the todo bin for a while I think.
Getting Sdoe 1.4 tweaked up again anyhow.
cheers

------------------

IP: Logged

Michael Harrison
General
posted 11-24- 07:48 AM     Click Here to See the Profile for Michael Harrison   Click Here to Email Michael Harrison     Edit/Delete Message   Reply w/Quote
Sorry for the delay Spyder, I was looking for the source to untiff.
Unfortunately it was something I literally hacked together in an hours time and the source seems to have gone *poof*

I'm updating our geometry builder so that the source has all the proper copyrights (so I can put it on the site) and I'll include a new untiff with source at the same time.

------------------
Director of Development
Inertia, LLC

IP: Logged

Royohboy
Pilot
posted 11-24- 11:48 AM     Click Here to See the Profile for Royohboy   Click Here to Email Royohboy     Edit/Delete Message   Reply w/Quote
Spyder,

there is a free image viewer called Irfanview that can do untiff's job, and that can also save tiffs in compressed format.
[url=http://stud1.tuwien.ac.at/~e9227474/][/url]

Peter

IP: Logged

Spyder
Pilot
posted 11-24- 05:28 PM     Click Here to See the Profile for Spyder   Click Here to Email Spyder     Edit/Delete Message   Reply w/Quote
Hey no probs MH and Royohboy. Actually the untiff.exe is fine, I'm just having difficulty making it run in a window correctly.
I'll try the other one you mentioned and see how it goes.
cheers

------------------

IP: Logged

Spyder
Pilot
posted 11-24- 06:15 PM     Click Here to See the Profile for Spyder   Click Here to Email Spyder     Edit/Delete Message   Reply w/Quote
That util is very nice Royohboy but the steps to opening a compressed tif then saving it uncompressed take time.
My util just has you select the tif in a window and convert it taking two steps.
MH is the untiff utility under control of the unisys guys or is that just for using tif pictures on a page or utility?

------------------

IP: Logged

Royohboy
Pilot
posted 11-25- 04:14 AM     Click Here to See the Profile for Royohboy   Click Here to Email Royohboy     Edit/Delete Message   Reply w/Quote
IMHO the batch-conversions are what makes Iview powerful. A dedicated tool like yours, however, has its own advantages. I didn't want to denounce your program.

Happy coding,

Peter

IP: Logged

Spyder
Pilot
posted 11-25- 07:05 AM     Click Here to See the Profile for Spyder   Click Here to Email Spyder     Edit/Delete Message   Reply w/Quote
Hey no worries, that Irfanview util is a great piece, far better than my effort but it's just a little too much for those wanting a simple click and convert util.
It's just something to help with the SDOE tifs not a graphics package, no need to reinvent the wheel with utils such as Acdsee and the like doing taking care of that.
What I've done so far is basically a miniature explorer window showing directories on the left and files on the right, so you just browse to your tif file or files, select it and click Untiff.
Here's a piccy.

cheers

------------------

IP: Logged

Zoycite
JAG
posted 11-25- 02:10 PM     Click Here to See the Profile for Zoycite   Click Here to Email Zoycite     Edit/Delete Message   Reply w/Quote
Spyder,

I think your GUI is just fine. Adding a batch command while nice, but really the only benefit to that would be for those working on terrain. All other tif groups arnt that large, so I dont think you should go gray trying to make batch functions. I already have all the terrian untiffed, so yes it would have been nice, there again more people I think would only be untiffing a few items at a time.

What I really want is a Untiff Plug-in for Photo Shop, I can dream ant I?

What am I trying to say? Hmm not much I guess Carry on, I'm sure you'll do a fine job.

------------------
Zoycite {GS}
GUNSLINGERS

visit The War Paint Factory

IP: Logged

Royohboy
Pilot
posted 11-25- 02:57 PM     Click Here to See the Profile for Royohboy   Click Here to Email Royohboy     Edit/Delete Message   Reply w/Quote
One question BTW,

what is the compression needed for? Does it have any favourable effect if user compress e.g. their home-made airfield or town textures?

Peter

IP: Logged

Spyder
Pilot
posted 11-25- 06:08 PM     Click Here to See the Profile for Spyder   Click Here to Email Spyder     Edit/Delete Message   Reply w/Quote
I think the compression only serves to keep the parfiles smaller than they are.
The slow loading screen is due to these files being uncompressed I think.
You don't need to compress your tifs back in order for them to be used, it's just some paint programmes don't recognise or load compressed tifs at the moment and prevents you from painting them.
Zoy found photshop doesn't load these in, yet Acdsee does it.
cheers

------------------

IP: Logged

Bryan Russell
Pilot
posted 11-25- 06:39 PM     Click Here to See the Profile for Bryan Russell   Click Here to Email Bryan Russell     Edit/Delete Message   Reply w/Quote
The SDOE Tiffs use gzip compression which is why some packages don't load them. It seems strange that something like paint shop pro doesn't support gzip, as the libtiff stuff has all of this, is free and extremly easy to use (I even got it work!)

It would be nice if a converter converted from the gzip stuff to one of the compressions supported by paint packages, e.g. LZW or something like that to keep the file sizes down, I believe that SDOE does support other compression types.

Maybe an idea for your new untiff MH?

The reason the load screen takes a while when it first loads a terrin is because it is optimising the textures for a particular vid card. For example the 3dfx stuff likes 16 bit textures while some of the other stuff likes 32 bit.

IP: Logged

Michael Harrison
General
posted 11-26- 07:43 AM     Click Here to See the Profile for Michael Harrison   Click Here to Email Michael Harrison     Edit/Delete Message   Reply w/Quote
We're actually using ZLib and libtiff in Fighter Squadron.

We use the compression both to keep the file size small and so that the textures load faster.

We went with zlib rather than lzw so that we wouldn't have to pay the vampires at Unisys for every copy of FS that was sold.

FYI, libtiff is currently maintained at: http://www.libtiff.org/
and zlib can be found: ftp://ftp.cdrom.com/pub/infozip/zlib/zlib.html

IP: Logged

Michael Harrison
General
posted 11-26- 03:56 PM     Click Here to See the Profile for Michael Harrison   Click Here to Email Michael Harrison     Edit/Delete Message   Reply w/Quote
Spyder...

I've created a new utility (actually it's a build of a util that comes with libtiff)

go to: ftp://lynx.inertiagames.com/pub/openplane/tiffcp.zip

and you'll find a util that will uncompress and compress tiffs. The source is part of libtiff.

IP: Logged

Spyder
Pilot
posted 11-27- 01:17 AM     Click Here to See the Profile for Spyder   Click Here to Email Spyder     Edit/Delete Message   Reply w/Quote
Thanks MH, grabbed it.
This will be more functional, now I can compress them back too.
Cheers

------------------

IP: Logged

Sv
Pilot
posted 11-29- 07:01 AM     Click Here to See the Profile for Sv   Click Here to Email Sv     Edit/Delete Message   Reply w/Quote
Spyder - this will be a great help! I can't wait until your done!

------------------
-Sv =FC=
WWI in SDOE!

IP: Logged

Spyder
Pilot
posted 11-29- 08:57 AM     Click Here to See the Profile for Spyder   Click Here to Email Spyder     Edit/Delete Message   Reply w/Quote
Oops! yeah I got side tracked on the other util. I figured the skin changer had more priority and represented a challenge.
Will get back to this shortly.
cheers

------------------

IP: Logged

All times are CT (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | Fighter Squadron Information Center

(This site Copyright (c) 1999 Inertia LLC)

Powered by Infopop www.infopop.com © 2000
Ultimate Bulletin Board 5.45c