Results 1 to 10 of 39

Thread: Trouble porting liquid simulation to Pascal - AARRGGHH!

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45
    Haha, of course, sorry. I'm still making retard mistakes and assumptions like 'everyone uses linux and requires no DLLs'... I repacked the whole things into one nice shiny new Win32 compatible package right here: http://dl.dropbox.com/u/4853895/Wate...Compatible.zip

    Sorry for all the faff, especially since it was just a case of dropping in the full RTL (I don't what is/isnt required here) so if you notice any of those DLLs are unused and need the extra 900kb of HD space please feel free and remove em'.
    I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.

  2. #2
    Quote Originally Posted by code_glitch View Post
    Haha, of course, sorry. I'm still making retard mistakes and assumptions like 'everyone uses linux and requires no DLLs'... I repacked the whole things into one nice shiny new Win32 compatible package right here: http://dl.dropbox.com/u/4853895/Wate...Compatible.zip

    Sorry for all the faff, especially since it was just a case of dropping in the full RTL (I don't what is/isnt required here) so if you notice any of those DLLs are unused and need the extra 900kb of HD space please feel free and remove em'.
    Thanks mate And no need to apologise at all...windows people usually don't know Linux very well, and Linux don't usually know Windows very well

    I am a real noob when it comes to Linux programming! haha

    cheers,
    Paul

  3. #3
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45
    HAL Voice: "I'm afraid I can't agree with you paul...."

    In reality though, if you can program on windows, press ctrl+Alt+T and type sudo apt-get install you can use linux (yes, I know some people prefer yum and rpms but hey, thats just sudo yum install...). In fact, I found programming on linux more forgiving. EG: I forgot to close that file but I can re-open it a few times (bad coding practice I know) but sometimes you don't care what the file is doing - you're trying to fix a bug in some opengl matrix
    I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.

  4. #4
    Fair enough Oh, sorry if my previous post seemed insulting! That was not what I intended

    cheers,
    Paul

  5. #5
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45
    Not at all, I didn't find it at all insulting actually. Rather, its encouraging to see a +1 for the 'interested in linux' or 'acknowledges linux group'. A lot of people say class linux as a hacking project by some shed geeks that isnt accessible to anyone and a rebellious non-conformist joke for the poor that can't afford 'real PCs'. And I kid you not - I have heard that opinion voiced more times than you would believe. So for me, your post was kinda refreshing since it puts Linux on par with windows as two means to the same end
    I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.

  6. #6
    I made a port, but the result makes no sense to me. This is using FPC, OpenGL and GLUT, so it should be quite portable. The text output is not supported. Here it is:

    http://www.computer-graphics.se/water_sim_fpc.zip

    It animates, but I don't find the animation very enlightening. It doesn't produce a pretty flow. I probably have some errors in the conversion (although I tried to stick as close to the original as possible).

  7. #7
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45
    @Ingemar: compiles and runs fine. I can see your point - esthetically it really looks pretty dire - I guess if you set each block to 1 pixel x 1 pixel you could get some decent looks going but that would kind of defeat the point of handling it in a cellular fashion as it would be more efficient to simply render it as particles then...
    I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •