Can't Create DirectX Texture

Posted By: Dooley

Can't Create DirectX Texture - 06/25/16 04:54

I was modifying the script on my level, which was running nice and stable. Suddenly, it started giving me this "Can't Create DirectX Texture" error. I didn't add any new models or textures, so I'm thinking it's something I did with the script.

Has anyone encountered this? Any ideas?
Posted By: Ch40zzC0d3r

Re: Can't Create DirectX Texture - 06/25/16 09:20

Happened for me when my game used too much RAM, e.g. loading too big levels or too many entities or too big skins.
Try increasing the nexus
Posted By: Dooley

Re: Can't Create DirectX Texture - 06/25/16 10:12

Thanks!

Yeah, I think I got it. It was using ent_morph randomly on some of the entities. It usually came out okay, which was why it seemed to work. However, it seems it occasionally tried to load too many different entities, and that's when it would cause the crash.

The real problem was that my normal maps were way too big, so I reduced them from 2048 down to 512 and it works fine.

I've got a lot of optimizing to do!
Posted By: txesmi

Re: Can't Create DirectX Texture - 06/25/16 10:48

When resizing normalmaps you need to normalize each described vector because image editing programs does not take into account that resulting colors should describe unit vectors when decompressed and this issue can generate weird artifacts.

Salud!
Posted By: Dooley

Re: Can't Create DirectX Texture - 06/25/16 19:21

So the best way would be to re-bake the normal map from the model at a smaller size?

So far, I just re-sized in Photoshop and they seem to work fine. However, it's just a cave wall, without a ton of detail, so perhaps on a more detailed model/texture it would create other problems...
© 2024 lite-C Forums