4 registered members (ozgur, Ayumi, VHX, monarch),
1,161
guests, and 4
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Using the 3dgs engine sdk with Qt Creator
#461821
08/23/16 13:36
08/23/16 13:36
|
Joined: Sep 2009
Posts: 993 Budapest
Aku_Aku
OP
User
|
OP
User
Joined: Sep 2009
Posts: 993
Budapest
|
I struggled to use an IDE as a first goal, with GUI builder as a second goal, that can cooperate with 3DGS. I tried basicly the Eclipse with Cygwin and alternated with MinGW. I was able the sample program get to work.
At the second goal, i wasn't able to create an environment that works successful. That is the most possible, my knowledge was poor. I remark, i used Google extensively, and i made approximately twenty or more variations. As a GUI builder i tried WxWidgets, the result was: tragic. As a GUI builder i tried GTK, the result was: weak. I couldn't get a working executable.
So, i gave up everything, and i began from the scratch. Finally, i have found Qt. It works! Together with 3DGS! Unfortunately, have to throw up using Eclipse, although its features are great. But this time it seems to me, Qt Creator has enough abilities to create well working projects for using the 3DGS engine.
|
|
|
Re: Using the 3dgs engine sdk with Qt Creator
[Re: Aku_Aku]
#461827
08/24/16 00:07
08/24/16 00:07
|
Joined: Oct 2007
Posts: 5,210 İstanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
|
Qt creator should be a c++ ide. It should be giving you options to add include and library directories and a tool to add a list of libraries you want to link.
Gamestudio sdk is fairly simple to setup regardless of the ide you are using. Steps are as follows: Add sdk_engine folder as both an include directory and a library directory. Add acknex.lib to linker settings.
that's it.
Also what do you want to achieve with all this gui libraries and gamestudio sdk? Why not just use visual studio 2015 community(which is free)? Gamestudio is windows only anyway.
3333333333
|
|
|
Re: Using the 3dgs engine sdk with Qt Creator
[Re: Quad]
#461833
08/24/16 08:37
08/24/16 08:37
|
Joined: Sep 2009
Posts: 993 Budapest
Aku_Aku
OP
User
|
OP
User
Joined: Sep 2009
Posts: 993
Budapest
|
I want to create a GUI builder program for 3DGS applications. And why do i don't use Qt, if it is so simple?
This time i have only one problem, i got the message: Error E1241: Can't open DirectX device, when i try to bind the engine to a widget on the Qt window.
I'm afraid the answer will not be so quick, this topic is visited no so frequently.
Anyway thanks for your interest and help.
Playing a bit with the code, the error was eliminated. But now, i can't close the engine with engine_close(). After the closing engine_status gives back 0, that means it is closed. But i can see it in the tasklist in task manager. What could be the reason?
Last edited by Aku_Aku; 08/24/16 20:01.
|
|
|
Re: Using the 3dgs engine sdk with Qt Creator
[Re: Aku_Aku]
#461863
08/26/16 10:31
08/26/16 10:31
|
Joined: Oct 2007
Posts: 5,210 İstanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
|
I am not sure how you are using the engine. Do you run acknex.exe seperately from your qt gui app?
But i am guessing you are using engine sdk since you can still call engine_status. i mean if you are using engine sdk and starting engine with engine_open and closing with engine_close and can still call engine_status then you also have to somehow end your qt app/loop for your process to finish. Also i do not know to which extent you plan to use qt bu i am not sure if qt is the way to go. At the very least try to merge qt message loop and engine input/message loop. And try to sync engine frames with qt. I tried qt once for a editor like gui but it in the eay i used it it required lots of sync/glue code between engine and qt and it became a real mess real quick. I think in the context of a game engine/realtime frame based apps a more immediate mode gui approach is suited better. Unity editor is such an app that uses immediate mode gui.
3333333333
|
|
|
Re: Using the 3dgs engine sdk with Qt Creator
[Re: Quad]
#461864
08/26/16 10:33
08/26/16 10:33
|
Joined: Oct 2011
Posts: 1,082 Germany
Ch40zzC0d3r
Serious User
|
Serious User
Joined: Oct 2011
Posts: 1,082
Germany
|
You have to exit the process manually using exit() or any windows apis like ExitProcess(0) engine_close closes the engine but not the "parent" process nor its other threads. Its only a DLL in this case
Last edited by Ch40zzC0d3r; 08/26/16 10:35.
|
|
|
Re: Using the 3dgs engine sdk with Qt Creator
[Re: Ch40zzC0d3r]
#462114
09/10/16 17:43
09/10/16 17:43
|
Joined: Sep 2009
Posts: 993 Budapest
Aku_Aku
OP
User
|
OP
User
Joined: Sep 2009
Posts: 993
Budapest
|
Before i try your proposal, i have to solve the following problem. I got this error message: error: anachronistic old-style base class initializer [-fpermissive] #define v(a) (*ev->a) // uses ENGINE_VARS *ev struct
Does anybody have a solution for this? Thanks in advance.
|
|
|
Re: Using the 3dgs engine sdk with Qt Creator
[Re: Aku_Aku]
#462117
09/11/16 00:53
09/11/16 00:53
|
Joined: Oct 2007
Posts: 5,210 İstanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
|
are you trying to compile with gcc g++?
3333333333
|
|
|
Re: Using the 3dgs engine sdk with Qt Creator
[Re: Quad]
#462120
09/11/16 10:16
09/11/16 10:16
|
Joined: Sep 2009
Posts: 993 Budapest
Aku_Aku
OP
User
|
OP
User
Joined: Sep 2009
Posts: 993
Budapest
|
Yes i do. I am sorry, i forgot to mention that (although i opened this topic with mentioned i am using Qt).
Last edited by Aku_Aku; 09/11/16 10:18.
|
|
|
Re: Using the 3dgs engine sdk with Qt Creator
[Re: Ch40zzC0d3r]
#462124
09/11/16 11:32
09/11/16 11:32
|
Joined: Sep 2009
Posts: 993 Budapest
Aku_Aku
OP
User
|
OP
User
Joined: Sep 2009
Posts: 993
Budapest
|
Thanks for the will to help, but i think you are wrong. If i try to use a preserved word, the message would say that: you try to use a preserved word. Instead of this, the compiler states this error message: anachronistic old-style base class initializer So, i suspect the root of problem is far away from the preserved word usage, so i can't see any reason to drop qt. For the record: this is the second proprosal to drop qt/gcc in this really tiny topic. I am curious how much time will happen this thing.
|
|
|
|