Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

The tag has no usage guidance.

0
votes
1answer
35 views

2d water animation is jagged and not smooth

As a solution for this question I implemented the shader with a test program: ...
0
votes
1answer
32 views

Moving/spilling water inside a cup of glass

I made a glass of water but there are somethings i didnt know how to do well, what i did is i put a mesh on the top of the glass to represent the surface of the water but it doesnt really work well ...
0
votes
1answer
52 views

Make a glass cup look like it's full of water

I've been struggling to figure out a way to make a glass cup full of water, and since the cup is made of glass a plane on the top of the glasse won't really do it, so how can i go around making the ...
21
votes
4answers
3k views

How to animate abstract 2d top down water texture?

I currently implement a game with a top down view of the ocean. I use the following, a little abstract texture: The actual texture is transparent, I added the green-like color for clarity. The ...
0
votes
0answers
44 views

Water cut off effect in UE4

Working on a side scroller game in Unreal Engine 4 and I need to create a water cut off effect like seen in the screenshot of Ori and the Blind forest. Basically need a side perspective on water ...
0
votes
1answer
60 views

Unity: Water shader vertex offset - how to add mesh collider which updates with vertex offset?

I have written a shader (in the new LWRP shader graph) which simulates an ocean with vertices which offset to create a moving "waves" effect. I believe that in order to have objects "float" on my ...
0
votes
0answers
21 views

How to implement floating behavior on player character

Lets say I have a body of water with the level of the water at each frame, with waves that basicly go up and down. How would you implement the computation of the velocity to keep the object/npc/player ...
0
votes
0answers
38 views

Sampling the depth buffer and normalizing to [0,1] (DirectX)

I'm trying to visualize (for debugging purposes) the depth of a scene on a textured quad (I want to display the depth of a water pond onto the surface of the water). So what I'm doing is rendering the ...
1
vote
0answers
120 views

2D Sideview Procedural Water Generation

How can I generate water in a procedural 2D sideview landscape? Here's what I currently have: First generate the heightmap of the land Then generate the water, based on the land Here's how I ...
5
votes
2answers
217 views

Scan for water in 2D procedural terrain locale

In my 2D-sideview game, I have certain biomes, each one having a unique sea level, or water height, (depending on the humidity of the biome). The terrain is composed of stacks of blocks, each being a ...
2
votes
0answers
138 views

Simulating Water by changing Y values of Quad Vertices

hopefully this isn't too difficult to answer, but I'm stuck and could at least use some input. I'm working on simulating water for the first time with basic wave functionality. As in I click at a ...
7
votes
1answer
763 views

How do I render 2D top-down tiled, directed water flow?

I'm working on a top-down tile-based fairly graphical 2D game inspired by Dwarf Fortress. I'm at the point of implementing a river in the game world, which covers a number of tiles, and I've ...
2
votes
0answers
350 views

Getting the unity pro Water shader to reflect light sources such as spotlights

I'm trying to get the standart unity water shader to reflect light sources. For reference here is the shader code and the c# script that controlls it. ...
0
votes
0answers
36 views

DuDv Map has seams

I've made a dudvMap to give my water a ripple effect, however it is giving it a repeated look and I can see the areas where two textures on the water meet It's a little hard to see here, but if you ...
3
votes
1answer
2k views

Simple cartoon water shader shoreline

I'm currently attempting to create a cartoon-ish water shader with a shoreline. After looking around trying to find out how other games do it i figured out it has something to do with getting the ...
2
votes
2answers
2k views

fish tank water distortion Shader for unity

I am working on unity and trying to make a fish tank water distortion Shader effect with the following requirement: 1.its a 2D top down prospective. 2.every object under/in the fish tank has to be ...
1
vote
0answers
275 views

OpenGL Water reflection seems to follow camera yaw and pitch

I'm attempting to add reflective water to my procedural terrain. I've got it to a point which seems like it's reflecting however when I move the camera left/right/up/down the reflections move with it. ...
0
votes
1answer
106 views

making special blocks in a voxel game OpenGL

I'm making a voxel game and it looks quite good but then i thought of special blocks like minecrafts grass leaf blocks, and translucent water. I had the idea for the grass blocks to put them in a ...
0
votes
1answer
97 views

Only first vertex of data used in shader OpenGL

I'm making a voxel game like Minecraft which was working fine until I added water. Then I realized that whatever the texture was for the first visible block was applied to the rest of the blocks in ...
1
vote
2answers
388 views

OpenGL Water Waves Problem

I want to do a simple simulation of water drops producing waves in OpenGL with C/C++. I calculate height for each point of my plane grid in Vertex Shader with formula but it seems wrong at the ...
5
votes
1answer
944 views

Water wave simulation

I'm having a strange behavior simulating water waves. It works perfectly with directional waves, but point waves don't work like expected. If i do not normalize the directional vector(WoldPosition - ...
1
vote
1answer
317 views

Voxel river flow simulation

I am making a Voxel game and I'd like to add rivers that can be redirected. So I thought that if a player replaces a river block or digs up a block next to a river block the river would repath itself ...
12
votes
2answers
825 views

2D Rain Creation (and Fluid Dynamics)

I am experimenting with weather conditions in a game of mine, and I was impressed by the way Starbound handled the rain. Basically, when rain hits the ground, it's either dispersed horizontally (and ...
0
votes
2answers
492 views

What is the most efficient way to render water?

Would I create the water surface mesh in C++, and control the movement/animation in the CPU, and afterward apply any shaders (reflect/refraction/caustics/etc..). Or should I only create the mesh in C++...
5
votes
1answer
902 views

How to render water reflections on multiple heights

I'm making a voxel game on OpenGL, and are trying to find a way to render semi-realistic water (At least partially good looking, it doesn't need to be strictly scientific accurate). All sources ...
1
vote
0answers
2k views

Unity 5 light reflection on the water surface

How to adjust reflection in Unity 5 to show up it on the water surface. So I have few light elements in the scene. So I want my water pro to reflect this lights. As example you can see red and yellow ...
-1
votes
1answer
72 views

Unity 5: Stays slow after code runs

Hi guys :) I have just tweaked the FPSController Script so that when you are below 6y, you are slower and gravity is a little weaker. This is to simulate underwater effects, but when you come out of ...
4
votes
1answer
344 views

Water effect using DuDv Map weird look

I'm trying to apply a DuDv Map effect (distortions) on my water. My texture is 512x512 in size. I'm using the following code: (Vertex Shader) ...
3
votes
2answers
630 views

Why has my refractive water shader become reflective

So I was making a water shader in unity and well it looked fine in the scene view but as soon as I went into the game view the refraction texture basically flipped up 180 degrees and made it look like ...
4
votes
2answers
4k views

Unity - Water Cube (to 2D game)

I wonder if you can create a cube of water within the unity! I'm starting to use the Unity, and took a sought as to whether there was already something like this ... but have not found any tutorial ...
3
votes
1answer
184 views

Reflections on moving water

I've been working on a simple game with semi-realistic water. I followed some tutorials to get: a flat water surface reflection and refraction (blended using fresnel term) ripples using a bump/normal ...
3
votes
0answers
74 views

How can I simulate these two droplet? [duplicate]

Below is a two droplet merging together,in 2d. I want to simulate the behavior when I exert combination force(through mouse or fling force on touch screen) on one ...
3
votes
3answers
430 views

XNA realistic water: How to clip along a mesh instead of a plane

I hope you can help me with the following problem: I'm developing a 3d game (in XNA) with an ocean. I want it to look semi-realistic. So far, I'm rendering 4 things: The ocean floor (terrain) on the ...
4
votes
2answers
2k views

How can I generate a simple river surface seen from above, in a browser game?

