• ORBITER-FORUM will be temporarily closed at 2026-07-23 18:00 UTC while we complete some OF maintenance tasks. The amount of downtime is expected to take up to one hour, but probably less.

Problem Read dds surface issue

BruceJohnJennerLawso

Dread Lord of the Idiots
Addon Developer
Joined
Apr 14, 2012
Messages
2,584
Reaction score
0
Points
36
Hey everyone,

I was wondering if anyone knows a bit about an error Ive been frequently getting with textures UV mapped to orbiter meshes. It usually looks something like this in the orbiter log:

Code:
---------------------------------------------------------------
>>> ERROR: DDraw error DDERR_INVALIDPARAMS
>>> [ReadDDSSurface | .\Texture.cpp | 240]
---------------------------------------------------------------
ERROR: TextureManager::LoadTexture|ReadDDSSurface (code: -2147024809)
---------------------------------------------------------------
>>> ERROR: Missing texture: ShuttleDBFairing\Habitat2.dds
>>> [TextureManager::AcquireTexture | .\Texture.cpp | 750]
---------------------------------------------------------------
---------------------------------------------------------------
>>> ERROR: DDraw error DDERR_INVALIDPARAMS
>>> [ReadDDSSurface | .\Texture.cpp | 240]
---------------------------------------------------------------
ERROR: TextureManager::LoadTexture|ReadDDSSurface (code: -2147024809)
---------------------------------------------------------------
>>> ERROR: Missing texture: ShuttleDBFairing\Habitat1.dds
>>> [TextureManager::AcquireTexture | .\Texture.cpp | 750]
---------------------------------------------------------------

Ive been dealing with this irritating problem for some time now, but Ive never been able to figure out what the cause is exactly, or how to fix it. As far as I can tell, the only thing that sometimes helps is making the texture map smaller when it is UV mapped. I hadnt brought this up until now, but Ive become stuck with it while trying to mesh a cube of all things, & I was hoping that someone could explain it to me.

Thanks in advance :tiphat:
 
What program are you using to export to the DDS and what compression method are you selecting? What is the file size of the DDS file?

(-2147024809 = 0x80070057 = ERROR_INVALID_PARAMETER)
 
What program are you using to export to the DDS and what compression method are you selecting? What is the file size of the DDS file?

(-2147024809 = 0x80070057 = ERROR_INVALID_PARAMETER)

Ive been using Paint dot net for texture editing, and Ive tried both DTX5 and DTX3. For UV mapping I use UVmapper classic.

Im not sure what the size of the DDS file is, but that shouldnt be a problem at only 256x170 should it?
 
that shouldnt be a problem at only 256x170 should it?
That's your problem.

You need to use only power of 2 for sizes of texture dimensions (e.g.: 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048).
 
That's your problem.

You need to use only power of for sizes of texture dimensions (e.g.: 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048).

powers of 2, you mean?

the 256x170 thing wasnt accurate though, I just guessed, since I dont have the file in front of me right now. Do both dimensions of the texture map have to be powers of 2?
 
Didn't I say that? :shrug::P
 
Back
Top