[OPTing] texture limits

Need help editing the game? Check for help here!

Moderators: Darksaber, General_Trageton, Forceflow

Re: [OPTing] texture limits

User avatar
Warb_Null
Cadet 3rd Class
XWAU Member
Posts: 38
Joined: Tue May 15, 2018 6:49 pm

Post by Warb_Null » Wed Aug 08, 2018 11:31 am

I have a question.
I have a model of a fighter with a transparent canopy that keeps crashing the game.
I narrowed it down to the canopy being the cause. When i delete the canopy everything is fine. When i apply a BMP texture to the canopy everything is fine. When i apply a PNG texture it crashes the game. I tried using the canopy texture from the A-wing, stil crashing.
The pilots goggles also have a transparrent PNG but this causes no problem.

JeremyaFr
Lieutenant
XWAU Member
Posts: 851
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Thu Aug 09, 2018 7:20 pm

Hello,
When a PNG image is imported, it is loaded as a 32-bit texture. You need to convert it to 8-bit by clicking on "Convert All to 8 bits".

User avatar
Warb_Null
Cadet 3rd Class
XWAU Member
Posts: 38
Joined: Tue May 15, 2018 6:49 pm

Post by Warb_Null » Thu Aug 09, 2018 9:01 pm

I did that but it still crached :(
I think it mhas something to do with the mesh. I remade the canopy with a lower facecount and that seemed to resolve it. No more crash :)
Could there be a different limit for face number when using tranparency?
Anyway, it's resolved now. Thanks for the help.

JeremyaFr
Lieutenant
XWAU Member
Posts: 851
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Fri Aug 10, 2018 3:42 pm

I'm able to reproduce the crash.
You're right. The game crashes when a mesh with a high face count has a transparent texture.

JeremyaFr
Lieutenant
XWAU Member
Posts: 851
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Fri Aug 31, 2018 7:37 pm

UPDATE

Hello,
I've include the 'triangling to infinity' patch to the opt limit hook.

Please redownload xwa_hook_opt_limit.zip

Post Reply