Import .x file in to Torque Engine
by Image College of Art & Tech (#00 · in Torque Game Engine · 05/22/2007 (3:10 am) · 1 replies
Hello,
I am new to Torque engine. please help me to import an .x file in to Torque engine.
Thanks.
I am new to Torque engine. please help me to import an .x file in to Torque engine.
Thanks.
Torque Owner Tim Heldna
You'll first need to convert it to Torque's native DTS format. How you do this will depend on which modelling package you are using - I find it odd that you didn't mention it in your post. It's impossible for others to help you if you don't provide specific, detailed information.
It's likely you will need to first import the DirectX file into a modelling package which might not be as easy as it sounds - I've struggled to find a decent DirectX importer - best I've found so far is 3DWin.
Once you have the DirectX file in your modelling application, you will need to configure it for use within Torque. This may include scale, orientation, collision, hierarchies, bounding boxes, nodes and other various bits and pieces. Exactly how painful this process is will depend on a few things, your skill and experience level, what the model is to be used for (static, animated, player controlled, requires collision? etc) and which modelling package you're using.
Now you're ready to export to DTS - so you'll need to download the appropriate plug-in. Once again, the plug-in required will depend on which modelling program you are using (this is getting frustrating isn't it, next time INCLUDE MORE INFORMATION).
Once you've got it into the engine, you may need to write a script for it. If you're using TGEA you'll also have to write a material script. If it's an animated object, you will need yet another script.
If it's textured, you'll have to ensure that the texture is a power of 2 and that it is in the JPG or PNG format.