Can i create standalone aplication with torque as a library
by Pedro Garcia Lopez · in Torque Game Engine · 02/19/2004 (9:17 am) · 10 replies
Sorry, i'm doing a lot of questions but i need to know if there are any example of creating an aplication that uses TorqueEngine as a library ( .lib , .dll ). Resuming, i have my own framework and my .exe application and i need to embedd torque window in one window.
Is there any example of use of torque as a library inside other application instead torquedemo.exe ??. Thanks a lot companions.
Is there any example of use of torque as a library inside other application instead torquedemo.exe ??. Thanks a lot companions.
About the author
#2
Don't worry ted,and thanks.
02/19/2004 (10:56 pm)
I don't really need use torque as a Dll, i can use it as a .lib but i'm doing an application that uses a network peer2peer middleware to access the shared resourses that everybody see with a 3D client ( in this case is torque ). Everybody walk in a 3D place and interact sharing resources, talking together, etc. I need torque as a visualizer of this resources that are dinamically retrieved from the middleware. Then, is useful for me to have a terrain and interior editor but the shapes must be dynamically placed in the world. Resuming, i need something more stand-alone, more basic , without server support and with a possibility to place shapes dinamically. Also i would like to embed torque open gl windows when i want ( with a setwindopos i suppose i can do ). Probably too much difficult to achieve all this. :)Don't worry ted,and thanks.
#3
02/20/2004 (12:17 am)
H
#4
02/20/2004 (8:21 am)
The .lib project is far from being a complete build of Torque : it's only the necessary parts to build the max and milkshape exporters and map2dif
#5
maybe we have different "Torque Engine Lib" projects (or do you mean the "DTS SDK" ???).
Also I consequently add each new class to both projects, so I always have a complete ".lib" if I need.
At least he has the source and can add them for him self (I hate this sentence ;-))
02/20/2004 (11:45 am)
Hmmm, maybe we have different "Torque Engine Lib" projects (or do you mean the "DTS SDK" ???).
Also I consequently add each new class to both projects, so I always have a complete ".lib" if I need.
At least he has the source and can add them for him self (I hate this sentence ;-))
#6
It sounds like Torque is probably the wrong piece of software for what Hector wants to do. Something like Ogre might be more approriate if all you want is a rendering library.
02/20/2004 (12:57 pm)
Sven, the .lib isn't suitable for embedding torque in another .exe file. It's only for building the tool projects.It sounds like Torque is probably the wrong piece of software for what Hector wants to do. Something like Ogre might be more approriate if all you want is a rendering library.
#7
02/21/2004 (8:30 am)
Sven, if you didn't modify the original Lib project to include the whole of Torque, even adding all new classes still leaves you with an incomplete lib : this is well documented and NOT an opinion, but a fact :)
#8
I thought it is complete. So thank you Mark and Nicolas to clear this point.
Maybe this could be a point for a resource ??
=> generate a complete, usable Lib project ;-)
02/21/2004 (9:09 am)
Ahh okay, I thought it is complete. So thank you Mark and Nicolas to clear this point.
Maybe this could be a point for a resource ??
=> generate a complete, usable Lib project ;-)
#9
If you could do it portably, it would be truly awesome.
I believe Ritter has embedded Torque succesfully, so you might take a look at how he did that.
The simplest thing to do in your case might be to integrate the middleware into Torque, rather than the other way around.
02/21/2004 (11:33 am)
You can't, because of how linkers work. If you compile to a .lib, the linker strips a lot of stuff out that Torque needs, like pieces of the console infrastructure.If you could do it portably, it would be truly awesome.
I believe Ritter has embedded Torque succesfully, so you might take a look at how he did that.
The simplest thing to do in your case might be to integrate the middleware into Torque, rather than the other way around.
#10
02/23/2004 (5:18 am)
You could make torque a python extension (using the pyTorque resource, which 'Ritter' made :D), then add python support to your other program and get it working that way I suppose. But this is all just a brain fart and I have no experiance with doing anything like that.
Torque 3D Owner Ted Southard