Jump to content

Easy way to compute the bounding box or sphere of a Scene


Recommended Posts

scene.getWorldExtends() will give you a bounding box (min and max vectors) that you could use. The ARcRotate's FramingBehavior (camera.useFramingBehavior = true) will actually set the limits to your arc rotate using the scene, so you could use this as well. You might want to disable features you don't want (like zoom on a model).

Link to comment
Share on other sites

Hi guys!  arcCam.useFramingBehavior?  Cooooool!  I like that one.  Thx for ref, RainMan... err.. Raanan.  ;)  Did you invent that feature, R?  Nice.

We have had quite a few requests for "keep all mesh in-view", eh?  *nod*

xuchen:  (loose quote) Summing all mesh boundingBoxes... to compute total scene.meshes.boundingBox area... yep... seriously boring.  :)  FUNNY, and true.

Sort of like requiring 24 hours of foreplay before... umm... nah, let's not go there.  :D

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.

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.


  • Recently Browsing   0 members

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