Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Texture Map Generation Tool - Open Source

Discussion in 'Works In Progress - Archive' started by vatara, Apr 8, 2015.

  1. vatara

    vatara

    Joined:
    Feb 26, 2010
    Posts:
    22
    Hi everyone,

    I've created a tool in Unity to generate height/normal/metallic/occlusion maps from a texture. It's pretty basic but functional at this point. It is open source and I'm open to suggestions and/or pull requests.

    https://github.com/vatara/unity-texture-tool

     
    moure, Kirbyrawr, Paulohmm and 2 others like this.
  2. Kirbyrawr

    Kirbyrawr

    Joined:
    Jul 23, 2012
    Posts:
    945
    Hi there, interesting tool, from what i see is a runtime script and not a editor script, am i wrong?

    Cheers and thanks for share, i will try to contribute to it ^ ^!
     
  3. vatara

    vatara

    Joined:
    Feb 26, 2010
    Posts:
    22
    Thanks! Right, it can be completely stand-alone, I just haven't built an .exe yet.
     
  4. Kirbyrawr

    Kirbyrawr

    Joined:
    Jul 23, 2012
    Posts:
    945
    Oh that's more interesting, i was thinking in do a version for the editor aswell, it would be cool, so you can have an exe for generate them and a tool in the editor for see the results ingame.

    Thanks again!
     
  5. vatara

    vatara

    Joined:
    Feb 26, 2010
    Posts:
    22
    I don't have much experience with Editor scripts, but I'm sure this could work in the editor, you would just have to recreate the UI. Basically all it's doing is RenderTextures using some shaders.
     
    Kirbyrawr likes this.
  6. Kirbyrawr

    Kirbyrawr

    Joined:
    Jul 23, 2012
    Posts:
    945
    I can try to do it, i have a lot of experience with editors that's why i love them hah!

    Cheers!
     
  7. Arkade

    Arkade

    Joined:
    Oct 11, 2012
    Posts:
    653
    Oooh, runtime is *waaaay* more interesting! Can anyone say "user-generated content uploading" ? :-D
     
    Kirbyrawr likes this.
  8. SAOTA

    SAOTA

    Joined:
    Feb 9, 2015
    Posts:
    220
    @vatara . its ddutchie from github. will download the updated shader later today. And try on mac. have a look at my version here. (note these are cpu processed scripts running on an iphone 5s)

    Let me know if you would like to collaborate.