BastiaanOlij / vehicle-demo

Godot VehicleBody demo project
MIT License
155 stars 36 forks source link

Meesed up tracks in Godot 3.4. #13

Closed IvailoBurov closed 2 years ago

IvailoBurov commented 2 years ago

Hi, Seems there are any changes in Godot 3.4 that make many displacements in roads with CSGPolygon. PoolVector2Arr properties do not correspond to those of version 3.3. In my project I failed to change them so that they work properly as with version 3.3, which makes the whole technique useless. Also, textures cannot be stretched properly. I opened your projects and here I see a big discrepancy. I am sending two screenshots: with version 3.3 and 3.4.

Vahicle3 3

Vehicle 3 4 2

BastiaanOlij commented 2 years ago

Indeed, I haven't gotten around to update the demo though I did play around with it. There were a number of breaking changes in CSGPolygon in 3.4 including one or two that caused a bit of a storm in the community (basically at some point we couldn't even make tracks anymore because someone had overlooked this usecase). The end result however is a far superior implementation that even optimises the polygon count on the track.

However it requires changing some of the new settings. I'll see if I can soon find a minute to update the project.

IvailoBurov commented 2 years ago

Thanks for the answer and the hard work in creating the training videos. There is also a problem with overlapping textures. They appear behind those with lower priority when rendering. To my great surprise, today I discovered that the coordinates of placed objects with version 3.4 differ from those when the project opened with version 3.3 and vice versa.

BastiaanOlij commented 2 years ago

Fixed by #14