Fast FFT Ocean

Announcements and news updates to your projects using Urho3D.
Forum rules
If you have images or videos, you can attach them in the showcase post. Please use small thumbnail as link to original media resources.
When you post in this forum, you have to agree that Urho3D main website as well as the Facebook page have the permission to republish your post with all the related images or videos. The original images must have width larger than 890px for best viewing result in all the supported viewports by main website.

Fast FFT Ocean

PostPosted by Lumak » 07 Apr 2016, 08:14

I came across this site - http://www.keithlantz.net/2011/11/ocean-simulation-part-two-using-the-fast-fourier-transform/, and wanted to observe the frame rate in Urho. His code is written very well. I literally just copied and pasted his code and changed a couple of vector classes to Urho's and had it running in few minutes.



Runs at around 40 fps running in the main thread. Shader stuff next.
Last edited by Lumak on 07 Apr 2016, 23:14, edited 1 time in total.
Lumak
Have many posts
Have many posts
 
Posts: 425
Joined: 08 Jun 2015, 15:38

Re: Fast FFT Ocean

PostPosted by rasteron » 07 Apr 2016, 16:01

Looks good! :)
User avatar
rasteron
Have many posts
Have many posts
 
Posts: 437
Joined: 07 Mar 2014, 07:46
Location: web

Re: Fast FFT Ocean

PostPosted by Lumak » 07 Apr 2016, 23:17

Yes, Mr. Lantz did an awesome job optimizing his FFT. It's the best that I found showcasing Ocean Simulation.
Lumak
Have many posts
Have many posts
 
Posts: 425
Joined: 08 Jun 2015, 15:38

Re: Fast FFT Ocean

PostPosted by Lumak » 06 Jun 2016, 20:26

frame rate running in urho 1.5, wave process running in a separate thread, using water.xml material

Image
Lumak
Have many posts
Have many posts
 
Posts: 425
Joined: 08 Jun 2015, 15:38

Re: Fast FFT Ocean

PostPosted by Victor » 07 Jun 2016, 12:38

I'm really excited about this! Nice work!
User avatar
Victor
Have some posts
Have some posts
 
Posts: 48
Joined: 11 May 2016, 14:22

Re: Fast FFT Ocean

PostPosted by krstefan42 » 13 Aug 2016, 17:00

Wow, looks great! That's running CPU-side? Pretty impressive stuff. I imagine it would benefit from a multi-resolution grid (with higher res closer to the camera). When you are done, could you share the modified source and an example? I'm feeling lazy and would rather not try to get it running myself. ;)
User avatar
krstefan42
Have some posts
Have some posts
 
Posts: 24
Joined: 28 Jun 2015, 06:16

Re: Fast FFT Ocean

PostPosted by Lumak » 22 Sep 2016, 18:20

@ krstefan42

Not sure how I missed your post, but sure, I'll create a repository for this (not anytime soon though).
Lumak
Have many posts
Have many posts
 
Posts: 425
Joined: 08 Jun 2015, 15:38

Re: Fast FFT Ocean

PostPosted by Lumak » 28 Sep 2016, 00:26

Now that Cadaver made some performance improvements, I should work on this soon(TM).
Lumak
Have many posts
Have many posts
 
Posts: 425
Joined: 08 Jun 2015, 15:38

Re: Fast FFT Ocean

PostPosted by Lumak » 30 Sep 2016, 21:45

Repository: https://github.com/Lumak/Urho3D-Ocean-Simulation

I'm still not satisfied with the shading of the ocean and the reason why I was reluctant to create a repository for it. But I decided to create it and perhaps, one of the graphics programmers can tweak it.
Lumak
Have many posts
Have many posts
 
Posts: 425
Joined: 08 Jun 2015, 15:38

Re: Fast FFT Ocean

PostPosted by Lumak » 06 Oct 2016, 00:16

Added glsl ocean shader in the repo.

Image
Lumak
Have many posts
Have many posts
 
Posts: 425
Joined: 08 Jun 2015, 15:38

Next

Return to Showcase

Who is online

Users browsing this forum: No registered users and 1 guest

cron