SWBFGamers

Modding for the Original SWBF1 and SWBF2 => 3D-Modeling, Animation and Texturing => Topic started by: Dread_ on February 09, 2016, 03:52:57 PM

Title: No Collision, still trapped!
Post by: Dread_ on February 09, 2016, 03:52:57 PM
Hey,
I created a model in blender, an accessible building, you can acces it, but you can't leave it! Well not through the entrances I created, I edited a previous model and deleted previous faces to create a door, now whenever I test it i can walk through the door, but then an invisible plane/face Pops up and I can't get out of the building, any ideas what happened here? Help would be appreciated. :cheers:
Title: Re: No Collision, still trapped!
Post by: Ltin on February 09, 2016, 04:02:23 PM
im not the most advanced (as in i would have no idea what i was doing if i tried to make a model) but you did deleted all sides to the wall yes?
Title: Re: No Collision, still trapped!
Post by: Ginev on February 09, 2016, 04:04:21 PM
The same happen and to my model.I tryed 5 times to fix it and without luck.I enter through my custom made door but i cannot go back.Its like invisible wall.If you made collision do not remove the unused faces behind the model because that will create holes and sometime this is the problem.However i tryed that and did not worked for my model.So i am just like you...waiting for help  :slap:
Title: Re: No Collision, still trapped!
Post by: Dread_ on February 09, 2016, 04:24:07 PM
@Ltin Yes Sir

@Ginev yea well i didn't really cut the door out of the plane/face, instead I created the frame, using 4 edges, then connected the frame with the other walls to the left and right, but yea it's just like you say, I enter the building and then an invisible wall just pops up out of nowhere and I'm trapped. I really don't know what the problem is, since theres nothing to select in Blender and all the other doors work just fine, I even have that problem with a door that's been there in the first place...
Title: Re: No Collision, still trapped!
Post by: VanFanel1980mx on February 10, 2016, 12:48:31 AM
What is the structure of your model? does it have a separate collision and shadow volume meshes?
Title: Re: No Collision, still trapped!
Post by: Dread_ on February 10, 2016, 06:41:39 AM
No neither. Just whipped it up in blender, well I used an object from bespin2, the bes2_bldg_mall.msh, I believe it deson't come with a collision geometry or an sv mesh, correct me if I'm wrong :shrug: even if it does, it's pretty weird the original door also has that problem?
Title: Re: No Collision, still trapped!
Post by: RepComm on February 10, 2016, 02:45:18 PM
You will more than likely want to duplicate the mesh (and remove uvs/materials, etc) and rename it to the standard model collision names battlefront likes.

If battlefront doesn't detect a collision mesh (by finding it's specific name), it will create some automatically, but this means that it takes the easiest route (convex hull basically).

If you want to see whats going on under the hood, try using SPTest and running showcollision command to see whats up.
Title: Re: No Collision, still trapped!
Post by: Dread_ on February 11, 2016, 11:20:30 AM
Yeah in the picture below you can see what I got running rendercollision in SPTest. And what do you mean by standard model collision names?
Title: Re: No Collision, still trapped!
Post by: VanFanel1980mx on February 11, 2016, 12:33:31 PM
Battlefront's meshes use a specific format and naming to determine how collisions work, is advised to go the extra steps to make your models to properly work in-game.
Title: Re: No Collision, still trapped!
Post by: Dread_ on February 11, 2016, 12:58:23 PM
I see! Well to be honest I've never used any specific collision names before and up until now everything's been working just fine. But I found a solution, I added an msh.option file with -donotmergecollision and the problem's gone, the rest of the building still has a collision geometry, but the doorways, where it used to be, are fully accessible now.
Title: Re: No Collision, still trapped!
Post by: VanFanel1980mx on February 11, 2016, 07:43:41 PM
Quote from: Dread_ on February 11, 2016, 12:58:23 PM
I see! Well to be honest I've never used any specific collision names before and up until now everything's been working just fine. But I found a solution, I added an msh.option file with -donotmergecollision and the problem's gone, the rest of the building still has a collision geometry, but the doorways, where it used to be, are fully accessible now.
Yeah, that one works wonders, I almost forgot.
Title: Re: No Collision, still trapped!
Post by: Dread_ on February 12, 2016, 06:29:21 AM
 thank you anyway, guys :cheers:
EhPortal 1.34 © 2024, WebDev