Vectorfield Visualization
Posted: Tue Dec 06, 2016 7:44 pm
Hi guys
I am currently working on my master thesis. Basically it is about flow visualization (i.e. vector field stuff) and extracting mystical structures to improve the world (or so ). To prototype things I usually use the wonderful löve2D engine. I just wrote a little tool that generates a random vector field and extracts coordinates of separated points (zero vectors) by using newton iterations and colorcodes the type of the separated points (source, sink or saddle). It also draws the streamline that goes through the current mouse cursor position and sampled vector at the position of the mouse cursor. What does not work for now is to color code swirling behaviour due to the lack of imaginary number support (maybe I am going to write some imaginary number table later..)
Controls:
left mouse drag: move the domain
mousewheel: zoom (attention, don't scroll too much out or the program will crash >.<)
space: create new random vector field
When starting the program it may take some time to generate and calculate everything.
Have fun testing it
EDIT:
Updated files with MIT License. Feel free to use the code!
I am currently working on my master thesis. Basically it is about flow visualization (i.e. vector field stuff) and extracting mystical structures to improve the world (or so ). To prototype things I usually use the wonderful löve2D engine. I just wrote a little tool that generates a random vector field and extracts coordinates of separated points (zero vectors) by using newton iterations and colorcodes the type of the separated points (source, sink or saddle). It also draws the streamline that goes through the current mouse cursor position and sampled vector at the position of the mouse cursor. What does not work for now is to color code swirling behaviour due to the lack of imaginary number support (maybe I am going to write some imaginary number table later..)
Controls:
left mouse drag: move the domain
mousewheel: zoom (attention, don't scroll too much out or the program will crash >.<)
space: create new random vector field
When starting the program it may take some time to generate and calculate everything.
Have fun testing it
EDIT:
Updated files with MIT License. Feel free to use the code!