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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Animated interpolation between two textures.

Can this be done with textures in a shader? http://cmm.ensmp.fr/~beucher/interpol/interp5.gif I'm looking to build a planet with animated titonic plates and was thinking the smartest way of doing so is to interpolate between a set of diffuses and normals. because a regular spritesheet would make every frame to low res. I'm ready for this being expensive and I'm only going to render the planet in a skybox to save all power to whatever the solution for the moving plates will be. I even consider making an animated movie of the normal and diffuse and playing them on top of the planet. but Im thinking this interpolation deal is better if its possible. so my question is how would you do it? whats the best solution?

Product Version: UE 4.9
Tags:
more ▼

asked Nov 03 '15 at 09:59 AM in Using UE4

avatar image

Stroganoff
16 2 5 7

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

1 answer: sort voted first

Hello,

You can make blend easily with materials, using a lerp.

alt text alt text alt text

After the setup is done, you can convert the constant plugged in Alpha in parameter and change the value from a blueprint.

01.png (201.0 kB)
02.png (194.1 kB)
03.png (188.4 kB)
more ▼

answered Nov 03 '15 at 02:10 PM

avatar image

Begounet
933 33 27 50

avatar image Stroganoff Nov 27 '15 at 01:42 PM

Yes that's awesome! I tried this method but it dose not accomplish something that looks like the GIF. If I have two textures and put the lerp to 0.5 I get a transparency 0.5 on both textures while in the gif one would warp into the other. The point of the effect was to make it as smooth as a morph or blend shade in 3D transitions. but maybe this is a settings somewhere?

Thanks again :)

avatar image Stroganoff Nov 27 '15 at 02:12 PM

let me illustrate my feelings. it would work with other things that are naturally transparent like particles or clouds but not really continents :/ alt text

untitled-1.jpg (843.7 kB)
avatar image Begounet Nov 27 '15 at 02:21 PM

That is a really specific and detailed animation, I think that will be hard to do that in shader. Will it be okay for you to use MovieTexture ?

Edit : There is still the flow map way but I do not know all the way to make it work. Flow map are a special texture in which you store the direction in which the pixel should move. A typical example is rivers, that follow a direction and move differently near rocks. The flow map can be applied on the diffuse and the normals. However, I think it will be tricky to make this map and I am not sure of the control you can have on it. But it may be a way of search.

avatar image Stroganoff Nov 27 '15 at 02:50 PM

Hello, yes initially I was thinking movie texture as well, I just whanted to chek with you guys if there was a dynamic way :) And I'm only rendering the planet so I guess I can afford movie based textures.

(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