Augmented reality in Qt



  • Hi

    I am looking for sample code of application using augmrnted reality written in qt



  • [quote author="dguimard" date="1291644951"]Hi
    I am looking for sample code of application using augmrnted reality written in qt[/quote]

    I am yet to come across any such sample code.



  • There was a session on Leveraging Qt Mobility for Creating Mobile Augmented Reality Services at QDD 2010. May be once the videos are out you might get some help.



  • You can try ARWave source (AR for Google Wave): http://code.google.com/p/arwave/downloads/list

    You can use popular augmented reality libraries with Qt framework. Open Scene Graph comes to mind.

    WikiTude is a well-known AR program that was written in Qt. Unfortunately, not opensource :P



  • [quote author="xsacha" date="1291646809"]You can try ARWave source (AR for Google Wave): http://code.google.com/p/arwave/downloads/list

    WikiTude is a well-known AR program that was written in Qt. Unfortunately, not opensource :P

    You can use popular augmented reality libraries with Qt framework by the way. Open Scene Graph comes to mind.[/quote]

    But its not in Qt, one will have to port it right



  • If you're talking about ARWave. Download the file that starts with "qtarwave_sourcecode"

    Otherwise I was just suggesting maybe they can use a standard C++ Augmented Reality library and combine it with their Qt code. I've seen this done in several places. Though, it may not be what OP wants.



  • [quote author="xsacha" date="1291647906"]If you're talking about ARWave. Download the file that starts with "qtarwave_sourcecode"

    Otherwise I was just suggesting maybe they can use a standard C++ Augmented Reality library and combine it with their Qt code. I've seen this done in several places. Though, it may not be what OP wants.[/quote]

    Thank you for pointing that out. I had not noticed it initially. Will explore it - would be great if can be used in mobile applications.



  • [quote author="xsacha" date="1291647906"]
    Otherwise I was just suggesting maybe they can use a standard C++ Augmented Reality library and combine it with their Qt code. I've seen this done in several places. Though, it may not be what OP wants.[/quote]

    How could you do that? I mean, to me, augmented reality is displaying information on top of whatever the camera of the phone (or device) is "seeing". To work nicely with Qt, the third party library would need to use the Qt types, like QCamera or QVideoWidget, isn't it?



  • [quote author="xsacha" date="1291646809"]You can try ARWave source (AR for Google Wave): http://code.google.com/p/arwave/downloads/list

    You can use popular augmented reality libraries with Qt framework. Open Scene Graph comes to mind.

    WikiTude is a well-known AR program that was written in Qt. Unfortunately, not opensource :P[/quote]



  • the wonderfull Nokiasdk is shipped with an old qtmobility 1.0.2 i think, the new qt mobility provide an example that use the camera.it look like that it is not possible unless we "pimpl" to the symbian layer on s60.
    I saw 2 samples , http://mirror2image.wordpress.com/2009/07/27/augmented-reality-on-s60-basics/ wich is excellent but the integration is hard
    and the camera focus provided by the symbian sdk for n97,n8 for instance, they show how to draw on the surface bitmap.
    http://developer.symbian.org/main/source/packages/openmar is also dedicated to s60 but i wanted to avoid to do the integration if possible, it seems that it is the only issue right?
    about the first link, thank you very much but i was more interested about how to manipulate the bitmap captured by the camera device.thank for any light...



  • Exactly, you won't find a pure Qt augmented reality app because it will rely on QtMobility 1.1 which was just released recently and isn't allowed on Ovi Store yet.

    You can combine plain C++ and Qt, however. There are several good AR libraries for this.
    Quite a lot are proprietary but I can recommend the simple and much used ARToolKit as a base to start from.



  • thank you very much



  • Hi There you can check this also
    i know it is long time this post is send but it still in search results
    so
    here is the link
    http://www.developer.nokia.com/Community/Wiki/Augmented_Reality_Applications_with_NyARToolkit_and_Qt3D

    Thanks ;)



  • Hi,

    I can recommend this amazing project. Take a look ;)

    https://github.com/hipersayanX/Carnival-LiveCam

    BR,



  • The best AR support on mobile devices is available with Apple’s ARKit and Google’s ARCore. But you also have the option to rely on cross-platform tools which go beyond ARKit and ARCore, for example: Wikitude.

    Wikitude bridges the gap between different devices, platforms, and levels of AR support. With a single cross-platform API it allows to integrate AR features across iOS, Android and Windows with a single code base, while having a much higher device coverage than ARKit and ARCore.

    V-Play Engine now makes it possible to use Wikitude in your Qt/QML app with its Wikitude Plugin. You can embed Wikitude Augmented Reality views with a few lines of QML:

    import VPlayApps 1.0
    import VPlayPlugins 1.0
    
    App {
     WikitudeArView {
       id: arView
       anchors.fill: parent
       arWorldSource: Qt.resolvedUrl("assets/11_Video_4_Bonus-TransparentVideo/index.html")
       running: true
       cameraPosition: WikitudeArView.BackCamera
       licenseKey: ""
     }
    }
    

    For more details on how to create cross-platform AR apps with Wikitude and Qt, see this guide: https://v-play.net/cross-platform-development/qt-ar-why-and-how-to-add-augmented-reality-to-your-mobile-app#why-use-wikitude-instead-of-arkit-or-arcore


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.