Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Looking for the tgaimg exe/code

36 views
Skip to first unread message

Mike Garcia

unread,
Feb 8, 2021, 5:53:41 PM2/8/21
to


Hi,
I'm looking for an old unix/win95'ish commandline executable.

"TGA2IMG takes an uncompressed 24-bit Targa file and converts it to a
format that was used by the Vivid raytracer."

It's an old program witch converted tga images to other formats, including
c code and header files (like bin2c), I can't seem to find the original
exe or code to it on github or SF or a web search.


Here's what the usage command looks like:
tga2img -q -r4 -i320,0 -p0,480 file.tga



I've found 2 different programs but it's not it:


VIVID2.ZIP from: http://files.mpoli.fi/software/DOS/GRAPHICS/

TGA2IMG Version 1.01
Converts 24 bit TGA files to 24 bit IMG(Vivid) files.
Copyright 1990, Dan Farmer

Usage: Z:\TGA2IMG.EXE File[.TGA]



and ... not sure what THUG2 or THPS4 is but that's not it also :/

http://www.thps-mods.com/forum/viewtopic.php?t=598

+ THUG2 TGA to IMG Converter v0.2 + by Yoshua (Defeat0r)
+ Web: http://jmn-web.tk ---------------------------------
For THUG2 or THPS4? 1/2




Anyone got a win32 exe or the source code to tga2img?

Cheers Mike.




--

Mike Garcia
http://mgarcia.org

Lew Pitcher

unread,
Feb 8, 2021, 6:38:46 PM2/8/21
to
On Mon, 08 Feb 2021 22:53:26 +0000, Mike Garcia wrote:

> Hi,
> I'm looking for an old unix/win95'ish commandline executable.
>
> "TGA2IMG takes an uncompressed 24-bit Targa file and converts it to a
> format that was used by the Vivid raytracer."
[snip]
> Anyone got a win32 exe or the source code to tga2img?

Not me, nor anyone that I know. /But/...

Slackware Linux still provides a tgatoppm program that converts Targa
files to Portable Pixmap files. And, it appears that the tgatoppm program
is part of the NetPBM package available at http://netpbm.sourceforge.net/

Since tgatoppm has an Open Source licence, you can get the sourcecode
from the NetPBM site.

Would the tgatoppm source code help you?

--
Lew Pitcher
"In Skills, We Trust"

Eli the Bearded

unread,
Feb 8, 2021, 7:04:03 PM2/8/21
to
In comp.lang.c, Mike Garcia <mi...@mgarcia.nospam> wrote:
> I'm looking for an old unix/win95'ish commandline executable.
>
> "TGA2IMG takes an uncompressed 24-bit Targa file and converts it to a
> format that was used by the Vivid raytracer."
>
> It's an old program witch converted tga images to other formats, including
> c code and header files (like bin2c), I can't seem to find the original
> exe or code to it on github or SF or a web search.

There's a lot of old software on ISOs at archive.org. Unfortunately many
of the ISOs don't provide searchable file listings. If I were desparate,
I'd start looking there.

Elijah
------
archive.org has a real "find this item" problem

Stef

unread,
Feb 9, 2021, 3:27:47 AM2/9/21
to
On 2021-02-08 Mike Garcia wrote in comp.lang.c:
>
>
> Hi,
> I'm looking for an old unix/win95'ish commandline executable.
>
> "TGA2IMG takes an uncompressed 24-bit Targa file and converts it to a
> format that was used by the Vivid raytracer."
>
> It's an old program witch converted tga images to other formats, including
> c code and header files (like bin2c), I can't seem to find the original
> exe or code to it on github or SF or a web search.

Are you looking for this specific program or a way to open Targa files
and save them as C header files?

If the latter, you can probably use GIMP. It can open targa files and
save as C header files.

--
Stef (remove caps, dashes and .invalid from e-mail address to reply by mail)

Cogito cogito ergo cogito sum --
"I think that I think, therefore I think that I am."
-- Ambrose Bierce, "The Devil's Dictionary"

Anton Shepelev

unread,
Feb 9, 2021, 8:13:44 AM2/9/21
to
Mike Garcia:

> I'm looking for an old unix/win95'ish commandline
> executable.
>
> "TGA2IMG takes an uncompressed 24-bit Targa file and
> converts it to a format that was used by the Vivid
> raytracer."

Is it a quotation from the manual?

> It's an old program witch converted tga images to other
> formats, including c code and header files (like bin2c), I
> can't seem to find the original exe or code to it on
> github or SF or a web search.
>
> Here's what the usage command looks like:
> tga2img -q -r4 -i320,0 -p0,480 file.tga

Is it an exact sample invocation of the program?

> I've found 2 different programs but it's not it:
> [...]

I got the same results, but I have also found some
alternative software that can convert .tga to the Vivid
raytracer .img, but you seem to need that specific utility.

--
() ascii ribbon campaign - against html e-mail
/\ http://preview.tinyurl.com/qcy6mjc [archived]

Eli the Bearded

unread,
Feb 9, 2021, 12:54:50 PM2/9/21
to
In comp.lang.c, Stef <ste...@yahooI-N-V-A-L-I-D.com.invalid> wrote:
> Are you looking for this specific program or a way to open Targa files
> and save them as C header files?
>
> If the latter, you can probably use GIMP. It can open targa files and
> save as C header files.

