Jump to content

How to create dune 2000 compatilbe .tga files?


FunkyFr3sh
 Share

Recommended Posts

I tried it with irfan view/paint.net but the game wont load it :/ which tool are you guys using? Could someone assist me to center these menu graphics below? :D

 

http://funkyfr3sh.cncnet.org/files/d2k/DUNEMAP2_800x600.TGA

http://funkyfr3sh.cncnet.org/files/d2k/DUNEMAP_800x600.TGA

http://funkyfr3sh.cncnet.org/files/d2k/SCOREMP_800x600.TGA

http://funkyfr3sh.cncnet.org/files/d2k/SCOREUI_800x600.TGA

Link to comment
Share on other sites

I tried it with irfan view/paint.net but the game wont load it :/ which tool are you guys using? Could someone assist me to center these menu graphics below? :D

 

http://funkyfr3sh.cncnet.org/files/d2k/DUNEMAP2_800x600.TGA

http://funkyfr3sh.cncnet.org/files/d2k/DUNEMAP_800x600.TGA

http://funkyfr3sh.cncnet.org/files/d2k/SCOREMP_800x600.TGA

http://funkyfr3sh.cncnet.org/files/d2k/SCOREUI_800x600.TGA

The tga files use some sort of custom bit format (15bit). If I remember correctly. Mvi has some info on converting to normal format (perhaps useful one day): http://mvinetwork.co.uk/2013/05/27/colour-code-snippets/ 

 

It's 16bit: http://d2kplus.com/wiki/index.php?title=Image_files

 

I once edited tga files correctly with paint shop pro something...: http://forum.dune2k.com/topic/21583-r8-and-r16-graphics/?p=386228

 

I also made a quick python program for you that adds black space to dune 2000 tga files. I call it background generator mark II. Very creative naming. :P Perhaps this is enough for you (see 'back' folder for generated resolutions) or else you are free to convert the code to c/c++ or whatever as long as you mention my name (and this forum). :)

 

Edited by D2k Sardaukar
  • Upvote 1
Link to comment
Share on other sites

The tga files use some sort of custom bit format (15bit). If I remember correctly. Mvi has some info on converting to normal format (perhaps useful one day): http://mvinetwork.co.uk/2013/05/27/colour-code-snippets/ 

 

It's 16bit: http://d2kplus.com/wiki/index.php?title=Image_files

 

I once edited tga files correctly with paint shop pro something...: http://forum.dune2k.com/topic/21583-r8-and-r16-graphics/?p=386228

 

I also made a quick python program for you that adds black space to dune 2000 tga files. I call it background generator mark II. Very creative naming. :P Perhaps this is enough for you (see 'back' folder for generated resolutions) or else you are free to convert the code to c/c++ or whatever as long as you mention my name (and this forum). :)

 

attachicon.gifbackground generator mark II.7z

It's 15 bit, the 16th bit is just padding. The code I posted should work fine if you have raw pixel buffers.

 

Photoshop supports editing these files without any issues. Alternatively a PNG<->15 bit TGA convertor should be trivial to code.

Link to comment
Share on other sites

It's 15 bit, the 16th bit is just padding. The code I posted should work fine if you have raw pixel buffers.

 

Photoshop supports editing these files without any issues. Alternatively a PNG<->15 bit TGA convertor should be trivial to code.

Feels like someone is volunteering ;)

Link to comment
Share on other sites

Have a PNG <-> TGA Converter

 

Images are saved in the same folder as the original with the same name but different extension. 

 

If anyone wants to do anything fancier with it, i.e. drag and drop or CLI then the source code is at https://gist.github.com/mvi/284fa3b6fa9422da8297

 

Full source code zip is at https://www.dropbox.com/s/3us76ubmd8uhg0e/TGAConverter.7z

  • Upvote 3
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...