Game Development Community

Something wrong with a collision mesh

by Daniel Buckmaster · in Artist Corner · 01/16/2007 (8:11 am) · 9 replies

I finally got a model exported into Torque, and when I collide with it, the engine crashes and the console shows the following message:
Collision mesh names should start with Col or LOSCol, encountered 'Chainsword' in detail level 1

And this is my object hierarchy:
img239.imageshack.us/img239/7569/objecttree2tl5.png

About the author

Studying mechatronic engineering and computer science at the University of Sydney. Game development is probably my most time-consuming hobby!


#1
01/16/2007 (11:50 am)
It is talking about a mesh, and you only show the objects in the project... It is the mesh which name you must change.
#2
01/16/2007 (4:22 pm)
...
#3
01/17/2007 (12:58 am)
I had this same problem recently and got some help from Joseph. If you are using Blender 2.40 or higher you have to name your collision empty Collision0 and your mesh ColMesh0. I have yet to test this though because of other things I am working so give it a try. If it doesn't work let me know, I'm going to try it today. Good luck.


Edit:

I just tried it and it worked fine. Here's how:

Set an empty and name it Collision0 then parent it to Shape. Make your collision mesh and name it ColMesh0, you can name the datablock that as well for simplicity, parent that to your collision empty. Make sure your collision mesh is convex not concave, a simple cube is fine for starters. Export, test, and that should do it. If you still have trouble I can e-mail you a sample file some you can see how it is set-up. Best of luck.

P.S. I was using exporter 0.93, if you don't have it I suggest downloading it first Here.


As a side note the "LOSCol" is for Line Of Site Collision which is used by Torque's raycast to determine if the object is in view or not. I'm not very experianced in this yet so I can't help you too much on that point. You probably won't need it yet so do some digging when you need to implement it.
#4
01/17/2007 (9:18 am)
Thanks for the help! I've exported to Torque before (in .921, now I have .93), but this time I'm experimenting with animations as well. Anyway, I'll have a go at renaming the mesh itself - didn't think of that!

EDIT: Doesn't seem to work, even after renaming the collision empty to Collision0 and the collision object to ColMesh0 (renamed the mesh to that as well).
Here's the .blend file , and here's the .dts.
#5
01/17/2007 (9:49 am)
...
#6
01/17/2007 (3:27 pm)
...
#7
01/18/2007 (9:59 am)
Thanks! That worked. I still get the console error, but the shape works. Thank you again.
#8
01/18/2007 (10:23 am)
...
#9
01/19/2007 (7:21 am)
Heh, thanks. Still needs a lot of optimising, though...