Bạn đang xem trang 1 / 1 trang
I integrated Spine2D CPP runtime into our 3D game engine and notice that when I call SkeletonJson::setScale() method with a value less than 1.0f the animation is drawn lower in the 3D world. It's really annoying as it causes the animation to move above the camera's view frustum. Am I using the wrong method to change the scale of the image? Our 3D world uses a +Y forward and +Z up axis and I explicitly set the z coordinate of the vertex to 0.0f when I update the vertex positions. Any help is appreciated.
- Bài viết: 16
When positioning a skeleton at runtime, you are positioning the 0,0 world position. The 0,0 world position does not change when the skeleton data is scaled, but the bones that have been moved away from 0,0 of course do change position. How is your skeleton positioned in Spine?
You can use
You can use
Import Datain Spine and specify a scale, which is equivalent to scaling the data when loading it at runtime. This will allow you to see what is happening in Spine when you scale the data.
- Bài viết: 9985
Mark topic unread • Bạn đang xem trang 1 / 1 trang
Quay về Runtimes