Combining .dds files in Paint.net?

Post » Sat May 28, 2011 4:01 am

Ok I have this black leather jacket a friend designed. It's pretty nice, but I'm trying to expand into doing 'custom jobs' on various things.

I have a .dds file that has all the textures for the pieces parts, and I have a .dds file of a smiley face...looks like a 'have a nice day' button.

What I want to do is slap that svcker onto the jacket lapel.

Problem is, I barely understand the whole concept of layers and whatnot.

If someone can point me to a 'dummies guide' to paint.net, I'd love it.
User avatar
Je suis
 
Posts: 3350
Joined: Sat Mar 17, 2007 7:44 pm

Post » Sat May 28, 2011 10:55 am

First, don't modify your original jacket, work with a copy of that file because you're likely to make mistakes at first.

I don't like Paint.net at all, it's not a good tool for doing this or much of anything. I use PaintShop Pro v7 and v9 with the nVidia DDS extensions for Photoshop. Anyways...

Use the ellipse selection tool, select the smiley face - I hope it's roughly round. Copy the selection.

Paste the selection directly on the jacket texture file. You will have the ability to move the selection around and resize it.

When you're happy with the result, there is a deselect button on the toolbar, click it to complete the paste.

Save the file as DXT3, with mipmaps, use bilinear compression. There should be 8 or 9 or 10 mipmaps used, unfortunately I do not see a way to tell Paint.net how many mipmaps to use. I also don't know how many mipmaps Paint.net creates. I can look it up but I can't do that in Win 7, my tools are in Win XP and I'll have to reboot.

You can do this task by adding a Layer, pasting your addition to the new layer, then 'flattening' the file before saving. It's just easier to directly copy/paste in this simple case.

All of this is much easier to do than it is to describe. Good luck!
User avatar
Katie Pollard
 
Posts: 3460
Joined: Thu Nov 09, 2006 11:23 pm

Post » Sat May 28, 2011 2:00 pm

how come I don't see mipmaps when the file is open? (its the main file, not the _n.dds file) Is this something I need to be concerned about or is it handled behind the scenes?

Will I end up with a single .dds file as before?

This is a lot to wrap ones head around.
User avatar
Wayne W
 
Posts: 3482
Joined: Sun Jun 17, 2007 5:49 am

Post » Sat May 28, 2011 10:40 am

Paint.net does not by default display the mipmaps, I don't think you need to ever see the mipmaps anyway. I don't think you can even get Paint.net to display the mipmaps.

Paint.net apparently creates 9 mipmaps when that setting is enabled in the save-as dialog for DDS files. That's fine.

There is an excellent tool for viewing and converting various graphics formats, it is http://www.btinternet.com/~mnwright/. On that home page look for the button for DXTBmp on the bottom of the page, you also need the "GFX DLLs" package (on another button). In Win 7 and Vista DO NOT install to the "Program Files" or "Program Files (x86)" folder, I install this kind of stuff to a "Utils" folder to avoid UAC problems. The DLLs package will install to the System32 and on an x64 Windows to the SysWOW64 folder, that's fine. The DXTBmp utility can load a DDS and "Preview" the mipmaps including identifying how many mipmaps are there. DXTBmp will also load a file in some other format, like .bmp or .tga, and convert it to DDS. It's a very useful graphics tool.

An experienced graphics person might want to edit mipmaps directly to improve their quality or remove artifacts (I have occasionally needed to do this but it is rare). That's the only reason you might want to see and edit mipmaps directly. Ordinarily you just let the graphics program create the mipmaps and assume they will be fine.

Mipmaps are used as alternate textures depending on the distance that object is viewed from. When the object is viewed from farther away the full detail of the texture does not need to be shown, progressively lower detail mipmaps will be used for the texture as the distance increases. This is a graphics optimization which increases graphics performance. LOD, Level of Detail, settings in a graphics engine control which mipmap will be used at what distance. It is not strictly necessary to have any mipmaps at all, most graphics engines will resize a texture but this will lower graphics performance and may introduce texture artifacts therefore mipmaps are a better solution.

Will I end up with a single .dds file as before?

Yes, the mipmaps are just stuck onto the end of the file, they are part of the graphics file.

Something you haven't mentioned yet: Does your jacket have a normal map file?

If your main graphic file is named "jacket.dds" you might have a "jacket_n.dds", that's the normal map file.

That's a separate graphics file which is usually present but not strictly required. The normal map has two channels, the first maps the lighting of the object, the alpha channel maps the 3D texture. If your jacket has a normal map file you probably do not need to change anything in it as a result of adding your smiley face emblem. You could give the smiley face a 3D effect by modifying the normal map file but it's not necessary.

If your friend who created the jacket did not also provide a normal map you might ask if that could be done. Creating the normal map and bump-mapping is not simple and is a job for someone who has some graphics experience. Again, I don't think the normal map file is strictly necessary. Try what you have in the game and see if you get the results you wanted.

Just a note: Unfortunately it is almost impossible to do alpha-channels in Paint.net, it is possible but extremely complicated. I gave up trying to make Paint.net work with alpha channels.

Another note: The GIMP is an alternative free graphics editor. I do not like GIMP, it's not intuitive at all and is unlike any other graphics editor but it's lightyears more capable than Paint.net. One major failure is that the current version of the GIMP is not really supported for Windows and worse it may not properly save DDS files. A workaround for the DDS issue is to save a file in some other format, like .tif or .tga, then convert it to DDS with an external converter like the nVidia converter included in the free nVidia DDS utilities package.
User avatar
Holli Dillon
 
Posts: 3397
Joined: Wed Jun 21, 2006 4:54 am


Return to Fallout: New Vegas