Announcement

Collapse
No announcement yet.

cannot use Custom node code with tessellation while it works when plugging only at diffuse

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    cannot use Custom node code with tessellation while it works when plugging only at diffuse

    So, I am trying to get a custom node working with tessellation, and although I searched through google, I cannot seem to get this working.
    I am getting errors al over and just don't get what to do with it...the code works when I plug into diffuse or spec only.

    Any help would be very helpful. (or an alternative way to do loops within the material editor)


    regards! Tom

    (i disabled the loop to check where this goes wrong...)

    float3 uvs = worldposition / tile;
    /*
    uvs += vertexnormalws * 0;
    float3 _hold = Texture2DSample(txt, txtSampler, uvs.rg);
    float3 _prevhold = _hold;

    for(int i = 0; i < counter; i++){
    uvs += vertexnormalws * -(i*(1/counter));
    _hold = max(_hold, Texture2DSample(txt, txtSampler, uvs.rg));

    }
    */

    return Texture2DSample(txt, txtSampler, uvs.rg);


    Click image for larger version

Name:	Capture.PNG
Views:	1
Size:	329.8 KB
ID:	1224435

    #2
    Hi there,
    my deepest apologises to bump this one time. I am really eager to see if this is solvable or not and hopes that someone who just missed this post could shine some light on it.

    Summary: I am trying to use Texture2dSample code inside the custom node block with tessellation. That seems to throw these errors.

    Comment


      #3
      Well, so far bottomline is that you can't use custom node, plugged into tessellation-related pins. https://issues.unrealengine.com/issue/UE-23906

      Comment


        #4
        Originally posted by Deathrey View Post
        Well, so far bottomline is that you can't use custom node, plugged into tessellation-related pins. https://issues.unrealengine.com/issue/UE-23906
        bummer, I guess, I have to put the iteration nodes manually then in the editor.

        Comment

        Working...
        X