Torque3d & Managed Code
by Kevin Oliver · in Torque 3D Public · 05/20/2010 (10:10 pm) · 2 replies
Hi,
I have been thinking of purchasing the Torque 3D engine, but I really want to work in C#, as I am a lot more comfortable with it than C++. I was wondering if anyone had any feedback on what kind of performance hit I would be taking by calling unmanaged code, or perhaps the feasibility of porting the engine into C++/CLI(I haven't worked with this so, I have no idea of how much work it would be).
Thanks.
I have been thinking of purchasing the Torque 3D engine, but I really want to work in C#, as I am a lot more comfortable with it than C++. I was wondering if anyone had any feedback on what kind of performance hit I would be taking by calling unmanaged code, or perhaps the feasibility of porting the engine into C++/CLI(I haven't worked with this so, I have no idea of how much work it would be).
Thanks.
#2
at this time i can compile the engine with the mono libs, but i dont test call a c# dll...
i think that you can replace the console methods in the c++ code to call the c# version via mono?
www.mono-project.com/Embedding_Mono
www.mono-project.com/Scripting_With_Mono
05/21/2010 (8:27 pm)
its true, if you want c# its better choose TX Engine (or others like neoaxis or unity), or maybe integrate mono?, im trying to make this, maybe you want to try?...at this time i can compile the engine with the mono libs, but i dont test call a c# dll...
i think that you can replace the console methods in the c++ code to call the c# version via mono?
www.mono-project.com/Embedding_Mono
www.mono-project.com/Scripting_With_Mono
Torque 3D Owner Chris
If you are serious about making a game in Torque3D you will need to know some C++ basics, I am not talking STL, MFC or any other framework but just some basic stuff.
The great thing about Torque is there are lots of examples long as your good at searching the source code. For example if there is a console method that does something similar to what you want you can search and see how it works.
Also, ToqueScript is your friend when you are starting out, I know it may seem cooler to script in C# but TorqueScript can get a lot of shit done once you figure a few things out. I have thousands of lines of torquescript to do all kinds of neat stuff, I even wrote some of it in C++ first and moved it to TorqueScript later. And again searching the existing source is your friend for making new script stuff.
Along with Torque3D you should also buy Torsion as it supports real break points and step through scripts.
I hope this answers what you were looking for, post up if you have any specific questions.
Also if you want a pure MDN engine and can't deal with this C++ stuff look at visual3d.