tipforeveryone Posted June 30, 2016 Share Posted June 30, 2016 Some textures which I found from workshop have no source image files therefore I can't modify or make normal map for them. My trick is open tex files in Leadwerks > maximize texture editor window > Print screen > Paste screenshot to Gimp > Edit, save. But this is only good for textures below 512 x 512, above 1024 x 1024 can't be zoomed big enough to do this trick. Is there any tool or method too get images from tex files Quote Link to comment Share on other sites More sharing options...
thehankinator Posted June 30, 2016 Share Posted June 30, 2016 Do you have Professional Edition? If so you can write a program to that uses Texture::GetPixels() to get a buffer containing the image (I assume in RGBA byte format), then you could dump it to a PNG using an image library like lodepng Quote Link to comment Share on other sites More sharing options...
tipforeveryone Posted June 30, 2016 Author Share Posted June 30, 2016 Thanks for your reply. Glad to know that it is possible to solve my problem. Yes I have Professional Edition but most of time I use Lua instead of Cpp, so that my knowledge about using Cpp and library stuff is kind of low. Hehe hope someone will make this feature, it should be useful Quote Link to comment Share on other sites More sharing options...
thehankinator Posted June 30, 2016 Share Posted June 30, 2016 I can do it, I've been meaning to for myself anyway. 1 Quote Link to comment Share on other sites More sharing options...
tipforeveryone Posted June 30, 2016 Author Share Posted June 30, 2016 Great !! This should be an useful tool like blender export addon, I am looking forward Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.