Monday, January 30, 2012

Visualizing wave interference with FireMonkey

My article "Visualizing wave interference using FireMonkey" on EDN.

4 comments:

  1. Hi!
    I have been playing a bit with your wave interference example, and it works fine, but I have realized that when you move the bars for changing the wave properties, the visualization of the waves hangs up. I suppose that this is due to the fact that the timer does not fire up. So I am wondering, how is it possible to avoid this effect? I. e. move the bars and the waves do not stop repainting? I suppose that using threads, or something like that, but since all what is involved is obscured by the Firemonkey framework I am not able to see how.

    Best regards,
    Ruben

    ReplyDelete
  2. FireMonkey definitely needs to have some bundled class like GLScene's TGLHeightField to handle the mesh generation, height fields are common objects, and it's quite clumsy having to generate the mesh manually (and you should be using a triangle strip there).

    ReplyDelete
  3. @Ruben: Yes, using threads would eliminate that problem.

    @Eric: Yep. I'm just dabbling and learning. I have to look into what a triangle strip is.

    ReplyDelete
  4. Hi, just wanted to mention, I enjoyed this article. It was inspiring. Keep on posting!

    ReplyDelete