Gamestudio Links
Zorro Links
Newest Posts
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
Data from CSV not parsed correctly
by jcl. 04/20/24 08:32
Zorro FIX plugin - Experimental
by jcl. 04/20/24 08:30
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (7th_zorro, 1 invisible), 581 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
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 Offline OP
User
Aku_Aku  Offline 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 Offline
Senior Expert
Quad  Offline
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 Offline OP
User
Aku_Aku  Offline 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 Offline
Senior Expert
Quad  Offline
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
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

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 Offline OP
User
Aku_Aku  Offline 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:
Quote:
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 Offline
Senior Expert
Quad  Offline
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 Offline OP
User
Aku_Aku  Offline 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: Aku_Aku] #462122
09/11/16 10:47
09/11/16 10:47
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
Qt can use any compiler installed on the system.
Im usually using msvc with it.

Anyways, this error usually pops up when you use a class variable name which is preserved by the compiler.
You should really drop g++ and simply use msvc, clang or intels compiler

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 Offline OP
User
Aku_Aku  Offline 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:
Quote:
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.

Page 1 of 2 1 2

Moderated by  TWO 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1