Jump to content

Pool water with caustics..


Michael Betke
 Share

Recommended Posts

How can I make a nice pool water for a swimming pool? I can use a simple river with refractive water material but how do I get the Leadwerks ocean caustics working?

 

Easiest way would be to use a material with the animated caustics for me. But how to do it?

Pure3d Visualizations Germany - digital essences

AAA 3D Model Shop specialized on nature and environments

Link to comment
Share on other sites

  • 1 month later...

I wonder how hard it would be to convert this WebGL code to Leadwerks, basically it's just a shader I think:

http://madebyevan.com/webgl-water/

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Link to comment
Share on other sites

Just do it how UT2004 did it. You have a series of frames for caustics already, just add them to a material, make a shader that does a lookup and adds the caustic to the output color, and use this material on any walls you want to display this effect on.

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Guest Red Ocktober

if your your walkable terrain is above the water layer, the simplest approach would be to make in in ground pool and use the existing water... this way you could jump in the pool and take advantage of the existing water caustics without having to reinvent the wheel, so to speak...

 

the insides of the pool would have to go below the water level...

 

for rivers this approach would negate stuff like stream, water falls, and brooks that run downhill on uneven terrain, but can still be used for rivers in general...

 

good luck...

 

--Mike

Link to comment
Share on other sites

If you assign a material with a texture in slot 0 to a light, Leadwerks will do the same.

 

That makes the light 'project' a texture doesn't it... makes sense

STS - Scarlet Thread Studios

AKA: Engineer Ken

 

Fact: Game Development is hard... very bloody hard.. If you are not prepared to accept that.. Please give up now!

Link to comment
Share on other sites

I'm not sure if the WebGL example uses a texture for caustics, because it looks like the caustics is calculated from the actual wave shape. For example if you just click one wave with the mouse, you will see only one caustics line also at the bottom of the pool.

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Link to comment
Share on other sites

  • 6 months later...
  • 2 weeks later...
Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...