achalpandeyy / oceanfft Goto Github PK
View Code? Open in Web Editor NEWOpenGL Demo: Simulating Ocean Waves with FFT
License: MIT License
OpenGL Demo: Simulating Ocean Waves with FFT
License: MIT License
Hello there, I love your Ocean Waves example, I tried compiling it (I did have to change version of OpenGL used from 4.6 to 4.5 in OpenGL shaders) and it compiles and works fine
then I tried to rewrite it in C# with OpenTK and thats where the problems began
as you can see form this picture
nothing is rendered and I have no idea why, I did test all the Shader and Vertex helpers (when I rewrote them) with this example: https://www.mediafire.com/file/jdxfp4z1pgrlvr4/opentk-examples.zip/file
and it works fine there, I get a triangle
But the ocean simulation doesn't show anything, there is only blue sky
Here is the code (for now, no GUI or keyboard handling is implemented, because I first wanted to get the waves to render): https://www.mediafire.com/file/bzivm7wkb3zbvhu/FFT_SIM.zip/file
So sorry to bother you like that but I am not sure what to check (its my first time doing something like this and I learn as I go), compiler gives me no errors, values seam to be the same between c++ and C# implementation, the only difference is that c++ renders waves fine, while C# one only shows the sky. And I am realy confused why that is
So if you could maybe check it or maybe know some additional debugging tehniques in this cases that would be great.
Thanks for Anwsering and Best Regards
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.