Unable to load a DTS model via TXB or code
by George Gibson · in Torque X 2D · 10/01/2008 (1:36 pm) · 7 replies
I've installed the newest version of the TXB. I'm trying to add a DTS model to my scene, but attempting to do so only crashes out my TXB. Before posting, I wanted to try adding a DTS model to the scene via code. While I get no script error upon it loading, as soon as I turn the camera where the model would fall into the FOV, the error is thrown: "Resource size must be greater than zero". It references "ResourceManager.cs" at line 421 (unmodified Torque X Pro 2.0).
This seems to be happening with any model that I attempt to load. As well, I'm following John K.'s recent example for adding a 3d asset to the scene.
Could someone point me in the right direction as to what I'm doing wrong?
(btw, I'm working on Windows Vista Home Premium 64-bit)
This seems to be happening with any model that I attempt to load. As well, I'm following John K.'s recent example for adding a 3d asset to the scene.
Could someone point me in the right direction as to what I'm doing wrong?
(btw, I'm working on Windows Vista Home Premium 64-bit)
#2
I beg forgiveness for my ignorance, here; thank you!
George
10/01/2008 (5:56 pm)
I'm not as versed where modeling is concerned. I can use a model of a chest which is textured fine without problems, but I cannot use a model of a small hut (assumed the same?). What defines a model as "skinned"?I beg forgiveness for my ignorance, here; thank you!
George
#3
Sean
10/02/2008 (5:16 pm)
That should be the same, and both should work. I have seen that error when loading a model that has a skin applied to it. Skinned models are where you have the CV's attached to the bone structures rather than a parented mesh to the bone.Sean
#4
This is in the engine and in 3D builder. I did get the engine to import a skinned mesh with some modification of PRO, however I have postponed my efforts in order to wait for the next update, with hopes that it will be added - without my hacking the code.
Sean
10/04/2008 (5:35 pm)
I can tell you, that right now - in the current version - you will get a exception once you add a skinned DTS. This is in the engine and in 3D builder. I did get the engine to import a skinned mesh with some modification of PRO, however I have postponed my efforts in order to wait for the next update, with hopes that it will be added - without my hacking the code.
Sean
#5
It would appear that, at least in the version that I have, skinned and animated DTS files are supported. I wonder if there's something else going on there.
10/05/2008 (5:23 pm)
I was able to load the player.dts file from the TGE Demo into a TX Starter Project, as well as all of the associated DSQ files, without any errors and without needing to change any of the TXPro code. I was not able to do this in TXBuilder, however.It would appear that, at least in the version that I have, skinned and animated DTS files are supported. I wonder if there's something else going on there.
#6
I will try to look into it into more detail this week.
Sean
10/06/2008 (8:14 am)
Intersting, I tried to load some of my own skinned meshes and the player.dts (from tgea) and received the same error - there must be something odd going on that causes the variable to be set to -1- chich causes the error.I will try to look into it into more detail this week.
Sean
#7
04/08/2009 (4:43 pm)
I am having the same problem , but i get system.indexoutofrange exception whenever i add a skinned model. Will it be supported in the next version ?
Torque Owner Sean T. Boyette