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"

How can Absolute World Position be used with Texture Coordinate?

I have created a moving lava texture using a Texture Sample with a Texture Coordinate (for tiling) and a Panner plugged in to the UVs of the Texture Sample.

How can I make it so that the moving texture always tiles in world space? The only answer I found was using Absolute World Position as the input to the UVs of the Texture Sample. But I can't find a way to use BOTH the Texture Coordinate and the Absolute World Position.

Perhaps there is a different way of doing this that I'm not aware of.

Thanks

Product Version: UE 4.11
Tags:
more ▼

asked May 23 '16 at 09:29 AM in Using UE4

avatar image

Spergolas
8 1 2 4

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

First of all, you should have mentioned you are distorting your UV's, that would have made things more clear. There you go

You dont need the texture coordinate node with this setup, just change the U and V scalar parameters to a value you want. (change the component mask next to the " Abs. world location node" to RG instead of RB)

more ▼

answered May 23 '16 at 12:37 PM

avatar image

Luos
9.2k 283 63 328

avatar image Spergolas May 23 '16 at 12:42 PM

Thank you Luos! I'll try it and let you know. Cheers

avatar image Spergolas May 23 '16 at 02:02 PM

IT WORKS! Thank you so much! Sorry about not mentioning I was distorting the texture. I'm new to this. You saved my life. Cheers!

avatar image Luos May 23 '16 at 02:15 PM

Glad it works :)

Good luck with it all, and be sure to set my answer as " answered"

(comments are locked)
10|2000 characters needed characters left

https://forums.unrealengine.com/showthread.php?89524-Material-Function-World-Aligned-Texture-Normal-With-offset-amp-Rotation < that can help.

but you could basically just multiply the TCoordinate with an absolute world position.

more ▼

answered May 23 '16 at 11:36 AM

avatar image

Luos
9.2k 283 63 328

avatar image Spergolas May 23 '16 at 12:22 PM

Hi Luos. Thanks for the reply. I tried multiplying the Absolute World Position with the Texture Coordinate before i plugged it into the UVs of the Texture Sample but that gave me a strange result.

Here is a screenshot of the material.

How can I implement the Absolute World Position with this? alt text

lava_material.jpg (296.1 kB)
(comments are locked)
10|2000 characters needed characters left
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