Page 1 of 1

Starting another 3D-App from inside Irrlicht?

Posted: Sun Feb 25, 2007 12:03 pm
by noreg
Anybody has some hints how to do it and which problems could arise? Do you have to stick to one interface, like using only OpenGL OR Driect3D? For the beginning it would be sufficient to be able to start some Blender exes from Irrlicht.

Posted: Sun Feb 25, 2007 3:08 pm
by datamagik
Programs are composed of data types and the methods or functions for manipulating them. To actually combine two programs you will need to at least be familiar with the features of those two programs.

Since Irrlicht uses object oriented programming throughout it is fairly straightforward to get at those classes. Blender (as I understand it) relies heavily on a scripting language to perform many of its tasks (PERL as I recall).

Since Irrlicht 3D Engine is a library, you could create an application with a PERL interface (probably just a simple command line interface), then create or modify the Blender PERL scripts to make the two talk to each other.

Posted: Sun Feb 25, 2007 5:15 pm
by noreg
Thanks for your answer. But thats already too much. I don't want to exchange data yet. Just start the other exe and after termination continuing with my Irrlicht app. Kinda exec command.

Posted: Tue Feb 27, 2007 8:47 pm
by noreg
Ok, i thought this is a newbie question. It probably is a C++ newbie and not really Irrlicht related. I am sorry i don't know the right C++ function. But i would really appreciate if someone could help with that (i assume) supernewbie question.

Posted: Tue Feb 27, 2007 9:15 pm
by xDan
If I understand you right, and you are using windows, it may be CreateProcess you are looking for
http://msdn2.microsoft.com/en-us/library/ms682425.aspx

also there is a system("") command in stdlib.h