Jump to content

Any way to extract or convert the TEX files from Leadwerks into PNG or other format?


Russell
 Share

Go to solution Solved by Josh,

Recommended Posts

 

I have lost a *.PSD (corrupted file) that I used to generate and change the hair texture of some models. And unfortunately I don't keep the exported PNG to try to recover a provisional version.

Is there any way to convert a *.TEX file with transparency from Leadwerks into a PNG also with transparency?

I want change a blonde hair to red one, but without the psd with the texturemap i can't do it...

Thank you in advance 🙂🙂🙂🙂

 

Link to comment
Share on other sites

  • Solution

Yes, just call LoadPixmap and then use the Save() method to save in PNG. You'll need to load the FreeImage texture loader plugin for saving PNG files.

  • Like 1

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

47 minutes ago, Josh said:

Yes, just call LoadPixmap and then use the Save() method to save in PNG. You'll need to load the FreeImage texture loader plugin for saving PNG files.

Actually, I tried to both compile and decompile a Leadwerks texture with the Ultra API 2 weeks ago and I couldn't get it to work. DDS worked fine so I assumed you didn't allow this to avoid competition with the standard Leadwerks tools. I would need to write an example to demonstrate this.

  • Like 1

Cyclone - Ultra Game System - Component PreprocessorTex2TGA - Darkness Awaits Template (Leadwerks)

If you like my work, consider supporting me on Patreon!

Link to comment
Share on other sites

Loading a tex file as a pixmap and saving as another format should work fine. Ultra does not save .tex files, but I figured people would probably want to convert their tex files into DDS or another format.

  • Like 1

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

3 hours ago, Genebris said:

You could display the texture on screen in Leadwerks and screenshot it. Then make a shader that outputs alpha as black and and white and screenshot that as well 🙃

Yes, i have used this solution to solve my problem. And although it has worked for me. But I have lost quality in the character's hair. Since my original corrupted PSD was somewhat larger in resolution than the screenshot of my screen in FHD.

Anyway, I'm going to keep trying reepblue and Josh solutions, because TEX file has the original resolution i need to recover (larger than the screenshot).

Thank you so much team.

Link to comment
Share on other sites

44 minutes ago, Genebris said:

I think you can also rip texture from memory with RenderDoc

Interesting program... I'll check it, but for now with the screenshot (even if i have lost several quality in the texture) It has worked for me as a temporary solution.

Many thanks Genebris.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...