About Store Forum Documentation Contact



Post Reply 
C++ water tutorial
Author Message
s.padikov Offline
Member

Post: #1
C++ water tutorial
Hello,

I'm trying to create a procedural terrain ( from height map ) with water, but I don't know how to implement water for my terrain? Is there any water related c++ tutorial of piece of code?

Thanks in advance !
05-17-2024 02:48 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: C++ water tutorial
Hi,

I'm not sure there are tutorials

But you can just take a look at https://github.com/Esenthel/EsenthelEngi...cs/Water.h
the necesary functions are there.
05-18-2024 04:54 AM
Find all posts by this user Quote this message in a reply
s.padikov Offline
Member

Post: #3
RE: C++ water tutorial
Hi,

unfortunately the EsenthelEngine github repo is not accessible?
05-18-2024 05:30 AM
Find all posts by this user Quote this message in a reply
Outdoordoor Offline
Member

Post: #4
RE: C++ water tutorial
I believe this water file is a part of the engine API, you can just look at it in the documentation ( https://esenthel.com/?id=doc#API/Graphics/Water ) or in the editor at Titan Engine/Graphics/Water
05-18-2024 06:52 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #5
RE: C++ water tutorial
(05-18-2024 05:30 AM)s.padikov Wrote:  Hi,

unfortunately the EsenthelEngine github repo is not accessible?

https://esenthel.com/?id=doc#Accessing_Source
05-19-2024 03:47 AM
Find all posts by this user Quote this message in a reply
s.padikov Offline
Member

Post: #6
RE: C++ water tutorial
Now I can render rivers and lakes on my terrain, but how can I render an ocean as well? I mean to render a large water are, which is contained by several areas?
05-21-2024 04:22 PM
Find all posts by this user Quote this message in a reply
Outdoordoor Offline
Member

Post: #7
RE: C++ water tutorial
You can use "Water.draw = true;" in the init function for this, it will draw a water plane, which you can then change as you need. Just type in "Water." with a dot, and you'll see available parameters.
05-21-2024 08:25 PM
Find all posts by this user Quote this message in a reply
Post Reply