I'm developing my first browser-based game, a very simple signup gamification where users become captains of boats, and their referred friends join the boats. The boats race to a finish line. There ...
6
votes
1answer
1k views

Height field/Shallow water eqation water simulation with ground height

Hey guys I found a lot of tutorials on 2D height field/swe water simulation but I have yet to find one that takes into account of ground height, i.e. http://zejiazheng.com/?p=87 The overall water ...
0
votes
1answer
365 views

Java LWJGL - How can I add water to my 3d world? [closed]

The title says it all, how can I implement a simplistic water system into my game? I am using Java LWJGL and OpenGL glsl shaders. I am still fairly new to game programming, and a complete noob in the ...
3
votes
2answers
2k views

2D Boat controlling physics

I'm working on a top-down 2D boat game with Unity3D. I couldn't able to understand how to implement physics of rudder controlling. My physics knowledge is not enough to think how rudder dynamics work. ...
3
votes
0answers
3k views

How to create water with ripples in custom places for top down game in Unity?

I want to make topdown row boat game with Unity. I want graphics to be simple (sprited), but the water must be "very nice" and realistic and it should reflect movement in it (paddles and boat movement ...
5
votes
1answer
1k views

Programming Dynamic 3D Water/Waves?

I'm a little bit stuck on how I might go about programming dynamic, interesting water in a game. To qualify that a little bit, I'm interested in creating water with broad, rolling waves that affect ...
9
votes
1answer
7k views

How to implement this kind of ripples with a GLSL fragment shader?

So I have already implemented the reflection part: ...
0
votes
1answer
184 views

Unity create water issue

I use daylight water in my project but by the default it has not got any waves or light tracing effects. But in some tutorials I see how the user add standard water asset and it has got beautiful ...
4
votes
1answer
652 views

Simple Water surface simulation problems (GDC2008 Matthias Muller- Hello World)

Im attempting to implement a simple height field water surface simulation outlined in Matthias Muller's GDC 2008 talk. "http://www.matthiasmueller.info/talks/gdc2008.pdf" I can't seem to see why it ...
6
votes
2answers
558 views

How can I synchronize ocean waves over the network?

I've been performing a little bit of research in my spare time on ways to increase the interactivity of environments in a networked game or simulation. One of my areas of research is fluid-dynamics ...
2
votes
1answer
2k views

2D metaball liquid effect - how to feed output of one rendering pass as input to another shader

I'm attempting to make a shader for unity3d web project. I want to implement something like in the great answer by DMGregory in this question. in order to achieve a final look something like this.. ...
0
votes
2answers
699 views

Stormy water like Temple Run 2 for Mobile

How can I make stormy water like they did in Temple Run 2. I've tried with Unity Water Pro to achieve the same result but when I include it in the project the frame rate crashes to 3 frames per second....
2
votes
1answer
5k views

Gerstner wave function simplified?

The gerstner wave function is a commonly used method to calculate waves and simulate water in video games and movies or most 3d simulations. It is however quite complex so it is very hard for young ...
2
votes
1answer
1k views

3d Water Simulation formula questions

I have created a Grid: At each point along the grid, is a vertex (Intersection Points): Each of these points has an x,y,z position. Vector3f(x,y,z). In an attempt to animate the grid into a group of ...
5
votes
2answers
2k views

How does this formula for generating water waves work?

I have been trying to implement the wave equation described in this paper ("Water Simulating in Computer Graphics," Kai Li and Liming Wu) in Java. Part of the paper discusses modeling waves as a sum ...
4
votes
2answers
7k views

2d metaballs with shader to give blobs of water effect?

I want to simulate blobs of water in a 2d game in Unity3d. One possible way of doing it is to use 3d metaballs moving in a 2d plane though this is very processor intensive. Do you think it would be ...
4
votes
1answer
4k views

Advance efficient water physics simulation [closed]

Summary: I am looking at creating a large(ish) ocean which multiple ships will be present in doing their own thing. I want the ocean to be a life like as possible but without compromising too much on ...