Visam Posted September 2, 2017 Share Posted September 2, 2017 Hi Of course, there are at least two ways to do it: for each scene mesh to do rotateAround or create a "root" mesh / set as parent and do the same (rotateAround). But may be there is another way to rotate whole scene around a pivot? Thanks Quote Link to comment Share on other sites More sharing options...
Arte Posted September 3, 2017 Share Posted September 3, 2017 8 hours ago, iTekVR said: Hi Of course, there are at least two ways to do it: for each scene mesh to do rotateAround or create a "root" mesh / set as parent and do the same (rotateAround). But may be there is another way to rotate whole scene around a pivot? Thanks Why do you need rotate whole scene? Just move camera around scene. adam 1 Quote Link to comment Share on other sites More sharing options...
Visam Posted September 3, 2017 Author Share Posted September 3, 2017 4 hours ago, Arte said: Why do you need rotate whole scene? Just move camera around scene. sometime engineers need to make a model transformations like this: https://knowledge.autodesk.com/support/navisworks-products/learn-explore/caas/CloudHelp/cloudhelp/2017/ENU/Navisworks-Manage/files/GUID-03F75CA8-F545-4AB6-ADEC-42A6FEB71002-htm.html it means a transformation should be applied to whole scene :-) Also it can help to fix "the up axis problem". You can take a look at the example http://www.babylonjs-playground.com/#2EE9UD#19 You can change the camera position (line 9,10,11) but you will not be able to set X or Z as up axis to rotate around. Quote Link to comment Share on other sites More sharing options...
Arte Posted September 3, 2017 Share Posted September 3, 2017 Sorry @iTekVR I'm not getting you point. If you make invisible parent box, attach all you models to parent, then you can rotate? "the up axis problem" - In my project I'm treating Yaxis as Zaxis. Quote Link to comment Share on other sites More sharing options...
Visam Posted September 3, 2017 Author Share Posted September 3, 2017 50 minutes ago, Arte said: Sorry @iTekVR I'm not getting you point. If you make invisible parent box, attach all you models to parent, then you can rotate? "the up axis problem" - In my project I'm treating Yaxis as Zaxis. of course, I can make invisible box. I wrote about it in my first message: " create a "root" mesh / set as parent ...." But what will you do if you want to change up axis dynamically? something like this: https://knowledge.autodesk.com/support/navisworks-products/troubleshooting/caas/sfdcarticles/sfdcarticles/How-to-change-model-orientation-in-Navisworks.html My point is try to find easy solution to apply a transformation to a scene instead of to each mesh or to a parent mesh Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.