Cargo loading mesh – Train Fever /forums/topic/cargo-loading-mesh/feed/ Wed, 30 Apr 2025 12:44:56 +0000 https://bbpress.org/?v=2.6.13 en-US /forums/topic/cargo-loading-mesh/#post-12520 <![CDATA[Cargo loading mesh]]> /forums/topic/cargo-loading-mesh/#post-12520 Mon, 27 Oct 2014 02:27:08 +0000 Gwinda There is a slightly problem with how the cargo mesh is implemented (iron ore and coal). In the mdl file there is only a maxHeight value and then the mesh will transformed on the Z axis to just move the mesh upwards as it loads.

maxHeight = 1.9

This is fine if the waggon/cart has straight walls and a thick floor where the cargo mesh can hide completely when empty.

If the maxHeight  value where to be a transformation matrix instead, and the loading process simply morphed from the original matrix to he load matrix. this would transform the cargo mesh as it loads,  allowing us to have V shaped waggons/carts as the base can expand while transformed. It would also be easier to hide the mesh when empty because the Z-Scale would be lesser than on full load.

maxHeight  = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1.9, 1, }

I really hope you devs. will have a look at this since it gives a lot more flexibility.

]]>