x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Depth Based Blending for Tessellation "Invalid node used in vertex/hull/domain shader input!"

HI guys, I've spent the last few days building on an ocean/coast shader, and i'm trying to make it so that the waves are less intense close to the shore, but get more aggressive and large out at sea. I was planning on using this to produce a heightmap of the water depth. alt text I thought this would work fine, but UE4 kicks up an error when i try to plug anything using "PixelDepth" and "SceneDepth" into the world displacement node. All I can think of is to render the heightmap out as an actual texture and use that in the graph instead, but I was really hoping i could make the entire system work wherever you place it without any setup. Looking around online hasn't given me any form of solutions, so here I am.

Thanks in advance for any help!

Product Version: UE 4.12
Tags:
depthmask.jpg (703.0 kB)
more ▼

asked Aug 11 '16 at 07:05 PM in Using UE4

avatar image

RedIFreeman
6 1 2 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hey, did you ever have any luck finding a solution to this? I'm having the same problem, except I'm using the PrecomputedAOmask function to generate my heightmap/mask, which the world displacement node also doesn't like.

Have you tried using Distance Fields to accomplish what you're doing? I was using distance fields to make some tessellated swamp goo around objects that intersected with the water plane: alt text They worked perfectly for me until I brought in a landscape actor. It seems that the landscapes in Unreal generate some large, fugly, low res distance fields. However, since the mask your generating is large in scale you may have some success?

Try enabling Distance Fields in your project settings and creating a mask on your ocean material with something like this: alt text And make sure to un-tick 'affect distance field lighting' on your ocean mesh.

Or if you've found your own solution let me know!

more ▼

answered Sep 06 '16 at 08:25 PM

avatar image

dadavis1992
13 4 8

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question