# How to scale Render Target Fluid Simulation?

**URL:** <https://forums.unrealengine.com/t/how-to-scale-render-target-fluid-simulation/394122>\
**Category:** Rendering\
**Tags:** Water, wave, unreal-engine, fluid, render-target, question\
**Created:** [May 20, 2017, 5:58pm UTC](https://forums.unrealengine.com/t/how-to-scale-render-target-fluid-simulation/394122 "2017-05-20T17:58:57Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![marvelmaster](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@marvelmaster](https://forums.unrealengine.com/u/marvelmaster)\
**Post date:** [May 20, 2017, 5:58pm UTC](https://forums.unrealengine.com/t/how-to-scale-render-target-fluid-simulation/394122/1 "2017-05-20T17:58:57Z")

</div>

Hi,

I am trying to use the Render Target fluid Simulation for my Game…

 ![138552-what+i+want.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/f/6/0f6370aca39c06cdf45151aef0a060959a65367b.jpeg)

Unfortunately the Square is rather small and I need it bigger.  
But scaling that square also makes the waves much bigger…see pic:

 ![big plane.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/e/1/e1119ac8be76d35d760dea0d5ee3f9bb849af94e.jpeg)

Tiling the uvs Copys the waves ☹ same goes with copy the blueprint into to worldsee pic

 ![4 planes.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/e/8e404f4f07ce9f66cbd6861af3ce463854341b79.jpeg)

I also tried to make a bigger high poly plane…but with that it completely stops working ☹

I Realy hope somebody can help PLAESE

---

<div class="post-metadata">

**Author:** ![zombiethatatehimself](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zombiethatatehimself](https://forums.unrealengine.com/u/zombiethatatehimself)\
**Post date:** [August 15, 2017, 3:14am UTC](https://forums.unrealengine.com/t/how-to-scale-render-target-fluid-simulation/394122/2 "2017-08-15T03:14:39Z")

</div>

The mesh size is set in the blueprint event graph, it’s the divide node (see pic). In the content examples for 415 the mesh is 1000x1000 so the divisor is 1000, this converts to texture space for the material. For other size meshes add the mesh to the blueprint and put is size in the divisor.

 ![204403-rtwatersurfacebp.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/6/1/661980ab923ecbf6b20bd9d335773bddaf0cf0f4.jpeg)

---

<div class="post-metadata">

**Author:** ![marvelmaster](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@marvelmaster](https://forums.unrealengine.com/u/marvelmaster)\
**Post date:** [August 15, 2017, 8:05pm UTC](https://forums.unrealengine.com/t/how-to-scale-render-target-fluid-simulation/394122/3 "2017-08-15T20:05:46Z")

</div>

gonna try that thanks so far

---

<div class="post-metadata">

**Author:** ![DavidOConnor](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/davidoconnor/32/978533_2.png) [@DavidOConnor](https://forums.unrealengine.com/u/DavidOConnor)\
**Post date:** [October 10, 2017, 5:58pm UTC](https://forums.unrealengine.com/t/how-to-scale-render-target-fluid-simulation/394122/4 "2017-10-10T17:58:24Z")

</div>

Just like Marvelmaster, I’ve also been working with this example… I’ve been trying to get this example to work on a much bigger plane.

Zombiethatatehimself’s suggestion to modify the divisor DOES work, but there is a problem:

- if you export the small plane as an FBX
- scale it up in 3ds Max (say, by a factor of 10)
- reimport it
- increase the divisor (also by a factor of 10)

The problem is, that waves are now scaled by 10 also. I’ve tried using custom high poly planes (with the divisor scaled appropriately), but strangely only the original plane seems to work properly (as itself, or an FBX).

Can anyone help please?

---

<div class="post-metadata">

**Author:** ![zombiethatatehimself](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zombiethatatehimself](https://forums.unrealengine.com/u/zombiethatatehimself)\
**Post date:** [October 10, 2017, 9:39pm UTC](https://forums.unrealengine.com/t/how-to-scale-render-target-fluid-simulation/394122/5 "2017-10-10T21:39:08Z")

</div>

Try adding these to the blueprint Event Graph,  
Static mesh\>get local bounds=max\>break vector\>divisor. Here (pic1)

 ![216291-watersurfacebpeg1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/b/6/5b69d0c57db89f9d1862255f92f118bf5439c342.jpeg)

and here (pic2)

 ![216292-watersurfacebpeg2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/9/9/299e568e2e89df6925403baf34e558835b08fc28.jpeg)

To set the forcesplat add two variables, brush size and brush strength (make these editable). Then set this up like (pic3)

 ![216293-setparabrush.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/8/b/c8b513c303ef388c0fbd4ffb524e3f37ef181063.jpeg)

You can then scale mesh plus set the brush size and strength.

---

<div class="post-metadata">

**Author:** ![DavidOConnor](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/davidoconnor/32/978533_2.png) [@DavidOConnor](https://forums.unrealengine.com/u/DavidOConnor)\
**Post date:** [October 11, 2017, 12:46pm UTC](https://forums.unrealengine.com/t/how-to-scale-render-target-fluid-simulation/394122/6 "2017-10-11T12:46:57Z")

</div>

Zombiethatatehimself… thank you for your excellent, detailed reply. It’s working… and the effect looks so beautiful! 🙂

I’m still working on figuring out a couple of things that are puzzling me. I’ll play with it for a while, see if I can figure things out by myself. If not, I’ll post here and hopefully you (or someone) will have time to respond. Thanks for your help mate! 🙂

---

<div class="post-metadata">

**Author:** ![marvelmaster](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@marvelmaster](https://forums.unrealengine.com/u/marvelmaster)\
**Post date:** [November 1, 2017, 11:19pm UTC](https://forums.unrealengine.com/t/how-to-scale-render-target-fluid-simulation/394122/7 "2017-11-01T23:19:17Z")

</div>

unfortunately it does not work for me…can somebody give example values for a 5x5 scaled plane`?

3rd person btw

---

<div class="post-metadata">

**Author:** ![zombiethatatehimself](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zombiethatatehimself](https://forums.unrealengine.com/u/zombiethatatehimself)\
**Post date:** [November 2, 2017, 3:13pm UTC](https://forums.unrealengine.com/t/how-to-scale-render-target-fluid-simulation/394122/8 "2017-11-02T15:13:55Z")

</div>

Are you using the mesh from the content examples, if not check that your mesh is dense enough.

---

<div class="post-metadata">

**Author:** ![DavidOConnor](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/davidoconnor/32/978533_2.png) [@DavidOConnor](https://forums.unrealengine.com/u/DavidOConnor)\
**Post date:** [November 2, 2017, 4:04pm UTC](https://forums.unrealengine.com/t/how-to-scale-render-target-fluid-simulation/394122/9 "2017-11-02T16:04:08Z")

</div>

I struggled with this for a few days and I think I managed to get a swimming-pool sized reactive ripple effect. I’m not sure why, but only the original mesh ever worked for me. Sorry I’m not more helpful.

---

<div class="post-metadata">

**Author:** ![zombiethatatehimself](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zombiethatatehimself](https://forums.unrealengine.com/u/zombiethatatehimself)\
**Post date:** [November 2, 2017, 5:52pm UTC](https://forums.unrealengine.com/t/how-to-scale-render-target-fluid-simulation/394122/10 "2017-11-02T17:52:42Z")

</div>

Example 1 the scale is set to 1. Example 2 the scale is set to 3.

 ![218838-bpwaterscale1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/9/4/594fb5030d600e95b28e7bbec160b77496927914.jpeg)

 ![218839-bpwaterscale3.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/8/2/a82604dbbea9e3bbca1eb90a9c297fd60a6564de.jpeg)

Note the bp input is set to player 0 (if you don’t set this you will have no force splat).  
Also the mesh needs to be dense with thousands of triangles (check wireframe view), a quad with 4 verts will not be sufficient.

---

<div class="post-metadata">

**Author:** ![marvelmaster](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@marvelmaster](https://forums.unrealengine.com/u/marvelmaster)\
**Post date:** [November 2, 2017, 7:45pm UTC](https://forums.unrealengine.com/t/how-to-scale-render-target-fluid-simulation/394122/11 "2017-11-02T19:45:42Z")

</div>

unfortunately I think it does not work that way…when scaled the waves are much bigger spread…the point splash might have the right scale but the resulting waves are huge…  
Maybe it depends on the texture size…but looks like the is not goot solution for me :(…best would be if you can snap these planes togehter and they form a new plane but this does not work either ☹  
I wanted a 100x100meters plane with small waves ☹

---

<div class="post-metadata">

**Author:** ![zombiethatatehimself](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zombiethatatehimself](https://forums.unrealengine.com/u/zombiethatatehimself)\
**Post date:** [November 2, 2017, 9:46pm UTC](https://forums.unrealengine.com/t/how-to-scale-render-target-fluid-simulation/394122/12 "2017-11-02T21:46:51Z")

</div>

If you look at the details panel of the example you will see the two variables that I added to the blueprint, Brush size and Brush strength. Scaling up the mesh will also make the force splat scale up, so the brush size will need to be set to a smaller value, but the brush strength will need to be set to a higher value.

---

<div class="post-metadata">

**Author:** ![marvelmaster](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@marvelmaster](https://forums.unrealengine.com/u/marvelmaster)\
**Post date:** [November 4, 2017, 4:34am UTC](https://forums.unrealengine.com/t/how-to-scale-render-target-fluid-simulation/394122/13 "2017-11-04T04:34:46Z")

</div>

yes…does not work…at a certain brush size the plane is just a mess of pixels

---

<div class="post-metadata">

**Author:** ![zombiethatatehimself](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zombiethatatehimself](https://forums.unrealengine.com/u/zombiethatatehimself)\
**Post date:** [November 4, 2017, 6:12pm UTC](https://forums.unrealengine.com/t/how-to-scale-render-target-fluid-simulation/394122/14 "2017-11-04T18:12:31Z")

</div>

The water effect works in texture space, it’s limited by the render target resolution. A 1000x1000 render target texture on a 1000x1000 unit mesh will give you 1 pixel per unit in the world. If scaling the mesh up to lets say 5000x5000 will result in 1 pixel per 5 units in the world. This is why you lose detail. The force splat draws in texture space also, this i why it scales up when you scale the mesh up.  
For a larger effect you would need to increase the render target texture resolution and increase the plane mesh density.

---

<div class="post-metadata">

**Author:** ![BurningSky](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BurningSky](https://forums.unrealengine.com/u/BurningSky)\
**Post date:** [December 1, 2017, 9:15pm UTC](https://forums.unrealengine.com/t/how-to-scale-render-target-fluid-simulation/394122/15 "2017-12-01T21:15:34Z")

</div>

I worked with that today and if you don‘t need that displacement and the normal is enough for you I have a solution to present.

[![]( " - YouTube") ](https://www.youtube.com/watch?v=SWB4_ZWUApw)

just ignore those mmo noises xD

that white square at the end is the original 1x1x1 size the whole plane is 20x20x20 and can basically be as large as you want it

if you are interested I‘ll post the answer tomorrow

---

<div class="post-metadata">

**Author:** ![marvelmaster](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@marvelmaster](https://forums.unrealengine.com/u/marvelmaster)\
**Post date:** [December 3, 2017, 9:03am UTC](https://forums.unrealengine.com/t/how-to-scale-render-target-fluid-simulation/394122/16 "2017-12-03T09:03:08Z")

</div>

The waves are much too big…if you get them stronger but smaller it would be nice 😕  
Like this:

> <https://twitter.com/marvelmaster87/status/861353778615857152?s=09>

---

<div class="post-metadata">

**Author:** ![BurningSky](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BurningSky](https://forums.unrealengine.com/u/BurningSky)\
**Post date:** [December 3, 2017, 10:59am UTC](https://forums.unrealengine.com/t/how-to-scale-render-target-fluid-simulation/394122/17 "2017-12-03T10:59:22Z")

</div>

The size is no problem I can fix that further. If you upload a small pack of that link example I could adjust everything perfectly for you.

---

<div class="post-metadata">

**Author:** ![DavidOConnor](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/davidoconnor/32/978533_2.png) [@DavidOConnor](https://forums.unrealengine.com/u/DavidOConnor)\
**Post date:** [December 3, 2017, 1:42pm UTC](https://forums.unrealengine.com/t/how-to-scale-render-target-fluid-simulation/394122/18 "2017-12-03T13:42:37Z")

</div>

hi Burning Sky… it looks really useful for my purposes… if you’d like to post a solution, I’m super-interested 😃

---

<div class="post-metadata">

**Author:** ![marvelmaster](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@marvelmaster](https://forums.unrealengine.com/u/marvelmaster)\
**Post date:** [December 3, 2017, 7:35pm UTC](https://forums.unrealengine.com/t/how-to-scale-render-target-fluid-simulation/394122/19 "2017-12-03T19:35:23Z")

</div>

So I Posted a Water Project…please try make it 10x10 or 100x100 by saving the same Wavescale

 ![222405-water.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/f/4/0f474da0150a0a47ee2d13223b41f428cf30e1d5.jpeg)

> **[Telekom Login](https://accounts.login.idm.telekom.com/oauth2/auth?client_id=10LIVESAM30000004901NEXTMAGENTACLOUD0000&response_type=code&scope=openid%2Bemail%2Bprofile&redirect_uri=https%3A%2F%2Fmagentacloud.de%2Fapps%2Fuser_oidc%2Fcode&claims=%7B%22id_token%22%3A%7B%22urn%3Atelekom.com%3Aall%22%3Anull%7D%2C%22userinfo%22%3A%7B%22urn%3Atelekom.com%3Aall%22%3Anull%7D%7D&state=1MRYY51OYWK42A3P72OJBX5AS8Y1BTBF&nonce=X1SMGZ3CZGS28HGH8CV0E8CISATI1A53)**
>
> Speichern Sie Ihre Fotos, Videos, Musik und Dokumente in der MagentaCLOUD und greifen Sie mit PC, Smartphone oder Tablet immer auf den aktuellen Stand zu.\<br/\> \<br/\>- Bewahren Sie Erinnerungen sicher auf.\<br/\>- Teilen Sie besondere Momente mit...

---

<div class="post-metadata">

**Author:** ![BurningSky](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BurningSky](https://forums.unrealengine.com/u/BurningSky)\
**Post date:** [December 3, 2017, 8:17pm UTC](https://forums.unrealengine.com/t/how-to-scale-render-target-fluid-simulation/394122/20 "2017-12-03T20:17:35Z")

</div>

This isn’t final and needs more tweaking and work to be perfect but it’s a start.

I took the render target resolution x4 to have some space to fade out.  
I recommend going at least with a 1024x1024 res.

Now go into the “ForceSplat” material where you change the “ForceStrength” section to this.  
This isn’t necessary but it’s going to make scaling the render target resolution and testing a bit easier.

We get the number of pixels in the render target and divide that by the number of pixels in the standard render target 256x256 to get how many times a 256x256 texture would fit into our new render target size and multiply this by the “ForceStrength” so the waves follow you smooth.

 ![222398-force-splat.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/2/d/92df8c6e0e0da0a56444d1754611dcefe31f66f2.png)

Now the main part, since we are going to tile the render target Output we need to manage the speed at which the ripples follow you.

 ![222411-force-splat-uv-reset.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/d/5/3d52c2ece3684d14eeeb086614ee6f0608cb4912.png)

Thats why we multiply the channels of the “ForcePosition” with the number of tiles.

- Once you’ve finished doing this method changing “NumTiles” and the “TexCoord” in the water material is everything you need to change when you resize the plane.

After the multiply we ceil to get a whole number, decrement this number by 1 and subtract this from the multiply to stay in 0-1 range.

Now we modify the water shader to get rid of the tiles.  
We build a distance blend, we take the distance from the camera to the absolute world position divide that by a large number to adjust the distance at which the other tiles fade out and then power it to have a sharp(\>1) or smooth (\<1)  
Transition. we control the max alpha with a clamp.

In the lerp:

- A is what you want to see
- B is what you don’t want to see

 ![222413-water-fade-out-tiles.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/5/7/157552bed8f7b80328a8c74ce56ebc1217affba5.png)

Finally this step is totally optional you can create a parallax node that feeds into the normal map.  
Otherwise plug the TexCoord directly into the normal.

Choose small height ratio values to get good results(make this smaller if you increase the render target Resolution).

 ![222414-water-parallax.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/6/5/76546c98d820cad57dabe172ae722080c1af9294.png)

EDIT: Totally forgot to mention that you have to adjust the TexelSize in the heightSim and ComputeNormal to 1/render target Resolution so in case you have a res of 1024 set texelSize to 0.000977

EDIT 2:

Modify the HeightSim like that and set the Default TravelSpeed to 0.44

 ![222452-heightsim.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/5/b/f5bd7dc9df713e2358635aa584412f00b282bc58.png)

[Next page](https://forums.unrealengine.com/t/how-to-scale-render-target-fluid-simulation/394122.md?page=2)
