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
9
votes
1 answer

In the TGA file format, what is the purpose of the x origin and y origin?

The TGA image specification contains these two fields: Field 5.1 (2 bytes) - X-origin of Image: These bytes specify the absolute horizontal coordinate for the lower left corner of the image as it is positioned on a display device having …
Nicolas Louis Guillemot
  • 1,570
  • 1
  • 10
  • 23
8
votes
0 answers

Getting "Error while decoding stream #0:0: Invalid data found when processing input" when using ffmpeg to convert tga to mp4

I've used ffmpeg to convert a bunch of tga files into an mp4 just fine for a few weeks, but it broke for no apparent reason earlier today. I have a pastebin with -loglevel debug here, but the command I use is the same as the one that has worked…
Calvin Godfrey
  • 2,171
  • 1
  • 11
  • 27
8
votes
5 answers

Java TGA loader

I am looking for a small and free TGA image loading class or library for java. Ideally the result is a BufferedImage. Yes, I have already googled, but most results are outdated, or are quite big libraries that contain a lot of other stuff i dont…
clamp
  • 33,000
  • 75
  • 203
  • 299
6
votes
2 answers

How to load PNGs and export to TGA keeping alpha in C#?

I'm writing a tool to automate some of our asset making for a game. What I want to do is take a folder of PNG files, combine them into a texture atlas and then export the atlas as a TGA and the UV coords to XML. I'm not sure which method I should…
Kath
  • 182
  • 2
  • 6
5
votes
1 answer

how to get the direction of tga file in java

I have read Wiki http://en.wikipedia.org/wiki/Truevision_TGA and I know that the 5-4 bits of the Eighteenth byte of tga file represent the direction of tga file. So, there is 4 permutations(00,01,10,11) to show us the direction, which direction…
Mr rain
  • 983
  • 5
  • 13
  • 27
3
votes
2 answers

Loading a TGA File and Using it with OpenGL

I currently am trying to load a tag file with c++ and rendering it with OpenGL. Currently the colors are all mixed up (red becomes blue, green becomes red, and blue becomes green). My current code for putting it into the video memory is.…
Jjack
  • 1,276
  • 4
  • 13
  • 20
3
votes
4 answers

How to DEBUG OpenGL a gray/black texture box?

I'm altering someone else's code. They used PNG's which are loaded via BufferedImage. I need to load a TGA instead, which is just simply a 18 byte header and BGR codes. I have the textures loaded and running, but I get a gray box instead of the…
PLG
  • 448
  • 5
  • 21
2
votes
3 answers

Problems Loading Targa File C++

As the title suggests, I've been having problems loading .tga files. I've been using this for reference and as far as I can tell (Apart from using c++ functions instead of c ones) I'm doing the same thing. I do get a texture but it's a garbled…
Sullivan
  • 153
  • 1
  • 7
2
votes
1 answer

How can I show a TGA image in a tga?

I have a TGA image encoded in Base64 https://gist.github.com/984770 But it doesn't show on the browser. Is there a way to show a TGA image on the browser or it is not supported? Is there any client side technology I could use to achieve this?
Nerian
  • 15,901
  • 13
  • 66
  • 96
2
votes
1 answer

.tga Image: Value that should be represented by a word is only correct if I read the first half word

I have the following problem: I am trying to read the header of a tga file and so I went on Wikipedia to get the structure of a tga file: There it says that the image width and height are stored as one word or 2 bytes of data in the header. But then…
Lukas Thiersch
  • 155
  • 2
  • 15
2
votes
0 answers

Texture Quality - World of Warcraft Vanilla

Textures. This is something that has been bothering me since I started messing with them.More specifically, their quality in World of Warcraft Vanilla. I searched and researched it over and over again, tried it in so many ways but it's just never…
user7393973
  • 2,270
  • 1
  • 20
  • 58
2
votes
2 answers

Load 24 bit TGA

I wrote a TGA loader to load TGA files. It loads and saves 32-bit TGA files just fine but when it comes to loading and saving 24-bit, it messed up. Example TGA 24-bit file from Photoshop: My output: Any idea what is wrong with it? I did the…
Brandon
  • 22,723
  • 11
  • 93
  • 186
1
vote
3 answers

C++ OpenGL TGA Loading Failing

I've been working through a basic OpenGl tutorial on loading a TGA file, to be used as a texture on a 3d object. I've been able to load data from the TGA header, but when I attempt to load the actual image data, it fails. I'm not sure where it is…
Donutfiend84
  • 125
  • 2
  • 5
1
vote
1 answer

What is wrong with my manually made .tga file?

I'm trying to make a basic ray tracer in C, and decided to use a .tga file as the output render file. But for whatever reason, the file that gets created shows as being solid white in every tga file viewer I can find. The start of the hexdump for…
Calvin Godfrey
  • 2,171
  • 1
  • 11
  • 27
1
vote
1 answer

reconstructing a image from byte array in arduino

So I need to send screen captures from Unity to an Arduino. I have a communication line open where I can send X size of a byte array and receive them in the Arduino. I have two questions: What type of image (converted to byte[]) should I be sending…
cch
  • 27
  • 7
1
2 3 4 5