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"

SpeedTree: Wind + Tesselation + Instancing = SM5 Error?

Hello everyone,

This is my very first question, so please forgive me if I do something wrong. I have searched before posting and did not find anything similar so far. I have bought SpeedTree the day before and have to say it is amazing, but I have come across one problem that I could not get rid of so far.

It seems like when using the "SpeedTree" node for wind and LOD transition plus tesselation together on instanced meshes, the material breaks. I would like to have my trees being paintable as instanced foliage, where the LOD0 is using tesselation on some areas of the trunk to higher the detail when viewed close range. However, this results in the following compiler errors:

Error [SM5] FlatTessellation.usf(129,2-33): warning X3554: unknown attribute partitioning, or attribute invalid for this statement, valid attributes are: domain

Error [SM5] FlatTessellation.usf(129,34-64): warning X3554: unknown attribute outputtopology, or attribute invalid for this statement, valid attributes are: domain

Error [SM5] DebugviewModeVertexShader.usf(68,26-56): error X3504: array index out of bounds

Here is a simplified material where I have removed everything that is not needed:

alt text

As soon as I remove the SpeedTree node or take away the tesselation and/or displacement, the material compiles. Well, there is not much left then anyways :)

One important thing to mention here is that the exact same material works on static mesh actors. However, as soon as "Use with instanced static meshes" is ticked, it errors out.

Could it be that the VertexNormalWS somehow collides with the SpeedTree node, which is responsible for vertex transformation? Did anyone encounter a similar problem?

Thank you very much for your help!

Product Version: UE 4.14
more ▼

asked Dec 22 '16 at 03:33 PM in Using UE4

avatar image

41 1 3 1

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

1 answer: sort voted first

Yep, got the same problem. I think you can not have tesselation and ST on foliage at once. Don`t know if that was the case before because I am using it for a couple of weeks now.

more ▼

answered Jan 14 '17 at 04:59 AM

avatar image

66 6 11 15

(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