Collision problem

GTA:V Modding with ZModeler3 discussion.

Moderator: madga182

Collision problem

Postby RPUCorne » Sat Dec 23, 2017 10:05 am

Hello guys,

I have a problem with the colissions from my boat. So the problem is that I made a custom collision for my new boat that I am coverting right now but the collisions are not working on the world or the water, but it does work on objects that have their own collisions like cars and trailers. So I put the boat on a few trailers to test the collisions and it turned out that the collision works perfectly fine if you walk on the boat as you can see in the pictures below.

I hope someone can help me with this problem.
Thanks!

Image
Image
RPUCorne
 
Posts: 13
Joined: Mon Oct 05, 2015 8:19 am

Re: Collision problem

Postby Oleg » Sat Dec 23, 2017 10:28 am

you should have two collisions grouped together and converted to [COL] compound object.
the first of them should have no "Deformable" option toggled in properties->mesh->vertices->format. this collision is used for interaction with world and water (and in some cases with player/ped). Another collision should have "deformable" option toggled and is used to interact with other collideable objects (like vehicles, trailers and peds).

double collisions are quite tricky to get used to, even more they are not well known and explored, assuming you have to assign correct options on them too. however, it is worth to explore original boat collisions to see how they are made and what properties are used.
User avatar
Oleg
Site Admin
 
Posts: 8065
Joined: Fri Feb 06, 2004 3:54 am

Re: Collision problem

Postby RPUCorne » Tue Dec 26, 2017 3:10 am

Thank you for helping me!

So I explored the original boat collisions to see how they are made like you suggested me, and I finaly got it working.
(the collisions are perfect :)) But now I have the problem that the boat don't float the way I want as you can see on the pictures below. (It float and sails well but the boat is far too deep in the water)

Image

Image
RPUCorne
 
Posts: 13
Joined: Mon Oct 05, 2015 8:19 am

Re: Collision problem

Postby Oleg » Tue Dec 26, 2017 3:17 am

may be it somehow relates to vehicle's meta or "E" values on collision objects? have you tried to copy "E" value from original (perfectly similar in size) boat's collision?
User avatar
Oleg
Site Admin
 
Posts: 8065
Joined: Fri Feb 06, 2004 3:54 am

Re: Collision problem

Postby RPUCorne » Tue Dec 26, 2017 3:23 am

Yes, I have copied the values from the original collisions.
I'm trying now to find something in the handling or the vehicles meta.
RPUCorne
 
Posts: 13
Joined: Mon Oct 05, 2015 8:19 am

Re: Collision problem

Postby Oleg » Tue Dec 26, 2017 7:39 am

try moving local axes of geometry objects vertically (up or down), as these are used as center of mass. it might be related to this issue.
User avatar
Oleg
Site Admin
 
Posts: 8065
Joined: Fri Feb 06, 2004 3:54 am

Re: Collision problem

Postby RPUCorne » Wed Dec 27, 2017 9:52 am

I tried to move the local axes, it works a bit, but it does not give the effect that is desired. I have also found a rule in the handling.meta (<fBoxFrontMult value="0.900000" />) I changed it to 3.900000 and then you get the effect on the picture below. So it only lifts te front up.

Image
Image
RPUCorne
 
Posts: 13
Joined: Mon Oct 05, 2015 8:19 am

Re: Collision problem

Postby tall70 » Wed Dec 27, 2017 11:45 am

Percentsubmerged value will also set your submerged depth, but boat handling was always sensitive and difficult to do... boat reactions to waves, steering, front of the boat lift while accelerating, leaning in turns, and more.
User avatar
tall70
Beginner
 
Posts: 466
Joined: Tue Aug 11, 2015 3:13 pm

Re: Collision problem

Postby RPUCorne » Wed Jan 03, 2018 8:56 am

I have not done much more on the model because of the holidays.
But last night I downloaded the new 64 bit zmod, and when I started testing the model, the boat suddenly floats a lot better.
But after that was solved (probably by the new zmod because I have not changed much more) I got another problem that peds fall through the collision in some areas now.

Image

The problem:
Image

My collision in zmod:
Image

So that is kinda weird, so I got a backup from when the collisions worked well, and I exported the model again with the "old" zmod and then I got the same problem as before (the boat is too deep in the water but collisions are fine).

Any ideas? :p

@tall70 Thanks for the tip but unfortunately this did not work sufficiently.
RPUCorne
 
Posts: 13
Joined: Mon Oct 05, 2015 8:19 am

Re: Collision problem

Postby tall70 » Wed Jan 03, 2018 2:23 pm

Is this deformation off collision on picture? Which is the one for walking...

I had wierd collision offset issues...it would be alligned with lods, but in game it would be shorter on one side and good on all others. I moved that affected side vertices in a little different position then I recalculated normals, everything became a fine... also make sure your axis is set to parent

