Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt design for control panel in virtual world?



  • Hi, I'm investigating if we can use Qt for the following:
    We are creating a VR experience in which your are inside some futuristic airplain. We need nice control panels in this virtual airplain. Could we use Qt desing for this?
    Can we create control panels using Qt Design, run them so that they are rendered to some window on the desktop and can we copy the pixels from this window to the virtual world? Do we have access to the generated Qt pictures so that we can transfer that to the game engine?


  • Lifetime Qt Champion

    Hi
    But do you need interaction? So user can click on a panel inside the "game" ?



  • @Simmania

    I think using Unity3D or UnrealEngine works better in this case. What is your language you are using? What hardware?

    Can we create control panels using Qt Design, run them so that they are rendered to some window on the desktop and can we copy the pixels from this window to the virtual world?

    You can create some sort of overlay but I don't know if it will work with your VR environment.



  • @mrjj said in Qt design for control panel in virtual world?:

    But do you need interaction? So user can click on a panel inside the "game" ?

    Yes we will need interaction. So we will detect finger movement and need to genereate mouse clicks at those positions in the Qt destop world. That would have been my second question ;-)



  • @Pl45m4 said in Qt design for control panel in virtual world?:

    What is your language you are using? What hardware?

    I prefer to program in C++. It will be some standard desktop. Probably Windows 10 and maybe in the future Linux.

    The question is if I will have access to the generated window pixels so that we could copy them to the game engine.



  • @Simmania said in Qt design for control panel in virtual world?:

    It will be some standard desktop. Probably Windows 10 and maybe in the future Linux.

    The question was, if you plan to run your app on some VR hardware like OcculusRift or HTC Vive :)

    The question is if I will have access to the generated window pixels

    Depends on how you do it. In general, using Qt you have access to everything, you create there (everything else wouldn't make any sense).
    But how to pass it to your game engine, I can't say. Probably depends also on your game engine.


  • Lifetime Qt Champion

    Hi,

    There was a presentation on that theme at the Qt World Summit a couple of years ago. However I do not know at which state it is.



  • @Pl45m4 said in Qt design for control panel in virtual world?:

    Depends on how you do it. In general, using Qt you have access to everything, you create there (everything else wouldn't make any sense).
    But how to pass it to your game engine, I can't say. Probably depends also on your game engine.

    If we can access the generated pixels, we will be able to transfer that to a texture inside the game engine. No problem. But I do not know if we can access the pixels. If we can read the RGB values of all pixels in the final Qt window, that would be great.


Log in to reply