# Instanced Static Mesh gets scaled

**URL:** <https://forums.unrealengine.com/t/instanced-static-mesh-gets-scaled/380091>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [December 23, 2016, 9:01pm UTC](https://forums.unrealengine.com/t/instanced-static-mesh-gets-scaled/380091 "2016-12-23T21:01:52Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![tsuzumi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tsuzumi](https://forums.unrealengine.com/u/tsuzumi)\
**Post date:** [December 23, 2016, 9:01pm UTC](https://forums.unrealengine.com/t/instanced-static-mesh-gets-scaled/380091/1 "2016-12-23T21:01:52Z")

</div>

So, I added a InstancedStaticMesh(ISM) component in a BluePrint(BP). Then I added four of them using a for loop and Add Instance node, in a “circle”. But to my “horror” all but every fourth, including the first, instance gets scaled about 0.0005(what it looks visually) on X and Y axis.

[https://puu.sh/sZ096/1314059821.jpg](https://puu.sh/sZ096/1314059821.jpg)

So first I of course thought that it was just the mesh that was wrong, and went and checked, sure it was off a little bit, but not this much. But I fixed it anyway, making sure it was on the right place down to the max zoom I could get in the 3D app. No change. And if I add the mesh manually, IE not as ISM, it works perfectly.

Even tried with a new mesh, a perfect box moved so its corner was at the pivot, no change, same problem with ISM. Tried another version of the Engine.

Went on Discord and we went trough it thoroughly but others got the same error.

So I am guessing its a bug, maybe some float error, or memory thing. We tried to check the transformation of the Instances after creation, but they checked out just normal.

So, the first Instance gets the right scale, same with every fourth, I guess that it works as long as it has the same rotation as the original, but all other is a bit off.

---

<div class="post-metadata">

**Author:** ![tsuzumi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tsuzumi](https://forums.unrealengine.com/u/tsuzumi)\
**Post date:** [January 5, 2017, 11:43am UTC](https://forums.unrealengine.com/t/instanced-static-mesh-gets-scaled/380091/2 "2017-01-05T11:43:00Z")

</div>

Alright, so I found another bug with Instanced meshes.  
If you scale them to anything other than n+1/2^x the scaling wont match the real size, therefore you will get holes between meshes that need to match up completely, like a floor. As seen in the picture the error gets bigger the integer scale compared to the decimal scale(other than 1/2^x).

[https://puu.sh/tbUC9/507f8239e0.png](https://puu.sh/tbUC9/507f8239e0.png)

---

<div class="post-metadata">

**Author:** ![tsuzumi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tsuzumi](https://forums.unrealengine.com/u/tsuzumi)\
**Post date:** [January 19, 2017, 11:35pm UTC](https://forums.unrealengine.com/t/instanced-static-mesh-gets-scaled/380091/3 "2017-01-19T23:35:43Z")

</div>

A work around is to put the pivot of z-axis in center of mesh and mirror the scales to get the same visual effect. Like this: 1st (scale) [1 1 1], 2nd [-1 1 -1], 3th [1 -1 -1] and 4th [-1 -1 1]. By mirroring two times you neutralize the inverted faces that you otherwise get when putting negativ scale on ISMs.

Still needs attention though.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [January 20, 2017, 3:28pm UTC](https://forums.unrealengine.com/t/instanced-static-mesh-gets-scaled/380091/4 "2017-01-20T15:28:06Z")

</div>

Hello tsuzumi,

Thank you for your report. Another user reported an issue related to this about a week ago and I entered a bug report for that which you can find here: [UE-40476](https://issues.unrealengine.com/issue/UE-40476) Unfortunately, despite this issue’s prevalence, it’s been decided that we do not have the resources to work on this at the moment. I can say that the original scaling issue you reported should be able to be fixed by using higher values of the same rotation, such as using 540 in place of 180.

---

<div class="post-metadata">

**Author:** ![GlacierFox](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/glacierfox/32/557722_2.png) [@GlacierFox](https://forums.unrealengine.com/u/GlacierFox)\
**Post date:** [December 8, 2017, 5:39am UTC](https://forums.unrealengine.com/t/instanced-static-mesh-gets-scaled/380091/5 "2017-12-08T05:39:35Z")

</div>

Any chance of getting this fixed? I’m building a warehouse full of instanced shelf pieces. The piece oriented like the above user are very slightly off on mine too but only when using instanced meshes.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [December 11, 2017, 5:17pm UTC](https://forums.unrealengine.com/t/instanced-static-mesh-gets-scaled/380091/6 "2017-12-11T17:17:30Z")

</div>

Unfortunately the statement I made previously still stands, the designers have decided that we will not be allocating resources to fix this. It would likely cause other issues which would lead to more things needing to be fixed. Please try the workaround that I provided above. I hope this helps.

---

<div class="post-metadata">

**Author:** ![Hazeti](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hazeti](https://forums.unrealengine.com/u/Hazeti)\
**Post date:** [April 11, 2018, 4:11pm UTC](https://forums.unrealengine.com/t/instanced-static-mesh-gets-scaled/380091/7 "2018-04-11T16:11:49Z")

</div>

Hi Matthew,  
We’ve experienced similar issues. We’ve tried the 540 workaround you mentioned but that does not appear to work on instances.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [June 1, 2018, 9:20pm UTC](https://forums.unrealengine.com/t/instanced-static-mesh-gets-scaled/380091/8 "2018-06-01T21:20:55Z")

</div>

Hello, I apologize for the delay. I will look into if this workout is still working on my end. If not, I’ll speak to the developers in charge of this section of the engine to see if they would be willing to look into a fix for this, since the workout around is no longer valid.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [June 4, 2018, 3:42pm UTC](https://forums.unrealengine.com/t/instanced-static-mesh-gets-scaled/380091/9 "2018-06-04T15:42:33Z")

</div>

From testing this in 4.19, the workaround is still working. Could you provide a scenario, preferably via a test project, where this workaround does not fix the issue? Here is the project that had the reproduction for the bug report: ScaleBug. You can see the difference by setting the Transforms in the New Blueprint to either 180 or 540 and compiling the Blueprint.

Please use that to compare.

---

<div class="post-metadata">

**Author:** ![Hazeti](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hazeti](https://forums.unrealengine.com/u/Hazeti)\
**Post date:** [June 6, 2018, 1:57pm UTC](https://forums.unrealengine.com/t/instanced-static-mesh-gets-scaled/380091/10 "2018-06-06T13:57:22Z")

</div>

Hi Matthew,

Thanks for this. I’ll try to find the time to re-create our issues in your test project. However this may take some time as I’ll need to get a separate vanilla UE and find some time to replicate this between tasks.

---

<div class="post-metadata">

**Author:** ![TheShroom](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheShroom](https://forums.unrealengine.com/u/TheShroom)\
**Post date:** [August 31, 2018, 10:25am UTC](https://forums.unrealengine.com/t/instanced-static-mesh-gets-scaled/380091/11 "2018-08-31T10:25:05Z")

</div>

Hi Matthew,

I have the same issues with Instanced Static Meshes. The “n \* 360 + 180” workaround is working. But for 90 or 45 degrees rotation I cannot find anything that works. The n \* 360 + 90 workaround is not working.

---

<div class="post-metadata">

**Author:** ![tsuzumi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tsuzumi](https://forums.unrealengine.com/u/tsuzumi)\
**Post date:** [December 29, 2018, 4:52pm UTC](https://forums.unrealengine.com/t/instanced-static-mesh-gets-scaled/380091/12 "2018-12-29T16:52:44Z")

</div>

Hello Unreal Dev team.

Two years have past since this problem was found, and a year since last update. Any fix in sight yet?

I think that quite a few people might have to find other solutions than using (H)ISM for reducing draw calls on big scenes with many similar tiling objects. Just as in my original case.  
Would love to be able to use this.

---

<div class="post-metadata">

**Author:** ![KristofMorva](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kristofmorva/32/1194508_2.png) [@KristofMorva](https://forums.unrealengine.com/u/KristofMorva)\
**Post date:** [February 9, 2019, 6:13pm UTC](https://forums.unrealengine.com/t/instanced-static-mesh-gets-scaled/380091/13 "2019-02-09T18:13:44Z")

</div>

Same here, we also can’t get it working with the rotator `(X + 360, Y + 360, Z + 360)`.

@Matthew, is there any solution we can use or we should just forget ISM as-is?

---

<div class="post-metadata">

**Author:** ![Simone\_Lungarella](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Simone\_Lungarella](https://forums.unrealengine.com/u/Simone_Lungarella)\
**Post date:** [August 9, 2021, 10:15pm UTC](https://forums.unrealengine.com/t/instanced-static-mesh-gets-scaled/380091/14 "2021-08-09T22:15:07Z")

</div>

Hi @Matthew J, I reproduced the bug and as you can see here scaleBug in that case the work-around does not work. Am I doing something wrong?

---

<div class="post-metadata">

**Author:** ![Bencsizy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bencsizy](https://forums.unrealengine.com/u/Bencsizy)\
**Post date:** [March 1, 2023, 12:48am UTC](https://forums.unrealengine.com/t/instanced-static-mesh-gets-scaled/380091/15 "2023-03-01T00:48:28Z")

</div>

Facing the exact same issue. Trying to create walls using cube meshes but unable to perfectly fit the edges to each other because the scaled meshes have incorrect sizes.

---

<div class="post-metadata">

**Author:** ![Bencsizy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bencsizy](https://forums.unrealengine.com/u/Bencsizy)\
**Post date:** [March 1, 2023, 9:26pm UTC](https://forums.unrealengine.com/t/instanced-static-mesh-gets-scaled/380091/16 "2023-03-01T21:26:51Z")

</div>

Bumping this in hopes that someone sees this and can give a workaround or fix for this.

---

<div class="post-metadata">

**Author:** ![lyoshko](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lyoshko/32/980493_2.png) [@lyoshko](https://forums.unrealengine.com/u/lyoshko)\
**Post date:** [September 24, 2024, 12:31pm UTC](https://forums.unrealengine.com/t/instanced-static-mesh-gets-scaled/380091/18 "2024-09-24T12:31:31Z")

</div>

Issue is still here with us in 2024.  
Instance scale seem to be quantized to

> 1/2^x

So, to avoid seams between instances, you need to quantize your calculated scale to nearest that fits. I rounded up to nearest 1/128

 ![Screenshot_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/c/4/cc43d38dab2f6b79eb109a9f43858612d2001972.jpeg)

Quantize your scale and ISM instances will be more predictable.
