Doorway collision doesn't work
by Curtis Murray · in Torque Game Engine · 07/20/2009 (8:23 pm) · 7 replies
Hey there, I am having a problem with exporting objects from Milkshape 3D 1.8.4 into Torque.I have created a doorway, and when I export the door into Torque, I can't seem to walk through the doorway. When I walk into the doorway, I hit an invisible barrier.
How do I make it so when I hit the frame of the doorway, it will stop my player from moving but I can also walk through the doorway?
Also on a side note, I can't seem to export any materials from my project. How do I fix that problem too?
Thanks for whoever is willing to help!
How do I make it so when I hit the frame of the doorway, it will stop my player from moving but I can also walk through the doorway?
Also on a side note, I can't seem to export any materials from my project. How do I fix that problem too?
Thanks for whoever is willing to help!
#2
Is there anyway to get the mesh to only cover the actual doorway and not be in the shape of a cube the size of the doorway?
07/20/2009 (10:20 pm)
Hey, thanks for the explanation, but I also did try that, and I still couldn't move through the doorway. I then checked off the box that says "Create a visible copy of the collision mesh" and then exported it, and when I loaded it up, I say the doorway and the collision mesh, but the collision mesh was a white box that covered most of the doorway. So when I made the door bigger, the mesh resized as well.Is there anyway to get the mesh to only cover the actual doorway and not be in the shape of a cube the size of the doorway?
#3
Search for DTSPlus!, a Ms3d exporter to DTS/DSQ. Written by Chris Robertson, current T3D Collada Loader author, and it is a really good piece of middleware. Any issues using it are usually resolved by Chris rather quickly.
With this particular exporter, you get DSQ files, MultiRes LOD's, Collision meshes, LOScol meshes, billboards, Ground Transforms...everything you'll need to make good, working art for TGE...
Good Luck, enjoy!
For your example; I would make some collision and LOScol meshes for the actual 'frame'/doorway. They will need to be specifically named. Read up on documentation explaining about 'Collision' meshes and LineOfSight collision meshes.
Doors are a touch tricky, as collision meshes don't 'normally' animate. You can get ShapeBase objects mounting...and those retain collision meshes that follow their parent Mount's animation.
07/21/2009 (5:44 am)
Sounds as though you are using the 'stock' DTS exporter, written eons ago....Search for DTSPlus!, a Ms3d exporter to DTS/DSQ. Written by Chris Robertson, current T3D Collada Loader author, and it is a really good piece of middleware. Any issues using it are usually resolved by Chris rather quickly.
With this particular exporter, you get DSQ files, MultiRes LOD's, Collision meshes, LOScol meshes, billboards, Ground Transforms...everything you'll need to make good, working art for TGE...
Good Luck, enjoy!
For your example; I would make some collision and LOScol meshes for the actual 'frame'/doorway. They will need to be specifically named. Read up on documentation explaining about 'Collision' meshes and LineOfSight collision meshes.
Doors are a touch tricky, as collision meshes don't 'normally' animate. You can get ShapeBase objects mounting...and those retain collision meshes that follow their parent Mount's animation.
#4
I have both Torque DTSPlus Exporter v2.7.3 and Torque Game Engine (DTS) Exporter. When I use DTSPlus to export any of my models into torque, when I add them to the map, they do not show up properly. Only one or two sides show and the collisions do not work either.
Now with the regular TGE (DTS) Exporter, my entire model exports fine but the collision always seems to be around the entire model.
But I will take your word for it and I will look for this DTS Exporter you are talking about because I might have the wrong version of DTS.
07/21/2009 (1:20 pm)
Hey there Rex! I have both Torque DTSPlus Exporter v2.7.3 and Torque Game Engine (DTS) Exporter. When I use DTSPlus to export any of my models into torque, when I add them to the map, they do not show up properly. Only one or two sides show and the collisions do not work either.
Now with the regular TGE (DTS) Exporter, my entire model exports fine but the collision always seems to be around the entire model.
But I will take your word for it and I will look for this DTS Exporter you are talking about because I might have the wrong version of DTS.
#5
I began working on a scripted example, doors probably won't work, out of box, like you're hoping....you'll see.... I had a nice 'normal' scaled doorway, and had to 'KORKize' it to get the bounding box to fit thru; I'll go thru and see if I can finish it up and pass it along as a Resource.
07/21/2009 (2:36 pm)
2.7.3 and Ms3D 1.8.4 seem right, you'll need to name the meshes as the Exporter documents show. Having 'some' faces disappear, tells me there is something going wrong somewhere in your mesh group naming and detail levels.I began working on a scripted example, doors probably won't work, out of box, like you're hoping....you'll see.... I had a nice 'normal' scaled doorway, and had to 'KORKize' it to get the bounding box to fit thru; I'll go thru and see if I can finish it up and pass it along as a Resource.
#6
Not too sure, again I am relativily new to this.
07/21/2009 (2:50 pm)
Alright thanks. I am currently trying to make a building from Milkshape, just like the premade hut or tower that comes with Torque. Maybe I am using the wrong program to make buildings?Not too sure, again I am relativily new to this.
#7
I figured this out through using Torque Constructor instead of Milkshape.
Thanks for the help anyways though!
07/21/2009 (9:47 pm)
Disregard! I have finally figured out how to create buildings. The texture exports perfectly, and I can walk through doorways without hitting that invisible wall but the frame still stops the player. I figured this out through using Torque Constructor instead of Milkshape.
Thanks for the help anyways though!
Associate Steve Acaster
[YorkshireRifles.com]