Also...you would have much better result to make stairs collision as flat panel, especially if it's steep, because character stumbles over edges of those and to stabilize more your collision model it would be good to weld all those round edges into one corner, especially if it's deformable collision which needs to be as smallest as possible...check tug's collision model to see what i mean for stairs and simplicity. I was explained that deformable off collision can be more detailed, so you can add as much boxes to bounce around stuff as you want, but stairs just work better flat for player walking in pitch. Same goes for rails, they can be just panels, because player don't crawl through them anyways, but it will climb over nicely. I know that all means more work thou...['_']
User avatar
tall70
Beginner
 
Posts: 466
Joined: Tue Aug 11, 2015 3:13 pm

Re: Collision problem

Postby Oleg » Wed Jan 03, 2018 9:03 pm

tall70 wrote:...it would be shorter on one side and good on all others.

it sound like bad BVH (bound volume hierarchy) split of geometry (game traverses bound volume tree in wrong way and rejects some of collision geometry probably). the volume split done by zmod is not optimal, but i've tested it with additional dummy boxes earlier and it was correct during tests. also, there was a problem with "neighbor" polygons setup in earlier builds (3.2.0 has not this issue), have you checked it for this particular problem to be solved?
User avatar
Oleg
Site Admin
 
Posts: 8065
Joined: Fri Feb 06, 2004 3:54 am

Re: Collision problem

Postby tall70 » Fri Jan 05, 2018 5:45 pm

It happened only once to me about half year ago, not again later, i was staring at collisions model matching lods and didn't know why, but it fixed it self after i moved vertices little, then never happen to me again, thanks for explanations
User avatar
tall70
Beginner
 
Posts: 466
Joined: Tue Aug 11, 2015 3:13 pm

Re: Collision problem

Postby TomcattersVF31 » Sat Feb 10, 2018 3:12 pm

I'm a bit lost here tbh... Worked fine (and works) fine with pre 3.2 ZModeler, but with the current version I got the exact same problem. So far on boats only. I tried modifying the mesh, recalculating, etc... But, nothing really works here.
TomcattersVF31
 
Posts: 88
Joined: Fri May 18, 2012 10:13 pm

Re: Collision problem

Postby Oleg » Sun Feb 11, 2018 9:41 am

is it possible to reproduce this on a vehicle or something that I can spawn on a ground? may be a simple mod file for buffalo2 vehicle? (I use to test everything as a replacement of this car).
User avatar
Oleg
Site Admin
 
Posts: 8065
Joined: Fri Feb 06, 2004 3:54 am

Re: Collision problem

Postby pnwparksfan » Wed Feb 14, 2018 7:33 pm

Oleg wrote:is it possible to reproduce this on a vehicle or something that I can spawn on a ground? may be a simple mod file for buffalo2 vehicle? (I use to test everything as a replacement of this car).


This problem happens when exporting pretty much any boat with the latest version of Zmodeler. It also happens with some planes. I believe it happens specifically on models which have duplicate collisions with separate flags (as boats and large planes do).

It's very easy to reproduce this problem: Just import the tug model into zmodeler 3.2.0, then export it and install it with OpenIV. Spawn it anywhere, even on land if you want. Get out of the driver's seat and you immediately fall through the model.

pnwparksfan
 
Posts: 4
Joined: Wed Feb 14, 2018 7:24 pm

Re: Collision problem

Postby Oleg » Thu Feb 15, 2018 3:08 am

i'll explore this issue few later, need to complete a task with cloth first. I do remember for this issue, other users have reported this problem too.
User avatar
Oleg
Site Admin
 
Posts: 8065
Joined: Fri Feb 06, 2004 3:54 am

Re: Collision problem

Postby pnwparksfan » Sat Feb 17, 2018 2:12 pm

Oleg wrote:i'll explore this issue few later, need to complete a task with cloth first. I do remember for this issue, other users have reported this problem too.


Thanks. We are all looking forward to a solution! Can't wait to put some flags on our boats now that cloth is supported haha.
pnwparksfan
 
Posts: 4
Joined: Wed Feb 14, 2018 7:24 pm

Re: Collision problem

Postby cegta » Tue Feb 20, 2018 9:51 am

Oleg wrote:i'll explore this issue few later, need to complete a task with cloth first. I do remember for this issue, other users have reported this problem too.


Do you have any predictions when you correct this problem?
thank
cegta
 
Posts: 1
Joined: Tue Feb 20, 2018 9:47 am

Re: Collision problem

Postby Oleg » Wed Feb 21, 2018 8:44 am

not yet. however, its on top of my todo list.
User avatar
Oleg
Site Admin
 
Posts: 8065
Joined: Fri Feb 06, 2004 3:54 am


Return to Grand Theft Auto V

Who is online

Users browsing this forum: No registered users and 3 guests