There's "tgatoppm foo.targa | ppmtoxpm > foo.c" using netpbm tools,
for at least one flavor of image-as-C-code image. I'd expect the
particular flavor of C encoding is significant.

Elijah
------
for many purposes PPM is easier to use in C than XPM

Mike Garcia

unread,
Feb 9, 2021, 5:33:09 PM2/9/21
to
Hey, thanks for the reply,
It's used in a makefile, I just wanted the same exe, but i'll have a look.
thanks

Mike Garcia

unread,
Feb 9, 2021, 5:37:54 PM2/9/21
to
Hey, thanks for the reply, yeah, I think this program predates ISOs,
so... it's probably on floppy images!

That's why I'm asking on newsgroup first.. i'll ask DOS groups next I
guess.

Mike Garcia

unread,
Feb 9, 2021, 5:40:04 PM2/9/21
to
On Tue, 09 Feb 2021 09:26:09 +0100, Stef wrote:


> Are you looking for this specific program or a way to open Targa files
> and save them as C header files?
>
> If the latter, you can probably use GIMP. It can open targa files and
> save as C header files.


Hey, thanks for the reply, sorry I should have been more clear, it's for
a few makefiles that use it, it's no big deal, bin2c works.

Just would have been nice to use the same exe.

Mike Garcia

unread,
Feb 9, 2021, 6:01:47 PM2/9/21
to
On Tue, 09 Feb 2021 16:13:28 +0300, Anton Shepelev wrote:

> Mike Garcia:
>
>> I'm looking for an old unix/win95'ish commandline executable.
>>
>> "TGA2IMG takes an uncompressed 24-bit Targa file and converts it to a
>> format that was used by the Vivid raytracer."
>
> Is it a quotation from the manual?

It's from the only info I could find on tga2img!

https://groups.google.com/g/comp.graphics.apps.paint-shop-pro/c/
XXn09MH2tpM/m/W0f72jKxhCAJ


>
>> It's an old program witch converted tga images to other formats,
>> including c code and header files (like bin2c), I can't seem to find
>> the original exe or code to it on github or SF or a web search.
>>
>> Here's what the usage command looks like:
>> tga2img -q -r4 -i320,0 -p0,480 file.tga
>
> Is it an exact sample invocation of the program?

Yes, from a makefile:

stars.img: stars.tga

tga2img -q -r8 -i448,0 -p0,482 $<

from a dos batch file:
tga2img -r8 kf_d0_f0.tga

>
>> I've found 2 different programs but it's not it:
>> [...]
>
> I got the same results, but I have also found some alternative software
> that can convert .tga to the Vivid raytracer .img, but you seem to need
> that specific utility.


Thanks for your time, I'll keep looking.
If I find I'll upload it to archive.org and drop a link in the thread.

Jorgen Grahn

unread,
Feb 9, 2021, 6:23:17 PM2/9/21
to
["Followup-To:" header set to comp.lang.c.]

On Tue, 2021-02-09, Mike Garcia wrote:
> On Tue, 09 Feb 2021 00:03:49 +0000, Eli the Bearded wrote:
>
>> In comp.lang.c, Mike Garcia <mi...@mgarcia.nospam> wrote:
>>> I'm looking for an old unix/win95'ish commandline executable.
>>>
>>> "TGA2IMG takes an uncompressed 24-bit Targa file and converts it to a
>>> format that was used by the Vivid raytracer."
>>>
>>> It's an old program witch converted tga images to other formats,
>>> including c code and header files (like bin2c), I can't seem to find
>>> the original exe or code to it on github or SF or a web search.
>>
>> There's a lot of old software on ISOs at archive.org. Unfortunately many
>> of the ISOs don't provide searchable file listings. If I were desparate,
>> I'd start looking there.
>>
>> Elijah ------
>> archive.org has a real "find this item" problem
>
> Hey, thanks for the reply, yeah, I think this program predates ISOs,
> so... it's probably on floppy images!

CD collections from the early 1990s predate ISOs, too. People had
slow internet connections and CD burners were expensive, but some
people sold CDs by mail order. Some of these were really collections
of things originally distributed on floppies. E.g. the Amiga Fish
Disks. Some were copies of anonymous FTP sites like ftp.funet.fi.
Lots of it came without source code.

If it's predated by Windows 95 like you say, that puts it in the CD
collection time frame, or even after it.

/Jorgen

--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .

Mike Garcia

unread,
Feb 9, 2021, 8:35:11 PM2/9/21
to
On Mon, 08 Feb 2021 22:53:26 +0000, Mike Garcia wrote:

Turns out it was a Sony PS1 specific tool, that converts TGA to TIM then
to a C char array.

I found it on an old hard drive, if anyone is interested I posted it here
(it works in winXP):


https://archive.org/details/tga2img_TIM2C

Anton Shepelev

unread,
Feb 10, 2021, 12:39:33 PM2/10/21
to
Mike Garcia:

> If I find I'll upload it to archive.org and drop a link in
> the thread.

Thanks for making Usenet and Internet better.
0 new messages