Jump to content

Infinite Waves Comes To Leadwerks


Guest Red Ocktober
 Share

Recommended Posts

Guest Red Ocktober

well... just about... i've still got a few stray vertices running around here and there,

 

but the displaced ocean waves now are more than just a patch... they're all over the place...

 

 

 

 

i've applied a treadmill 3x3 grid movement algorithm and got an infinite ocean working in Leadwerks 2.26...

 

should also work in 2.31, but since i can't seem to get to the waterpatch in 2.43, looks like a no go for the latest version...

 

 

--Mike

Link to comment
Share on other sites

I could make a special LE 2.43 version which adds access to the waterplane. According to Josh I am allowed to do that and put it in the member downloads.

 

Meanwhile I am also playing around with a 3D verlet based water for LE2, but it won't look as good as your 3D water, because everything will be big OpenGL points, but it will perhaps be more dynamic,

so you can make a game like where Moses splits the ocean :)

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

I just finished the first phase of my verlet water test. First I tried it with BlitzMax (since got the source code as BlitzMax code), then I tried it as C++ version, and finally as Fortran version. Performance results will follow.

 

So far it's only 2D, but the ascension to 3D should be trivial, as I read on some plasma physics article ( http://www.plasmaphysics.org.uk/collision3d.htm ) that verlet forces and collisions happen individually per dimension. Furthermore, I found out that OpenGL can draw big round pixels using hardware acceleration and additive alpha blending ( http://www.opengl.org/resources/code/samples/mjktips/particles/index.html ), this is one way to make very fast rendering of a lot of particles.

 

Now I can see if I can make a custom version of LE 2.43 which has 2 additional commands: mesh=GetWaterMesh() and SetWaterMesh(mesh), but first I have to finish a forum software for Fortran 2008 first.

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

Mike, you can still access the waterpatch in LE 2.43 with Framework in bmax and lua.

fw.renderer.waterpatch

but it requires the waterplane to be rendered at least one time (ie. fw.Render() ) before you can access it.

 

btw, that looks extremely nice :)

Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590

LE / 3DWS / BMX / Hexagon

macklebee's channel

Link to comment
Share on other sites

Guest Red Ocktober

Mike, you can still access the waterpatch in LE 2.43 with Framework in bmax and lua.

fw.renderer.waterpatch

but it requires the waterplane to be rendered at least one time (ie. fw.Render() ) before you can access it.

 

btw, that looks extremely nice ;)

 

 

hhhhmmmmmmmmmm... well i'll be :)

 

lemme take a look at that...

 

thx Mack...

 

--Mike

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...