Game Development Community

Adding DTS models to TorqueX 3D

by Derrick Lau · in Torque Developer Network · 04/30/2010 (1:28 pm) · 1 replies

I downloaded a blender model and converted it into Torque's DTS format. I then tried adding this model to my Torque X 3D Visual Studio 2008 Professional project, but the content importer would not recognize it. I then tried importing this model via the Torque X 3D scene editor but it keeps crashing the editor.

What am I doing wrong here?

#1
04/30/2010 (2:16 pm)
To continue, I added the .dts file to my XNA Game Studio project, set the type as content and not to build, just copy to output directory. I build and run the project, but I get an exception thrown in Resource<DynamicVertexBuffer> CreateDynamicVertexBuffer(D3DVertexBufferProfile profile, int sizeInBytes) with the sizeInBytes parameter being 0, and the exception being:
ArgumentOutOfRangeException

{"Resource size must be greater than zero.\r\nParameter name: sizeInBytes"}