Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (SBGuy), 652 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Can't Create DirectX Texture #460324
06/25/16 04:54
06/25/16 04:54
Joined: May 2005
Posts: 868
Chicago, IL
Dooley Offline OP
User
Dooley  Offline OP
User

Joined: May 2005
Posts: 868
Chicago, IL
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?

Re: Can't Create DirectX Texture [Re: Dooley] #460330
06/25/16 09:20
06/25/16 09:20
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
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

Last edited by Ch40zzC0d3r; 06/25/16 09:20.
Re: Can't Create DirectX Texture [Re: Ch40zzC0d3r] #460332
06/25/16 10:12
06/25/16 10:12
Joined: May 2005
Posts: 868
Chicago, IL
Dooley Offline OP
User
Dooley  Offline OP
User

Joined: May 2005
Posts: 868
Chicago, IL
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!

Last edited by Dooley; 06/25/16 10:12.
Re: Can't Create DirectX Texture [Re: Dooley] #460333
06/25/16 10:48
06/25/16 10:48
Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
txesmi Offline
Serious User
txesmi  Offline
Serious User

Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
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!

Re: Can't Create DirectX Texture [Re: txesmi] #460339
06/25/16 19:21
06/25/16 19:21
Joined: May 2005
Posts: 868
Chicago, IL
Dooley Offline OP
User
Dooley  Offline OP
User

Joined: May 2005
Posts: 868
Chicago, IL
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...


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1