Beta2 (user error): cannot load new 3D .dts objects
by Alex Rice · in Torque Game Builder · 04/18/2006 (7:58 am) · 8 replies
In Beta 2 Level Builder, the only way I have been able to add new 3d .dts objects , because it cannot be done through the GUI, I had to create a folder data/shapes in my project, and put the .dts and .png files in there. I cannot see where in the script it actually loads the .dts objects- it must be compiled code, and I guess it loads everything in that directory with a for() loop. That concerns me a little bit it will make it harder to override the .dts loading behavior, if iit were ever necessary later.
Now it's loading the dts shapes but not the textures. That latter part is probably my own error.
Now it's loading the dts shapes but not the textures. That latter part is probably my own error.
About the author
#2
We even tried the method with a fresh Beta 2 Build and it works fine as well...so either your build is broken, or your .dts is broken - sorry, I wish there was a better answer than that...
04/26/2006 (3:54 pm)
Wow, that is a stumper, especially since I just did the same thing you did and my 3d shapes work just fine...We even tried the method with a fresh Beta 2 Build and it works fine as well...so either your build is broken, or your .dts is broken - sorry, I wish there was a better answer than that...
#3
e-mail: mattl (at) garagegames.com
04/26/2006 (4:15 pm)
Most likely the origin of your shape is way off and the little 3d shape viewport is looking at the origin, but no geometry is near.... or my other guess would be the scale of your shape might be so massive that the vieport could actually be inside your geomtry, hence not seeing anything. Feel free to send me your .dts and textures and I'll try em out.e-mail: mattl (at) garagegames.com
#4
04/26/2006 (4:33 pm)
Good point Matthew- maybe ShowToolPro is smarter about adjusting the viewport. I will check the size & origin and see if that's it. If not I will email the files to to you tonight. Thanks!
#5
Warning: I might not get a chance to look at it for a few days, Thursday (tomorrow) and Friday I'm going to be out of the office because I'm getting married Saturday :)
04/26/2006 (4:36 pm)
Np :) just did some tests ( like duplicating the existing 3d shapes ) and they seem to work, so I'm guessing it's one of those two, especially the scale, since torque scale is much much smaller than most 3D programs. Many times I've brought in huge models into TGE not knowing how big the scale difference was.Warning: I might not get a chance to look at it for a few days, Thursday (tomorrow) and Friday I'm going to be out of the office because I'm getting married Saturday :)
#6
04/26/2006 (4:38 pm)
OK congratulations - by the way!
#7
EDIT: I have the 3D soldier of the wiki working in my last beta so must to be the model...
04/27/2006 (8:54 am)
Ewww man congratulations :) :) :)EDIT: I have the 3D soldier of the wiki working in my last beta so must to be the model...
#8
05/11/2006 (10:50 pm)
Thanks all - yeah it was definitely the scale. A model that is 1 unit in XSI has to be scaled by 0.05 to get it to show up reasonably in TGB!
Torque Owner Alex Rice
Default Studio Name
I have cube.dts and cube.png. This .dts file loads fine Torque ShowToolPro - so nothing is wrong with the dts or the texture.
I copy both files into my Project/data/shapes folder. I fire up my TGB project and on the Create tab there is a (new) empty square listed under 3DShapes. I can add it to the Level but it displays invisible. Nothing shows up in the console.
I also tried creating the shape by hand from the console, but I get the same thing in TGB - an invisible t2dShape3d. Again- no errors no nothing indicating something is wrong
Help!