Jump to content

Scene rotation around a pivot


Visam
 Share

Recommended Posts

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

Link to comment
Share on other sites

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? :huh:

Just move camera around scene.

Link to comment
Share on other sites

4 hours ago, Arte said:

Why do you need rotate whole scene? :huh:

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.

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...