Questions tagged [tga]

TrueVision TGA (or Targa) is a raster image file format with a long history of use in computer games, primarily because it was the first generally available format supporting 24-bit images.

See the following for more information:

74 questions
0
votes
0 answers

C++: read but can't properly write .tga file

SOLVED IN COMMENTS I'm trying to read a .tga file, extract the header and the pixel data, check some header values and then write it into a new .tga file, but it won't quite work the way I'd want it to. struct TGAFILE { char idLength; char…
Cpt. Crazy
  • 115
  • 1
  • 11
0
votes
1 answer

Clojure library for TGA

I want to create a simple TGA file, for example drawing a line. I didn't find a Clojure library for this, although I found similar libraries for Common Lisp (cl-tga, targa). Is there any Clojure library to create TGA files?
VsSekorin
  • 355
  • 1
  • 3
  • 17
0
votes
1 answer

Sometimes broken TGA-file when written from memory

I observe sometimes a strange behavior when writing an image-buffer from memory (containing RGBA-pixel-data loaded from a tga-file) to a file back as tga. The image-buffer is loaded from a TGA-file with an algorithm stolen and adapted from this…
SoulfreezerXP
  • 459
  • 1
  • 5
  • 19
0
votes
1 answer

Reading TGA shows nulls instead of color data

I'm trying to write a simple TGA-Loader and I found that reading some images produced a lot of unwanted nulls after a certain point. There are six images I'm testing: Each of them has 32x32 pixels with BGR-colors. Now four images are read fine,…
0
votes
0 answers

Manipulating PSD and converting to TGA with Java

I have a few PSD that are basically templates with a few hidden layers. I want to manipulate these templates so that for every export only one of these hidden layers is visible. In the end these file should be exported as TGA. I am looking for a way…
sascha_lamp
  • 179
  • 2
  • 12
0
votes
1 answer

TGA reading header with QDataStream

I am trying to read a TGA file header with Qt QDataStream. I have the following structure from the specs with fixed types: #pragma pack(push, 1) /* TGA header */ struct tga_header_t { quint8 id_lenght; /* size of image id */ …
2A-66-42
  • 554
  • 1
  • 5
  • 18
0
votes
0 answers

C# Load TGA and manipulate TGA image

I've been searching for an answer but cant get my head around this. I use C# alot but never actually dealt with graphics. I want to load a TGA image (32 bit) and then manipulate the color data ( including alpha channel ). How would a dumb dumb begin…
Yuval Sade
  • 31
  • 1
  • 5
0
votes
1 answer

C++ TGA reading fails

i'm using the java method below to write an android.graphics.Bitmap to tga, i've opened the photo in photoshop and it's allright. in native i have to load and display this image with opengl, but the loading of image is incorrect and i see incorrect…
Stoica Mircea
  • 782
  • 10
  • 22
0
votes
1 answer

Save file at path using iostream

I'm currently playing around with some 3D software rendering I implemented with lua and love2d. Someone in the forums showed me this link to learn even more : C++ Software Renderer This is a tutorial for a software renderer written in C++ where no…
user148013
  • 361
  • 1
  • 2
  • 12
0
votes
1 answer

TGALoader is loading image mirrored in vertical axis

Loading a .obj model with a .mtl material using a Targa image as texture, the image is loaded mirrored. It can be noticed in the following image where the left one is .tga and the right one is .png. Opening both images in an image editor, they…
Bruno Lima
  • 33
  • 1
  • 5
0
votes
1 answer

Targa image – damaged red and green channels

I've a problem with 16-bit targa file. I'm opening image and it colors are weird. It's problem with red and green channels – blue is fine. How I can repair targa image, to look like on example? (first is original image, second is as must…
drdawidd
  • 515
  • 4
  • 7
0
votes
1 answer

Converting .3DC + .DDS files into .OBJ + .MTL + .TGA

How would I go at converting .3DC + .DDS files into .OBJ + .MTL + .TGA?
Pikachuu
  • 21
  • 4
0
votes
1 answer

TGA Raw Packet with no size

I exported an image with gimp into a tga image while implementing a parser for tga-textures using rle. A snipped from a hex editor formatted for better understanding: (1) 83 06 06 0B FF (2) 00 06 06 0A FF (3) 83 05 05 09 FF According to the…
Matze
  • 533
  • 7
  • 16
0
votes
1 answer

How do I Save a bitmap as a tga file?

Can anybody help me? I am new to android and need to save a bitmap as a tga file. And I also need to know how to load a tga file. I have tried using this (The android version) Java TGA loader but all I get is a solid white screen. If anybody could…
0
votes
2 answers

Export .tga or .png image file to disk in Unity3d

There is any way with code to export a .png or .tga file to local disk in Unity? I need to write a converter that loads asset bundles and converts them to the original source image files. I need to create those files, in a way that anyone could open…
DavidGuaita
  • 501
  • 1
  • 7
  • 18