I found something:
http://techlists.org/archives/progra...msg04100.shtml
The same code is converted to python but why vb.net can't do it?...
User Profile
Collapse
-
Do you mean:
I tried to change every thing according to this but doesn't work, this is really driving me nuts.Code:Dim h As Single h = CSng(1.0F / CSng(N))
Leave a comment:
-
-
Well I checked every part where typecasting might happen. I used Cint and Csng where were typeconversions , but it didn't work. I don't know about overflowing could you tell where this could happen? Or does anyone else have other suggestions?Leave a comment:
-
Here's the rest of code if you want to compile it:
...Code:Imports Tao.OpenGl Imports Tao.FreeGlut Public Class NavierStokes 'Resolution params Dim N, size, Size1D As Integer 'Simulation params Dim dt, diff, visc, force, source As Single Dim win_x, win_y As Integer Dim dvel As Boolean Dim omx, omy, mouX,Leave a comment:
-
VB.NET: Problem converting fluid sim code from c++
I found nice realtime fluid simulation code created with c++. I converted it to vb.net but i have run into trouble. You can find original c++ code here: http://www.dgp.toronto.edu/people/st...DROM_GDC03.zip . Here's my vb.net solver part of code:
...Code:Sub set_bnd(ByVal N As Integer, ByVal b As Integer, ByVal x(,) As Single) Dim i As Integer For i = 1 To (N + 1)
No activity results to display
Show More
Leave a comment: