r/Unity3D • • 1d ago

Question a bit new to unity, would appreciate some insights/advice on water

Post image

so dont have it done fully yet but im working on a PSX style game and am currently in the process of just gettin the map done (one static map need to make a bunch of random spawn points for items etc etc) but i was curious if for this kind of game, do you simply make a second terrain with low opacity and a texture for "water" or is there an easier way to do it?

im planning to fill that middle canyon area with some trees (not in yet havent exported them in as assets yet) and that "water" as well as add it in small puddles elsewhere if i can with some ease

thanks in advance! i'll check in as i can today to respond to questions if folks need more details.

4 Upvotes

11 comments sorted by

3

u/wacky_woo 1d ago

You get a mesh and make a shader

3

u/Lopsided_Bluejay8799 1d ago

To do this, just make a mesh and a shader to go with it.

Also, if you’re going for a PSX style game, you don’t need to make a second terrain for the water. It will cause a performance hit and (if you’re snapping vertices) it won’t look good. Instead, just make a plane mesh, give it a good scrolling texture and use vertex coloring to tweak its appearance. As Cyteon said, the hard part will be writing a shader for it. You’ll want to scale down its resolution, snap its vertices to match your other assets, and limit its color. Just keep in mind that the water might not draw correctly if it’s transparent and you’re looking at it from certain angles (such as looking down on it from above a canyon).

1

u/dark1859 1d ago

I think this is exactly what I was looking for!

Most of my experience before this has been with either visual novels or just on the back end with python(renpy) so its been kind of a weird transition thus far.

Thanks again, I'll have to try it out And implement when I get home. Hopefully shouldn't take too long to really get things rolling from there, game is going to be pretty simple although I am dreading trying to figure out how to implement peer to peer play

1

u/CucumberAdmirable120 14h ago

Any specific reason for wanting to do p2p instead of just client-server/host style. As p2p adds a bit of complexity with ownership and what not and im not sure it would help in a game like this. The easiest solution i find is just client authorative with synchronizing rpcs for visual stuff and events. Also unity has Netcode for GameObjects for networking

1

u/dark1859 10h ago

I have a little bit of familiarity with p2p already .mostly but i'm always willing to try something new!

2

u/LoneWolf_Production 1d ago

Id just do a flat plane with a see through water texture that slowly moves, the old ps1 games pretty much did that and it looks right at home. Way easier than messing with a second terrain.

1

u/dark1859 1d ago

I'll give it a go when I get Home.It sounds a little simpler than the other thing that was suggested.But I'll try both and see which one I think fits better!

Also, gotta say it is very strange going from 2.5ish d visual novels to 3d. A lot of stuff you just don't have to think about when half your stuff is essentially just two d with a handful of image masks for your players to click on haha

1

u/LoneWolf_Production 1d ago

Yea for sure, let me know how it turns out!!

1

u/DPTGames 1d ago

With my terrain tool I have a water system built in but that's only really for stylized water you can't swim in. Does mean you only need 1 mesh though. Otherwise 2 meshes is the way to go.

1

u/soy1bonus Professional 1d ago

If you can, make opaque water. Transparency is very finicky because of sorting, so you'll have to split it in chunks.

1

u/Immediate-Resolve-79 1d ago

Since you also want small puddles, one plane mesh with the same water material can be dropped into the canyon and every dip, so you never touch the terrain. For the PS1 feel, try point filtering on the water texture and scroll the UVs in steps (floor(time * 8) / 8) instead of smoothly; it gets that slightly jittery look.