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"

Can't get rotated UVs to work properly with BumpOffset

Parallax On, no rotation: Parallax On

Parallax Off, no rotation: Parallax Off

Parallax On, rotated: Parallax Rotated

In the I changed the Parallax Depth value from 0.02 to 0.1 to exaggerate the problem.

This is my UV rotation setup: UV Rotation Setup

The RemapValue node is there so that instanced materials can set a rotation in degrees ranging from 0 to 360 instead of 0 to 1.

This is my BumpOffset setup: BumpOffset Setup

The UV result from the BumpOffset node are going into the UV slot of the Base Color, Emission, Normal texture samples and my own Multi Texture sampler.

Any suggestions to whats going wrong, or is BumpOffset/Parallax simply not possible with rotated UVs?

Product Version: UE 4.15
Tags:
more ▼

asked Jun 01 '17 at 06:29 PM in Rendering

avatar image

n2k
46 5 9 15

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

1 answer: sort voted first

Had the exact same problem and have been trying to solve it myself for a couple of days. Finally came up with a solution.

Not an expert, so I don't know the specifics and can't explain it well, but I think the problem occurs because the Bump Offset node's tangent space is rotated, which distorts it.

The solution is to simply do the rotation after the Bump Offset node is calculated. This way it only rotates the actual UV data that the BO node outputs.

Basically:

  1. Feed the rotated UV data into the Heightmap used for the BO node.

  2. Feed the unrotated UV data into the "Coordinate" input on the Bump Offset.

  3. Do another rotation, now of the UV data that the BO node outputs.

I've attached an image that shows the basic setup.

screenshot_304.png (156.4 kB)
more ▼

answered Aug 02 '17 at 03:14 AM

avatar image

Thavralex
137 7 2 4

(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