[Qt-interest] How to draw a 2-D matrix as a 3-D surface
Oliver.Knoll at comit.ch
Oliver.Knoll at comit.ch
Mon Apr 20 10:28:24 CEST 2009
Enrico Ros wrote on Monday, April 20, 2009 10:20 AM:
> ...
> If you don't want to use OpenGL you can do it by hand but you have to
> do a small "3D engine like" code. You could use QGraphicsView, use an
> isometric o perspective projection to map the mesh squares (3 coords
> per 4 vertices) to polygons (4 sided), z-sort them and create
> QGraphicsItems...
>
> ..however this is only if you want to get rid of OpenGL and don't
> depend on any external library.
And remember: if you are more familiar with (or want to stick with) the Qt QPainter API, but still want to get the benefits of OpenGL hardware acceleration, you can always paint on a QGLWidget, with a QPainter as well :)
Cheers, Oliver
--
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22
More information about the Qt-interest-old
mailing list