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"

Pivot Painter 2.0 RotateAboutAxis

Hey there,

I have a plant which I have the pivots all set up to use the PivotPainter2FoliageShader for the realistic wind simulation. And it works just fine! But I've also set the shader up so that when the player comes close to it, the plant rotates by it's root. When I try to RotateAboutAxis, I get weird results where every element of the plant rotates away from the player, but they stay at it's pivot points.

Plant with Wind effect (using PivotPainter2FoliageShader) alt text

Plant with RotateAboutAxis using custom Pivots alt text

And here's the rotation effect by simply using the ObjectPivot as the Pivot point: alt text

But I don't want to simply use the ObjectPivot to rotate the whole mesh. I'd like to add those secondary rotations to each element on the plant to try and get a better collision effect on the plant. How do I get the other elements in the plant to stay on the main stock of the plant? like this: alt text

Product Version: UE 4.19
plant.jpg (18.5 kB)
plantpivot.jpg (21.2 kB)
plantobjpivot.jpg (17.2 kB)
more ▼

asked Jul 03 '18 at 04:07 PM in Rendering

avatar image

139 14 22 31

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

1 answer: sort voted first

Figured it out. You need to look at the PivotPainter2FoliageShader material function and use the UVs from the "Rebuild the Hierarchy" section.

more ▼

answered Jul 22 '18 at 06:40 PM

avatar image

139 14 22 31

(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