Posts Tagged ‘OpenGL’

Using QML with 3D and OpenGL

Monday, November 8th, 2010

I’m a real newbie when it comes to OpenGL, but my personal plan is to try to learn as much as possible about OpenGL ES 2.0 and be able to understand it better e.g. how things like Qt Scene Graph works. Of course, it would be nice to be able to contribute to the Qt Scene Graph project too at some point.

Now I have spend few evenings trying to study how you can do things with OpenGL and I went little bit side tracked at some point. I started do some research how could use a QML application in 3D. The solution was actually much easier than I thought. Here’s the PoC video about running Samegame, the QML demo application rendered on a 3D cube.

As you can see from the video, it’s not perfect yet. The mouse events aren’t delivered with the correct coordinates to the QML item, but it shouldn’t be a big deal to transform them to the correct coordinates.

(more…)

Qt/3D Running on N900

Friday, January 29th, 2010

Qt Labs is the place where you can follow the direction of the Qt development. Of course it’s worth to follow the Qt Roadmap also. If you are interested in about what’s happening in Qt world, it is definitely worth to follow the Labs (in my opinion).

One of the most interesting projects at the moment is Qt/3D. As you might have noticed Qt doesn’t support 3D in painting when using  QPainter, but now there is ongoing project called Qt/3D which brings this to Qt world.  Instead of QPainter you can use QGLPainter for 3D drawing. There has been been possibility to use OpenGL before, but what Qt/3D brings is a Qt way to do that. Which is nice.

There are good blog posts about Qt/3D in Qt Labs blog section. So it doesn’t make sense for me to write more about this subject. You can check out the blog posts:

I decided to take a look at if it is possible to run Qt/3D applications on N900 and yes, it is possible. Below is a video where I run several Qt/3D demos on N900. The following demos are ran on the video:

  • cubeaccel – A simple cube demo that reacts on device accelenometer values
  • pageflip – A demo which models how to switch a newspaper page
  • teapot – The classic 3D “Utah Teapot”
  • planets – A demo which demonstrates the animation done with QSphericalAnimation

(more…)