• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Triunity · Jul 19, 2015 at 04:42 PM · terrainwaterocean

Best method to make an Ocean?

Hello,

I am new to Unity and am trying to think of the best method to create an ocean for my game.

I have created a plane for the ocean floor but am unsure what to do for the sea. I thought about creating another equal sized plane on top of it but my water needs to be more than just a mesh as I'll be having things like AI sharks and fish swimming in it.

Since the ocean is a fundamental part of my game I cannot progress with other parts of the game until my ocean is made. So any help is greatly appreciated!

Other problems I have:

1) I would prefer my scene to be circular rather than squared but don't know how to make my ocean floor plane circle shaped.

2) When I apply a texture to my plane it does not blend as It shows a square grid for every 10 units. I did a google search and someone suggested to untick the mesh renderer but if I do that the material/texture disappears.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by J_Troher · Jun 10, 2016 at 05:56 AM

Yeah its an old thread but I just found this and the ocean is awesome I love it. My only question is how you could do collision with it, so I can make my boat float on it and pivot against the water and such.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by NathanJSmith · Sep 03, 2018 at 02:54 PM

Can't say anything "best", because there is always a better way. Beside, "best" depends on your purpose: best for performance or best for visual or best for simplicity?

I created an ocean implementation that I think better for performance & simplicity than the Unity's default ocean (which is in the Unity's Environment Asset).

I call this: Terrain Ocean.

Step 1: Create a 3D terrain, name it: OceanTerrain

Step 2: Remove Terrain Collider of OceanTerrain.

Step 3: Assign the "Water4Advanced" material (You can get this material from the Unity's Environment Asset) for OceanTerrain

My Unity Ocean

And Here is the result: Unity Ocean Result

It's better for performance & simplicity than the Unity's default ocean (which is in the Unity's Environment Asset) because:

  • My ocean doesn't run any script while the Unity's default ocean run several scripts to create reflection, and some other effects.

  • You have to scale or use multiple Unity's default oceans because the Unity's default ocean is not big enough. My ocean is terrain so you can easily set the ocean as big as you want, and terrain can be very big.


unityocean.png (132.8 kB)
unityoceanresult.png (143.3 kB)
Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to remove the water fuzz 2 Answers

Terain-Water creation problems 0 Answers

Water is reflecting my terrain texture 0 Answers

Terrain & Water won't render to game view 1 Answer

How do I make a river in the terrain in unity? 3 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges