Title: Center Object
Last modified: November 16, 2020

---

# Center Object

 *  [Howdy_McGee](https://wordpress.org/support/users/howdy_mcgee/)
 * (@howdy_mcgee)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/center-object/)
 * Hello,
 * I’m having an issue where the initial load of the object/canvas the Object is
   off-center. It displays the bottom of the object instead of being center in the
   canvas. Then, as soon as I move it slightly it jumps to center and looks like
   I want it to look. For whatever reason it’s just the initial load that puts it
   off-center.
 * My DevTools show some warning from threeJS:
 *     ```
       THREE.Box3: .getCenter() target is now required
       THREE.Box3: .getSize() target is now required
       ```
   
 * I don’t know anything about threeJS – do you have any recommendations on a script
   I can run after the threeJS initialization which will re-adjust the object in
   the canvas to hopefully center this? Open to any and all other suggestions.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [maui2wp](https://wordpress.org/support/users/maui2wp/)
 * (@maui2wp)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/center-object/#post-13675315)
 * [@howdy_mcgee](https://wordpress.org/support/users/howdy_mcgee/)
    ATM the best
   option is to edit your model file (i.e. with blender) and re-center it with the
   desired view.
 *  Thread Starter [Howdy_McGee](https://wordpress.org/support/users/howdy_mcgee/)
 * (@howdy_mcgee)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/center-object/#post-13675344)
 * Hello,
 * Thanks for the reply. I agree that may be one way to go about it. I guess it’s
   strange to me that as soon as I move the object it immediately centers. The issue
   only crops up on load. This alone makes me think it’s an issue with either when
   or how the object is being centered via the library.
 * Is there any method I can call to readjust the centering on `window.load()` or
   trigger an interaction with the object via JS to have the script re-center the
   object on it’s own?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Center Object’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/vrm360_c1c7e5.svg)
 * [Vrm 360 3D Model Viewer](https://wordpress.org/plugins/vrm360/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/vrm360/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/vrm360/)
 * [Active Topics](https://wordpress.org/support/plugin/vrm360/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/vrm360/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/vrm360/reviews/)

## Tags

 * [center](https://wordpress.org/support/topic-tag/center/)

 * 2 replies
 * 2 participants
 * Last reply from: [Howdy_McGee](https://wordpress.org/support/users/howdy_mcgee/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/center-object/#post-13675344)
 * Status: not resolved