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
1
vote
2 answers

Copying picture (.tga) from text content

I working on the creation of a game. I want to hide all my .tga files. I concatenate the string content of all my files on a single file in order to make it illisible for players. I want my program to load a picture by creating a temporaly .tga file…
1
vote
1 answer

Clojure read TGA witout libraries

I want to read TGA file to BufferedImage. How I can do it without libraries? Now there is function: (defn load-image [filename] (ImageIO/read (File. filename))) This function read jpeg file successfully, but return nil instead of BufferedImage…
VsSekorin
  • 355
  • 1
  • 3
  • 17
1
vote
0 answers

How can I TGA file format to DDS format?

I have a question. Could you help me, please? import os import sys def prozess_start(programmName, parameter): return os.execv(programName, parameter) def read_files(pfad): TGA_files = [] name_file = os.listdir(pfad) t = [] …
KG. Boys
  • 43
  • 6
1
vote
1 answer

TGA File Header is not correct on Windows

I'm trying to read a TGA header of the file I created in Paint.net. It seems that there is something wrong with it. If I use the header structure from the specification, like this one: typedef struct { CHAR idlength; CHAR colourmaptype; …
Bartosz Boczula
  • 349
  • 1
  • 2
  • 9
1
vote
2 answers

three.js: MTLLoader doesn't load tga textures

I have an export of some .obj files and corresponding .mtl files. Textures are in .tga format in the same folder. Here is the code I use to load all my .obj: function addCar(modelPath, modelName) { var mtlLoader = new THREE.MTLLoader(); …
Mat
  • 185
  • 1
  • 11
1
vote
1 answer

OpenGL Textures Format Restrictions

Are there certain format restrictions that textures need to adhere too? I am loading TGA files and drawing them with the following fragment shader: varying vec2 v_texCoord; uniform sampler2D s_texture; uniform vec4 vColor4; void main() { …
SparkyNZ
  • 6,266
  • 7
  • 39
  • 80
1
vote
1 answer

Bitmap to Targa (TGA) save bug

I'm using the following code to save a Bitmap to a .tga file at the moment: public static void writeTGA(Bitmap src, File file) throws IOException { ByteBuffer buffer = ByteBuffer.allocate(src.getRowBytes() * src.getHeight()); …
user964843
1
vote
1 answer

White frame around images in WoW Addon

I am having some trouble with my World of Warcraft addon. Whenever I display my TGA files in the addon, there is a thin white frame around them. The same happens when I convert them to BLPs. When I look at the images themselves with Preview, there's…
Aleph Dvorak
  • 338
  • 1
  • 16
1
vote
1 answer

vb.net: is it possible to import FreeImage.dll to vb.net?

I need to read\write tga files from vb, I found TargaImage.dll, nice lib but it allows only read tga. I found FreeImage, tryed to import it in vb, but it says: FreeImage.dll could not be added. Please make sure that the file is accessible, and that…
0867532
  • 15
  • 1
  • 1
  • 4
1
vote
2 answers

c++ tga parsing incorrect_color/distortion with some resolutions

i'd like to get some help on my issue with .tga file format parsing. i have the code, which i use for a long time: int fileLength = Input.tellg(); vector tempData; tempData.resize(fileLength); …
Nowhere-01
  • 314
  • 4
  • 19
1
vote
1 answer

Problems Displaying Targa/TGA

Very very slight problem with my Targa Reader. One pixel is off and 2 extra pixels are black :S The 24-bit targa file I'm loading looks like: Notice the White pixel in the very top left corner. The very first pixel at the top left is white. But…
Brandon
  • 22,723
  • 11
  • 93
  • 186
1
vote
0 answers

php Open tga and save tga

I am trying to edit a TGA (32 bit). The goal is that I open the file, add some text and save it again as TGA (32 bit). I managed to open a TGA file using some scripts, but it seems that I need imagick to save it also as a TGA. (but with imagick i…
TwinsIT
  • 87
  • 1
  • 1
  • 6
0
votes
1 answer

How to tell if a Targa is from Photoshop?

I have run into an issue while trying to write a *.tga file reader. For 32 bit targas, photoshop fills the alpha channel with 255, which is still standard, and works, but in 16 bit targas, photoshop fills the alpha bit with zeros. Is there any way I…
CuriousGeorge
  • 7,120
  • 6
  • 42
  • 74
0
votes
1 answer

How to convert a JPG image to TGA with PHP (preferably in CodeIgniter)?

We're developing a website and for a particular section user is uploading images. User can upload a jpg file, which on upload we need to convert it to TGA format. Is there any PHP or CI library which can do this? I know this is not possible with GD…
digipo
  • 11
  • 1
  • 4
0
votes
1 answer

Loading a PVR, texture problems

I'm having a problem with loading a tga from a PVR. I believe the PVR is loading correctly, but when I try and load the texture into OpenGL I'm getting issues. I'm getting odd, incoherant drawings. I'll passing the entire texture file I'm making…
Bushes
  • 1,010
  • 1
  • 18
  • 37