Results 1 to 15 of 15

Thread: Unity 3d and QT , is possible ? :)

  1. #1
    Join Date
    May 2014
    Posts
    13
    Thanks
    4

    Default Unity 3d and QT , is possible ? :)

    Hi

    I'm new in this forum

    I've a question :
    I can use QT for programming the android’s app , but can I import in this project the animation created with unity 3d ?

    If yes how ?

    Because I have to create an android application in which a 3d avatar (Rigged model) must move according to the commands given, and I was thinking to use QT 5.3 framework for do crossplatform app and Unity 3d for the animation

  2. #2
    Join Date
    May 2013
    Posts
    321
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    9
    Thanked 8 Times in 8 Posts

    Default Re: Unity 3d and QT , is possible ? :)

    Why not use directly the Unity Gui ? They have all you need.

  3. The following user says thank you to Alundra for this useful post:

    aeroxr1 (27th May 2014)

  4. #3
    Join Date
    May 2014
    Posts
    13
    Thanks
    4

    Default Re: Unity 3d and QT , is possible ? :)

    because in my app I want to include the 3d avatar , but I want to insert other parts that for do those I will have to use or QT LIBRARY or android framework . For example :
    - import data from bluetooth
    - save data
    - graph plotting



    Is possible to separate animation and the other part of app ? mmm

  5. #4
    Join Date
    May 2013
    Posts
    321
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    9
    Thanked 8 Times in 8 Posts

    Default Re: Unity 3d and QT , is possible ? :)

    - import data from bluetooth
    You will have to use java SDK to make a .jar and use it in Unity using AndroidJava class in c# for example.
    - save data
    You can use Serializer class in c#.
    - graph plotting
    It's the only part who will be hard at the end I think. You can create one using unity GUI surely but that will take time.

  6. The following user says thank you to Alundra for this useful post:

    aeroxr1 (27th May 2014)

  7. #5
    Join Date
    May 2014
    Posts
    13
    Thanks
    4

    Default Re: Unity 3d and QT , is possible ? :)

    Maybe with Unity3d is better to use android framework instead QT framework ?

    Then create project with Unity3d and export in Android Project like library ? Is possible right ?

    sorry for off topic question, but you are the only people that answer me on all the web

  8. #6
    Join Date
    May 2013
    Posts
    321
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    9
    Thanked 8 Times in 8 Posts

    Default Re: Unity 3d and QT , is possible ? :)

    it's possible to link java in unity, you only have to put your .jar in "Plugins/Android/" on the root "assets" folder.
    When you did that, you can acces in script to call function from this .jar, if you have custom activity don't forget to write in manifest.
    If you have permissions needed, for bluetooth you need internet, you have to add at the end of manifest : "<uses-permission android:name="android.permission.INTERNET"/>".
    I'm not sure it's possible to link unity in a java project it's why I said to use the Unity GUI who has already widgets who can be used.
    When the gui is done and working, you only have to link the java with unity to call the correct function, you can use "UnityPlayer.SendMessage" to make event "java<->unity".

  9. #7
    Join Date
    May 2014
    Posts
    13
    Thanks
    4

    Default Re: Unity 3d and QT , is possible ? :)

    Thanks
    In the free version of Unity are the plugins avaible ? I didn't know

    For in topic return , if I don't use Unity3d , which library should I use to do what I have to do with QT framework ?

    Thanks a lot !!!!!!!!!!!!!!

  10. #8
    Join Date
    May 2013
    Posts
    321
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    9
    Thanked 8 Times in 8 Posts

    Default Re: Unity 3d and QT , is possible ? :)

    You can do your java working in the free version, the pro version is only a question of render feature.
    About the library, all depend on what you want to do, Ogre3D can be used, it's open source, but need more work to have android app working.

  11. #9
    Join Date
    May 2014
    Posts
    13
    Thanks
    4

    Default Re: Unity 3d and QT , is possible ? :)

    Ogre3D is compatible also with QT ? O.o

    However I want to move a single part of model's body (the model is a rigged human model)

  12. #10
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Unity 3d and QT , is possible ? :)

    You should be able to use both Unity and Ogre3D with Qt. I know by fact that Ogre can render to a texture which you can later use, with Unity it is probably the same. Basically anything that can be rendered using OpenGL either to a custom context or to a FBO/texture can be reused by Qt's OpenGL rendering system.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  13. #11
    Join Date
    May 2014
    Posts
    13
    Thanks
    4

    Default Re: Unity 3d and QT , is possible ? :)

    Yes but how can reuse Unity ? :/ It doesn't seem simple

  14. #12
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Unity 3d and QT , is possible ? :)

    Quote Originally Posted by aeroxr1 View Post
    Yes but how can reuse Unity ? :/ It doesn't seem simple
    If it were simple, you'd have zillions of Unity based games out there.

    If you expected something along the lines of:
    Qt Code:
    1. int main(int argc, char **argv) {
    2. QApplication app(argc, argv);
    3. UnityGame game;
    4. game.letThereBeAGameIWant();
    5. return app.exec();
    6. }
    To copy to clipboard, switch view to plain text mode 

    then it ain't gonna happen. You have to put a lot of work into it.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  15. #13
    Join Date
    May 2014
    Posts
    13
    Thanks
    4

    Default Re: Unity 3d and QT , is possible ? :)

    hahahaha
    Yes I imagined

    But I'm looking for the best team
    ogre, rajawali or unity3d with qt framework or android framework

    I'm undecided..

    QT yes or qt not ?
    Unity or ogre ?

    uff..

  16. #14
    Join Date
    May 2013
    Posts
    321
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    9
    Thanked 8 Times in 8 Posts

    Default Re: Unity 3d and QT , is possible ? :)

    Ogre3D is more easy to use with Qt because you have access to code source and you work using c++.
    Unity you don't have access to code source or lib, you only write script inside the editor, it's not flexible.
    The only thing you have to do to use Ogre3D is to create a class who inherit from QWidget.
    That will gives you the widget working for Direct3D and OpenGL without problems.
    Here an example of what that will gives you, it's my 3D Engine Editor :
    http://uppix.com/f-DreamEditor145385595c00169051.png
    Last edited by Alundra; 28th May 2014 at 04:37.

  17. #15
    Join Date
    May 2014
    Posts
    13
    Thanks
    4

    Default Re: Unity 3d and QT , is possible ? :)

    Thanks a lot

    I will search on internet ogre's information

Similar Threads

  1. Replies: 8
    Last Post: 12th September 2012, 13:30
  2. Replies: 0
    Last Post: 10th July 2012, 09:36
  3. Ubuntu Unity - GOODBYE SYSTEM TRAY
    By genjix in forum General Programming
    Replies: 1
    Last Post: 13th May 2011, 07:51
  4. Ubuntu Unity native menu bar
    By liversedge in forum Qt Programming
    Replies: 1
    Last Post: 8th May 2011, 23:18

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.