Cesium3DTileset disappears when being scaled/rotated

1. A concise explanation of the problem you’re experiencing.

When i give a Cesium3DTilesets modelMatrix a scale of anything but 1,1,1 the tileset simply disappears, same happens if i try to change its rotation

**2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair **

I made quick sandbox to show what i’m experiencing:

when i change the “height” in this example i also apply a scale to the tileset with the same x,y,z value as the height, just to make a quick example.

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

I need a way to let users reposition/rotate/scale their 3d tilesets in case they were generated incorrectly

4. The Cesium version you’re using, your operating system and browser.

Browser: Google chrome - version 75.0.3770.142 (64-bit)

Cesium version: 1.57

Operating system: Windows 10

I think the problem with this specific tileset is that it uses an RTC coordinate to get its position on the globe, so scaling it will scale that coordinate as well.

How is your tileset created? What is your source data?

The tileset is created with ContextCapture.

I’ve updated the example with one of my tilesets so you can see everything:

https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/#c=rVXbbuM2EP0Vwn2wXFiUfEu8jjdod1tgC3Szi03aJ79Q1EhiI5ECSTlxivx7RxfKkjftUwXY1tzOHM4Mx0emyVHAE2jynkh4Ih/BiKqgfzY6b8ob8aOSlgkJejonfx8kwcdkLFZPhuyI1RUc5Ovs5iAPssWihoMEmuYqAhpDabMHMPbnFDGMfQCt8QXz1ZFtVMfis4ohR0OXIwORZnZHQoRv/Dpyj1LxR1VZajXjj14fOevBrFJ5xOozxYpXBUhLU7C/5lC/fjj9FnvTzmVaB13isrLMTx+EjIVMzRl/7nAHiUQOBuy4eO3P6peH1uh1x6l0viPTzNrS7IIAS1ECt0JJn+eqiqlZUah8LByeKvcXlBXsRUn2ZChXRWCBFSbg7xK2gdXCjzbrrb9m0cLfJuGVvwqTbcJW4eKK8aAAk4EJrq95yFfblc83q6W/XvKlz/gm9LfvrjdRsoxixq+Ctr9Bdwz6l1Fy2jfTaTWw+PRVq0IYoDYD6SWVbKh7ncvMtWzU/1KLQlhxBENZHPe+NyPXF6WKB+WM82EdP2Fe7MBXYXn2jckUvJCGc+KHdDN3laeRqpo+3ZcZaKAaQypDfiRLGs7qVK8zqpCzfkLyZ944g0r3rLmSRuVAc5V2lpu+CJezgXP0JTKgjyzKYTgb03ZcpzNqqshwLaJBvtY2G082Ts1dVUR4zzpzVxmREE+YO3bn9H1c/WiwlZad62v701UUB5IzbVWqWZkJjvhuIgdammAnawWaWN/ByzrWcwi67xUim0onjMMYtMFYNZDfsPJMGm/IACsqU2GrGOZkrGe2U2NLh1lUkrT36X9NMq5vc3E1wtQOSr6ZDHtYbxfrtYTm7vijAT37ezMH7upZ1FPxmVktns8JWnndHOXhzMAbsHE47fdFHALfc4Zz90aWf2PWnt3VoK/F/C2mg7mfzCd7Y0853LZMfhJFqbStt5hHKe6jokTCuGeiij8iCjfGUf/Brd/B1Ea4qVNdz9iO6DRi3no5J+4T0q2LrZ8StwVO4o6sy+eBOlI6Bu23N3xofL1IK2RZ2WHyI2grsG4+y0Uqd6QQcZzD9xl9q8odWY6yOlOkrFXF0Ipp94Er0T4WRyLi94fJxV/mYUJ4zoxBS1Ll+b14gcPkdh+g/ygsV82y+4Jcc3aqXbLF7e+tklK6D1D8Pqo7Mrq3nGrL7aemw865UbclsacSMEjXuxR5FUKi5C9CvIO1yJ5RdJKxUNYivsbMMj/Cv0OUjyyvYNcPUyP+UaIHKqdNlumZzCirhWdb42IBUNr8F26D4Pj/Aw

I’m afraid i can’t tell you too much about the creation process since i don’t have anything to do with it, all i know is we use ContextCapture

Can you try uploading the source data to cesium.com/ion? Context Capture should have an option for outputting OBJ models that you can upload. That will allow you to position, scale and rotate it using Cesium ion’s location adjust tool.

That works, thanks for your help