RigsOfRods / rigs-of-rods

Main development repository for Rigs of Rods soft-body physics simulator
https://www.rigsofrods.org
GNU General Public License v3.0
1.03k stars 178 forks source link

Lotus Esprit S1 collapses on spawn. #171

Open TheUnknownGuyFromRoR opened 9 years ago

TheUnknownGuyFromRoR commented 9 years ago

screenshot_1 screenshot_2 This is what I saw when spawning Lotus Esprit S1 (car was falling appart and meshes were slowly exploding)

Max98 commented 9 years ago

It would be great if you gave us a link to the car.

TheUnknownGuyFromRoR commented 9 years ago

http://www.rigsofrods.com/threads/98617-Lotus-Esprit-S1-With-rather-special-accessories-*DO-NOT-MOD*

ohlidalp commented 9 years ago

Oops, my bad. Will fix soon.

ohlidalp commented 9 years ago

This car is tricky. It combines buoyancy properties with truck properties, which is a dangerous mixture. I spent quite a while trying to fix it, but it's still not working.

Nonetheless, my debug tools keep improving. Eventually I'll figure this out.

tritonas00 commented 8 years ago

Link for testing: http://www.mediafire.com/file/ka4uruepf2ko4uo/LotusEsprit_JB.zip

ghost commented 8 years ago

This vehicle crashes on Windows due to #1058: 18:28:41: FLEXBODY ERROR on mesh LotusEsprit_rudderL.mesh: VY node not found

ulteq commented 8 years ago

It seems to be a parser issue. The new parser handles flexbody forsets differently.

The old code looked like this: https://github.com/only-a-ptr/ror-legacy-svn-trunk/blob/master/source/main/physics/flex/FlexBody.cpp#L52-L76

This affects all trucks which use nodes2 and flexbody forset.

ghost commented 6 years ago

Solution found, see this post: https://forum.rigsofrods.org/thread-1602-post-12866.html#pid12866 I'm going to leave this open though since there might be a way to change how the parser handles this.

tritonas00 commented 6 years ago

still valid

tritonas00 commented 5 years ago

http://www.austingratzer.com/rigs/downloads.php?do=file&id=303

not anymore

ep

But it seems to break a bit and resets itself under water (its supposed to be a submarine also)

tritonas00 commented 5 years ago

@only-a-ptr is there anything that can be done in the new parser to fix this? (it worked in the old one)

it happens because of set_beam_defaults values, @CuriousMike56 knows more

NOTE: Unfortunately, even though it's supposed to be a submarine, the car becomes very unstable and explodes in deep water. This seems to be a game issue, so there really isn't much I can do about this.

if not just close the issue i guess and someone will be lucky enough to find some better values

ohlidalp commented 5 years ago

Sooner or later I'll fix this car, and until then, this must stay open.

My current approach is to create a 'retro branch' where I port RoR 0.4.0.7 (the last one without my damage) to modern build system and dependencies, and use it as a test reference.

ohlidalp commented 3 years ago

I sucessfully ported RoR 0.4.0.7 to recent OGRE + dependencies: https://github.com/only-a-ptr/rigs-of-rods/tree/retro obrazek There's some visual glitches but the N/B spawns fine. With this reference I can analyze the spawn process to the detail and finally make it work in master

CuriousMike56 commented 3 months ago

Revisiting this car again. I've successfully converted it from nodes2 to regular numbered nodes and created a "street" version without the submarine features, this will be released on the Repository. Edit: https://forum.rigsofrods.org/resources/lotus-esprit-s1.1189/

As for the original submarine version: LotusEsprit_JB.zip

The resetting in water problem is caused by the buoyant submeshes ( b and D flags). The other submarines in RoR also face similar issues, will detail in a separate issue.