Question Textures .dds

spacy

New member
Joined
Nov 9, 2008
Messages
19
Reaction score
0
Points
0
I am a Newbie who is developing my first addon and i need help with textures.

first what can make and view .dds
How do i turn jpegs into textures
and lastly how do i use textures

if you can provide this information or point me toward the right place
that would be much appreciated

i will also include this info in a thing i am writing The newbie orbiter guide
 
I am a Newbie who is developing my first addon and i need help with textures.
...
if you can provide this information or point me toward the right place
that would be much appreciated

i will also include this info in a thing i am writing The newbie orbiter guide

FYI there is a lot of tutorials here

and Articles here ;)


first what can make and view .dds
How do i turn jpegs into textures
and lastly how do i use textures

Addon Development Resources

specifically;

and a tutorial on how texture using Anim8or

:cheers:
 
In a nutshell:
First, make your texture, save as .jpg, .bmp, whatever. Then, open it in DxTex (found in orbiters "util" folder), and save as a .dds

Then, in the mesh file of your addon (assuming it has a mesh), at the VERY end, you should see Textures 0
Change that 0 to the number of textures you have, and after that line, put the exact name of the texture name, with a .dds afterward. Example:
texture name is body
TEXTURES 1
body.dds

That should provide you with what you need
 
Dex tex not working

whenever i open something in dex tex it only gives me black
 
A few things:

something being what exactly? details help.
It's DXTex and not dextex - could you have the wrong application?

Please TRY. Please READ the tutorials and then ask specific questions.

thanks
 
Spacy, some things about DxTex.

1) It only converts from .bmp to .dds, it can't handle .jpg files.

2) The .bmp file must be powers of two, horizontal and vertical. Thats 256 x 256, or 512 x 256, or 1024 x 256, and so on. Rectangular or square, and only powers of two on each side.

3)The black frame is normal in DxTex, you won't see any images in it. It does show you the aspect ratio though, if its 512 x 512 its a square, if its 256 x 1024, its a rectangle. Very helpful...

You could try making an image in Paint or similar, say a 256 x 256 .bmp, save that, open DxTex, load your .bmp. Then use the Format->Change Image Format menu, and you have a choice of 5 .dds types. I wont go into them now. Select any one and you have converted to a .dds file. You can save that.
If you get an error message, it will usually be complaining about the .bmp not being powers of two on a side.

Thats basically it, for converting from .bmp to .dds.

The hard bit is finding out what to do with them!

N.
 
A bit of clarification.
DxTex tool from Orbiter is a part of DirectX 7 SDK.

3)The black frame is normal in DxTex, you won't see any images in it. It does show you the aspect ratio though, if its 512 x 512 its a square, if its 256 x 1024, its a rectangle. Very helpful...
It is not normal. In Windows 98/ME it worked just fine. That is a version of DxTex which doesn't display loaded image in the frame in Windows 2k/XP and newer (because it's really old). If you want to see the image instead of black frame, you need to download and install DirectX 9 SDK (or 10/11) from Microsoft site, since DxTex tool can't be distributed separately (at least since DX9).

1) It only converts from .bmp to .dds, it can't handle .jpg files.
You can convert *.hdr, *.bmp, *.tga, *.jpg, *.png, and *.dib images if you have a version of this tool provided by DirectX 9 SDK or newer.

If you don't intend to install either part of Visual Studio to compile any DirectX program, don't download DirectX 9 SDK, and use the tool from Orbiter instead, with its flaws.
 
Thanks for the info orb, I didn't know DxTex had a Direct 9 and later update.

N.
 
The great freeware tool Paint.Net it is an easy to use graphic application with similarities to Photoshop. It let's you imports, export and edit dds files natively.
 
Back
Top