I've been working on liquid animation for a while. Since Route-77 I've been experimenting with it.
I noticed when I rendered out a grid of 16 frames in one texture, that there is always a little seam visible in Revolt.
I wanted that seam gone.
![Image](http://www.javildesign.com/images/rvgl/seams_1.jpg)
Seam visible in RVGL
Technical details
During development of Route-77 I create a solution to shrink every frame-section (256x256px) 98,5%, duplicate every grid section and copy connect it on the north, west, south and east side of itself. Position it back on it's on place.
Every grid-frame is 252x252px so the overlap of 2px on both sides of the frame causes that the seam to disappears and the animation will be smooth.
![Image](http://www.javildesign.com/images/rvgl/grid_1.png)
Grid setup for every frame (16) Each grid-frame is 252x252px
To create a grid animation in the blender plugin, the UV square on each frame needs to be resized (0.984)
This way there will be a 100% seamless animation in RVGL.
![Image](http://www.javildesign.com/images/rvgl/seams_2.jpg)
All ugly seams gone
I created an action for Photoshop that automate the whole process.
I also saved out the UV coordinates for the .CSV so no need to adjust the UV's manually.
How to create a liquid texture sequence?
In Blender 2.8 I began experimenting with the Ocean Modifier.
There are some tutorials online to learn how to create a seamless repeating sequence.
But when you have created a great repeating sequence, you need to render out to a 2d texture.
I managed to render it out with an orthographic camera pointing on the 3x3 grid of the Ocean Modifier.
So with the Ocean Modifier set to a spatial size of 50 and the camera set to orthographic scale of 50, I was able
to place the camera anywhere above the ocean and always get a repeating sequence on every side.
Trouble with getting a sequence correct, is to setup 17 frames and finally render out 16 frames.
![Image](http://www.javildesign.com/images/rvgl/blender_ocean_2.jpg)
Camera alignment to render out the sequence
![Image](http://www.javildesign.com/images/rvgl/blender_ocean_1.jpg)
Experimenting with Ocean Modifier in Blender
I thought this all out and it works fantastic now. All I have to do is adjust the Ocean Modifier a bit, change the color and render out millions of different water/liquid sequences.
I also create Photoshop action to get rid of edges using gradient masking. (seen in Route-77)
Here are some in-game examples which all uses some transparency in the final output (70-90%):
![Image](http://www.javildesign.com/images/rvgl/water_1.gif)
Ocean modifier with foam (to make foam repeating is difficult)
![Image](http://www.javildesign.com/images/rvgl/water_2.gif)
Clear blue water
![Image](http://www.javildesign.com/images/rvgl/water_3.gif)
River floating
![Image](http://www.javildesign.com/images/rvgl/water_4.gif)
River with waves
![Image](http://www.javildesign.com/images/rvgl/water_5.gif)
Top view of repeating ocean
I hope to make a complete tutorial for this topic in the future.
For anyone who's interested, just contact me and I will share anything that could help you to create awesome liquids for RVGL!