Search Unity

Shader Forge - A visual, node-based shader editor

Discussion in 'Assets and Asset Store' started by Acegikmo, Jan 11, 2014.

  1. Martin_H

    Martin_H

    Joined:
    Jul 11, 2015
    Posts:
    3,842
    Afaik that is correct. At least not officially and by the main dev, who knows what others will do now that it's open source. Don't count on it.
     
  2. synapsemassage

    synapsemassage

    Joined:
    Jul 27, 2009
    Posts:
    333
    For some time now Shader Forge is deprecated/not supported anymore. Alternatively you can use Amplify Shader Editor or Unity's own Shader Graph. Both are good choices although Shader Graph might be not mature enough in some situations but it is growing.
     
  3. Cactus_on_Fire

    Cactus_on_Fire

    Joined:
    Aug 12, 2014
    Posts:
    471
    its abandoned for over a year now
     
  4. Cactus_on_Fire

    Cactus_on_Fire

    Joined:
    Aug 12, 2014
    Posts:
    471
    Shader forge fans haven't gone anywhere though apparently :)
     
  5. Invertex

    Invertex

    Joined:
    Nov 7, 2013
    Posts:
    894
    ShaderForge has been frequently updated by people, all you have to do is look at the Network graph on the Git.

    https://github.com/FreyaHolmer/ShaderForge/network

    Few users have updated it to 2018.3 and even later.
     
    NeatWolf, Cactus_on_Fire and Martin_H like this.
  6. Martin_H

    Martin_H

    Joined:
    Jul 11, 2015
    Posts:
    3,842
    Don't think I classify as "fan", I just had notifications still activated for this thread, so I replied when a question came up.


    Good to know and props to them for keeping it alive! What I meant is you can't count on people keeping it compatible forever, so it would imho be unwise to rely on it.
     
  7. mangax

    mangax

    Joined:
    Jul 17, 2013
    Posts:
    275
    i think it may went as open source, i think your better off using alternative solutions.
     
  8. Cactus_on_Fire

    Cactus_on_Fire

    Joined:
    Aug 12, 2014
    Posts:
    471
    Unity shader graph is the same thing as SF anyway, even more capable. Better switch to that.
     
  9. Quatum1000

    Quatum1000

    Joined:
    Oct 5, 2014
    Posts:
    722
    Thanks, but is SF only for hdrp?
     
  10. Invertex

    Invertex

    Joined:
    Nov 7, 2013
    Posts:
    894
    If you mean ShaderGraph (not ShaderForge), Shadergraph only supports the new pipelines, LWRP/HDRP. For the regular old Unity shader pipeline then you want to use ShaderForge or Amplify from the asset store.
     
  11. Quatum1000

    Quatum1000

    Joined:
    Oct 5, 2014
    Posts:
    722
    Okay.. thank you all
     
  12. AcornBringer

    AcornBringer

    Joined:
    Mar 22, 2015
    Posts:
    61
    Could someone help me out with this shader I'm trying to make?



    I'd like to get this shader to keep the texture the same size despite the object's scale and rotation but I'm not sure what to do about this stretching that happens when I do a non-uniform scale.

    Here's the shader forge nodes:



    Any help would be appreciated :)
     
  13. SeveredScion

    SeveredScion

    Joined:
    Oct 16, 2012
    Posts:
    45
    The stretching is caused by the UV coordinates of the geometry, not by the shader. That is typical and standard behavior. In order for that not to happen, you'd have to compensate for UV distortion in the shader, by scaling the UVs on the same axis and to the same multiplier as the geometry to which it is applied. Not sure offhand exactly how to do that. Basically you would need a node or a bit of code that passed the UVs through a multiplier that was tied to the objects scale. But it would be pretty tricky for things like rotated objects, local v. global orientation, etc. I advise against trying to compensate in a shader for something that is standard 3D object behavior.
     
  14. AcornBringer

    AcornBringer

    Joined:
    Mar 22, 2015
    Posts:
    61
    Okay then. I better not continue that way. I'm trying the triplanar mapping method now from this thread:

    http://neatcorporation.com/forums/viewtopic.php?t=8

    The thread is missing a lot of content so I can't quite gather how they are avoiding distortion while rotating.



    Any idea?
     
  15. Marco-Sperling

    Marco-Sperling

    Joined:
    Mar 5, 2012
    Posts:
    568
    You'd have to do the triplanar mapping in object space instead of world space. That should help to get rid of the strange layering effect, I think.
     
  16. AcornBringer

    AcornBringer

    Joined:
    Mar 22, 2015
    Posts:
    61
    I tried replacing the World Pos. node with the Object Pos. node (I think that's what you mean) but the texture does not display properly. It just shows soled colors on any given face. Maybe there's another step to take?

    Edit: I just realized the transform node will do that I believe. Unfortunately, using a transform world to local node after the World Pos. node causes stretching when scaled and the textures are still overlapping when the object is rotated.
     
    Last edited: Aug 30, 2019
  17. SeveredScion

    SeveredScion

    Joined:
    Oct 16, 2012
    Posts:
    45
    Hm not sure offhand how to get it working and don't have time to dissect. But yes in general, for the effect you're looking for, the way to go is not UV-dependent textures but a "projected" texture based on object space (or world space sometimes but based on the reply above it sounds like that's not a good idea here).
     
  18. AcornBringer

    AcornBringer

    Joined:
    Mar 22, 2015
    Posts:
    61
    Someone on Twitter was gracious enough to help me through this and he came up with the solution. A material which tiles as the object is scaled any which way and maintains an object space texture projection when rotated or moved:



    It's essentially the triplanar shader from that thread I posted earlier but with world space being transformed into local space and multiplied with the object scale. The Normal Dir. is also transformed from world to local space and then normalized.

    Edit: Optionally you can remove the Object Pos. and the Subtract node at the beginning to keep the texture mapping locked to world space when translating the object.

    Thanks for your suggestions as well and take care!
     
    Last edited: Aug 31, 2019
  19. coslor

    coslor

    Joined:
    Jun 19, 2017
    Posts:
    3
    Folks, I know that SF is discontinued, and thus we no longer have any support, but...the Wiki is broken. Is this expected?

    If so, is there any way to export it to another location, so that knowledge isn't permanently lost?

    If not, is there a way to get hold of whoever is maintaining the Web site and Wiki? Is it still Acegikmo?

    Just in case The Powers that Be do see this, the error message is:

    [e2cec6db] /shaderforge/wiki/index.php?title=Main_Page Exception from line 212 of /customers/1/c/4/acegikmo.com/httpd.www/shaderforge/wiki/includes/Hooks.php: Detected bug in an extension! Hook efSyntaxHighlight_GeSHiSetup has invalid call signature; Parameter 1 to efSyntaxHighlight_GeSHiSetup() expected to be a reference, value given
     
    AcornBringer likes this.