Skip to main content

Questions tagged [water]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
45 views

How would you render 'water' underneath a plane having CPU deformations of 'waves' done to it?

https://i.imgur.com/GkEYhGa.gif I have a plane mesh that I am trying to make 'water' from by deforming the vertices on CPU in a 'waves' motion. (I know this is not ideal for performance). But ...
yunum's user avatar
  • 69
0 votes
0 answers
76 views

Wake effect in games and Unity

I was curious about how wake effects are added in video games. Do most games use blender to mimic this effect and is it dynamic or does it have any drawbacks? Has anyone ever tried making it in Unity ...
Akshit Chaturvedi's user avatar
0 votes
0 answers
43 views

Raycasting unable to detect water layer

I'm having issues detecting the ocean in my Unity scene (screenshot below) using Raycasting. In the image below, I've attached my script to a child object and set the layer for the Ocean object to ...
Akshit Chaturvedi's user avatar
1 vote
0 answers
394 views

Unity URP Water Shader working in Scene View, in the Preview Window... but all white in Game View?

I downloaded an URP compatible Water Shader from the asset store. First I tried it with 2022.1 but for some reason while in Scene View it looked great, in Game View it's all white. (Sometimes a watery ...
Tudvari's user avatar
  • 761
0 votes
0 answers
199 views

2D sidescroller water surface shader

I am implementing a little 2d fishing side-scroller as a hobby. Here is a screenshot of the work-in-progress: I have implemented a underwater distortion effect in a GLSL fragment shader, but I have ...
Ezbob's user avatar
  • 101
0 votes
2 answers
1k views

Rendering top down water on a 2D surface (OpenGL)

i'm looking for suggestions on how i could use shaders to create a water effect on the surface in the picture (below): I am using noise to create heightmap and normalmap textures that is uploaded to ...
Dahl's user avatar
  • 21
1 vote
0 answers
777 views

Underwater Post Process Using Unreal Engine 4 Water Plugin?

I'm using a custom water body from Unreal Engine 4's water plugin and I'd really like the screen to turn blue as soon as the first person camera goes underwater. I tried putting just a normal post ...
MmmChezBurgerz's user avatar
0 votes
0 answers
85 views

URP water showing Differently in on Runtime

I am using this water for my URP webgl build but the problem is it is showing differently on the editor. When I run the game then it showing correctly and when I build and run it in the browser then ...
Muhammad Faizan Khan's user avatar
0 votes
0 answers
120 views

3d Dynamic liquid wobble inside a container in Unity3d

How can I implement dynamic liquid wobble inside a bottle in Unity3D as seen in here? (Yellow liquid inside the spray can at 3:10)
Abhi S's user avatar
  • 1
2 votes
1 answer
342 views

Water shader in Unity3D not working on some Linux distributions/some Mac OS?

I've got reports from some Linux users that the game's water isn't rendered on his machine. 3 example operating systems: Ubuntu 20.04 (with kernel 5.4.0-54-generic x86_64 Linux 4.15 Linux Mint 19.2 ...
Tudvari's user avatar
  • 761
1 vote
1 answer
800 views

How to make balls (water, or fluid) through pipe

I'm working on a project and get stuck for days. I want to make balls going through the pipe like this game: You can watch this Youtube video for more detail. How can i replicate this game machenis?
tnhoanglonghd's user avatar
0 votes
1 answer
81 views

Ocean visible through the island's lake in Unity3D?

I'm working on a puzzle game featuring islands: there is a plane with a water shader, and objects colliding with that plane. Now I'd like to make lakes on the islands, with different (higher) water ...
Tudvari's user avatar
  • 761
5 votes
1 answer
5k views

How can I achieve simulated fluid surface deformation in a bottle?

I'd like to mimic this effect seen in Half Life: Alyx: I can't figure out what is going on here, people say "it is just a shader effect it isn't simulating anything", but I don't think that is true ...
Krupip's user avatar
  • 1,763
0 votes
0 answers
223 views

Breaking ocean waves simulation

I am working on a project where I have to approximately simulate the ocean waves. Currently, I am using a mesh modification approach. I am able to simulate low amplitude waves using the following ...
Nimesh Chandramaniya's user avatar
0 votes
2 answers
308 views

GPU Gems Chapter 1, update normal

Had plans to follow GPU Gems to gain knowledge in Shaders - but my journey came to an abrupt end. ...
Sindri's user avatar
  • 21
2 votes
1 answer
2k views

2d water animation is jagged and not smooth

As a solution for this question I implemented the shader with a test program: ...
morpheus05's user avatar
1 vote
1 answer
4k 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 ...
Saad Moutalib's user avatar
0 votes
1 answer
650 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 ...
Saad Moutalib's user avatar
24 votes
4 answers
10k 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 ...
morpheus05's user avatar
0 votes
1 answer
668 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 ...
Anoop's user avatar
  • 11
1 vote
1 answer
4k views

How to add mesh collider which updates with water wave 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 ...
Ben Hayward's user avatar
1 vote
0 answers
231 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 ...
clabe45's user avatar
  • 408
5 votes
2 answers
377 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 ...
clabe45's user avatar
  • 408
2 votes
0 answers
574 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 ...
David King's user avatar
9 votes
1 answer
6k 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 ...
Ross Taylor-Turner's user avatar
3 votes
0 answers
1k 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. ...
Uri Popov's user avatar
  • 3,027
0 votes
1 answer
188 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 ...
TheGamerPlayz's user avatar
2 votes
1 answer
5k 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 ...
Daniel Holst's user avatar
2 votes
2 answers
4k 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 ...
user1998844's user avatar
2 votes
1 answer
1k 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. ...
tuckismad's user avatar
0 votes
1 answer
367 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 ...
Ben Beazley's user avatar
0 votes
1 answer
192 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 ...
Ben Beazley's user avatar
1 vote
2 answers
729 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 ...
Ciprian Andrei Focsaneanu's user avatar
6 votes
1 answer
2k 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 - ...
Haruko's user avatar
  • 368
3 votes
1 answer
783 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 ...
Ben Beazley's user avatar
10 votes
2 answers
2k 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 ...
Pandaqi's user avatar
  • 113
1 vote
2 answers
797 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++...
Biointrested's user avatar
6 votes
1 answer
2k 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 ...
Ivelate's user avatar
  • 383
1 vote
0 answers
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 ...
Oleksandr Matrosov's user avatar
-1 votes
1 answer
78 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 ...
Joe Pigott's user avatar
5 votes
1 answer
835 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) ...
Shmwel's user avatar
  • 125
3 votes
2 answers
780 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 ...
Thomas Mathieson's user avatar
6 votes
2 answers
8k 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 ...
Igor's user avatar
  • 219
3 votes
1 answer
247 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 ...
Peethor's user avatar
  • 935
3 votes
0 answers
81 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 ...
zionpi's user avatar
  • 131
3 votes
3 answers
817 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 ...
Peethor's user avatar
  • 935
4 votes
2 answers
3k 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 ...
Dan Dascalescu's user avatar
6 votes
1 answer
3k 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 ...
user1250335's user avatar
0 votes
1 answer
498 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 ...
Kyle Jensen's user avatar
3 votes
2 answers
4k 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. ...
MBraiN's user avatar
  • 143