SceneCaptureComponent2D Trembling model issue
Hi ! I've perfectly followed this tutorial on youtube, but at the end there is a little issue that is doesn't fixed. https://www.youtube.com/watch?v=2ZiNFXSH4ZU
Here is the issue, when the used mesh has a not centered pivot, the model trembling :
But when the used mesh has a middle pivot, it's ok :
In first, I was thinking it was the fault of the AddLocalOffset combined with the parenting to the rotating scene :
Because if I delete the AddLocalOffset, it's not trembling anymore. (But my mesh is not on the middle of the screen of course)
BUT, I think the problem is in the SceneCaptureComponent2D, and his way to see/understand the AddLocalOffset, because if I make an identical blueprint without the SceneCaptureComponent2D, and visible in the level, the mesh not trembling (with the AddLocalOffset).
Any idea ? Thanks for your help !
EDIT : I've also tryed to replace the rotating scene by link the SceneCaptureComponent2D to a rotating SpringArm, same issue.
After taking a look at the project provided I noticed that you are spawning an actor with a Z location of 5,000,000. If you spawn it closer, (1891000.0 worked in the project provided and was still high enough to keep the skysphere out of the frame) this should help reduce the amount of floating point precision error that you are seeing that is causing the "wobbling effect". The math that you are using for the offset (due to the pivot point not being the center) becomes less accurate and extreme distances. I hope that this information helps.
answered Aug 15 '17 at 03:13 PM
Rudy Q ♦♦ STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here