Jump to content
The Dark Mod Forums

fixnormal - a tool you may or may not find useful


The Watcher

Recommended Posts

While fiddling about making normal maps for materials I ran into the issue where the Lightwave normal map baker plugin generated normal maps with inverted y normal components. Starting up Doom 3 to use renderbump[flat] whenever I want to regenerate a normal map is a pain, so I decided to just write something to fix the files for me (along with writing other tools to help with various things I need regarding normal map manipulation).

 

So, on my thief files page you'll find archives containing a windows binary, a linux binary (should work on any remotely modern distro), and the source for it all if you want to build it yourself or gawk at my code. The idea is that you just run the program on a targa file with inverted y normal components and it'll correct them, it will also check whether the image origin is at the top left, and if it is it'll vertically flip the image so that the resulting TGA has its origin in the bottom left.

 

Works for me, may or may not be useful for you *shrug*

Edited by The Watcher

Quod nesciunt eos interficiet

Link to comment
Share on other sites

While fiddling about making normal maps for materials I ran into the issue where the Lightwave normal map baker plugin generated normal maps with inverted y normal components. Starting up Doom 3 to use renderbump[flat] whenever I want to regenerate a normal map is a pain, so I decided to just write something to fix the files for me (along with writing other tools to help with various things I need regarding normal map manipulation).

 

So, on my thief files page you'll find archives containing a windows binary, a linux binary (should work on any remotely modern distro), and the source for it all if you want to build it yourself or gawk at my code. The idea is that you just run the program on a targa file with inverted y normal components and it'll correct them, it will also check whether the image origin is at the top left, and if it is it'll vertically flip the image so that the resulting TGA has its origin in the bottom left.

 

Works for me, may or may not be useful for you *shrug*

That sounds really useful (although I never had this problem, not doing enough texture work so far :) Thanx!

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

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.

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.

  • Recent Status Updates

    • Petike the Taffer

      I've finally managed to log in to The Dark Mod Wiki. I'm back in the saddle and before the holidays start in full, I'll be adding a few new FM articles and doing other updates. Written in Stone is already done.
      · 0 replies
    • nbohr1more

      TDM 15th Anniversary Contest is now active! Please declare your participation: https://forums.thedarkmod.com/index.php?/topic/22413-the-dark-mod-15th-anniversary-contest-entry-thread/
       
      · 0 replies
    • JackFarmer

      @TheUnbeholden
      You cannot receive PMs. Could you please be so kind and check your mailbox if it is full (or maybe you switched off the function)?
      · 1 reply
    • OrbWeaver

      I like the new frob highlight but it would nice if it was less "flickery" while moving over objects (especially barred metal doors).
      · 4 replies
    • nbohr1more

      Please vote in the 15th Anniversary Contest Theme Poll
       
      · 0 replies
×
×
  • Create New...