Hello everyone, I'm totally new with Qt and I have a project assigned of making a wave-expansion simulator often known as "ripple tank". The software should allow the user to visualize sound waves expanding in a room, getting reflected, etc...
Also the user should be able to insert walls and sound sources in the scene and those walls and sound sources need also to be printed on top of the image.
The representation has to be a plot with every pixel representing a node. Every node has a determined pressure level which varies during the time.
The idea is:
1-Calculation of the value of every node in the graph (float)
2-Assign an RGB value to every presure value
3-Print the matrix
.The matrix (graph) could be around 1000*1000 pixels
.The frame rate should be minimum 30 fps
A lot of CPU is used for the calculation of the pressure values itself.
My main question is which function could I use to represent the matrix. I tried draw2Dpixels but I have seen in many places that this is a slow solution. Does someone have a good tip?
I link an applet which makes a very similar function to the program I must implement.
Thanks in advance!
http://www.falstad.com/ripple/
Bookmarks