You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used gltfio to load model and wanna add the instance created by asset(load from model) to a specific position(a dynamic position) in scene. May I know if I can achieve that make the instance always toward to y axis(or have specific diff from y axis). I tried use transformManager to do rotation but it seems that for the same instance I add to scene, I need use different transformMatrix to transform it towards Y axis in different conditions(different data source form backend, but I am confused that the only data I need is the position(x, y, z), why it have influence on the rotation information). I suppose it should be only one transform Matrix to rotation it the certain angle in y axis because I think the initial rotation status should be same as I loaded the same glb or gltf to get the FilamentInstance to render. May I know if I miss any steps to achieve this goal and thanks so much!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I used gltfio to load model and wanna add the instance created by asset(load from model) to a specific position(a dynamic position) in scene. May I know if I can achieve that make the instance always toward to y axis(or have specific diff from y axis). I tried use transformManager to do rotation but it seems that for the same instance I add to scene, I need use different transformMatrix to transform it towards Y axis in different conditions(different data source form backend, but I am confused that the only data I need is the position(x, y, z), why it have influence on the rotation information). I suppose it should be only one transform Matrix to rotation it the certain angle in y axis because I think the initial rotation status should be same as I loaded the same glb or gltf to get the FilamentInstance to render. May I know if I miss any steps to achieve this goal and thanks so much!
Beta Was this translation helpful? Give feedback.
All reactions