Help me with graphics!
-
Hello! Please tell me the way of solving the following problem.
I need to display 2-D scene. The data I need to visualize are data from amateur radar:
1st layer: is a coordinate grid;
2nd layer: two-dimensional matrix of 4096 X 1200, the value of which will be specially interpreted and displayed as pixels (dots) with the corresponding coordinates;
3rd layer: service information, which is also a special way interpreted and displayed as icons, icons with acc. coordinates (500-800 sites);
Layer number 2 is often updated on a signal from another thread that is processing the data. The entire scene must be able to scale to scroll.The program is written using Qt under Linux. Criterion: maximum performance.
What Qt's tools I can choose to solve the problem?
Do I need to pay attention to OpenGL technology, or is it redundant for my problem? -
OpenGL does not seem necessary here, although it's certainly an option. Qt's raster engine is also very fast.
There are number of ways in which this can be implemented: QGraphicsView, standard painting with QPainter, QML, QML Canvas element, and more. I can't really say which is best for your case. It would be very easy to prototype in QML. Other solutions will be tougher, but will offer more low-level control. The decision is yours, really. Performance-wise, all those are pretty fast, you would need to construct some benchmarks to see the difference.
-
If you consider for the future to also create a Web version, add 3D viewing (terrain/height), lighting, etc., you might consider OpenGL ES.
If so, let me know, for I have much that stuff available in my Open Source (aircraft navigation) project. -
[quote author="wspilot" date="1354874209"]If you consider for the future to also create a Web version, add 3D viewing (terrain/height), lighting, etc., you might consider OpenGL ES.
If so, let me know, for I have much that stuff available in my Open Source (aircraft navigation) project.[/quote]
Hi, could you provide a link or something, would be nice to have a look :) -
You'll need to elaborate more on the matrix. What the values mean, how they shall be interpreted, how they shall be visualized.
How dynamic is the scene, how often do all the elements change etc.
Right now it's just too vague to say anything. -
[quote author="terenty" date="1354875735"]
[quote author="wspilot" date="1354874209"]If you consider for the future to also create a Web version, add 3D viewing (terrain/height), lighting, etc., you might consider OpenGL ES.
If so, let me know, for I have much that stuff available in my Open Source (aircraft navigation) project.[/quote]
Hi, could you provide a link or something, would be nice to have a look :)
[/quote]
Sorry, I missed your reply.
The project is "pilotnavigator":http://sourceforge.net/projects/pilotnavigator/
The oglwindow.cpp contains the (Qt)Gl stuff, esp. the OGLWindow::draw function.