WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-19-2013, 04:24 PM
javadi javadi is offline
Member
 
Join Date: Mar 2013
Location: London
Posts: 33
Adjusting the centre of an object

Hi,

I have a set of .dae files, each containing one object. The objects are not centred in the files. I am wondering whether there is any way to centre the objects in Vizard using programming?

More details... I want to create a grid of objects and I need to put them exactly at the nodes. I used .getPosition() method to look at the position of the object within the .dae files, but it always reports [0, 0, 0]. I used .center method as well. It doesn't make sense though, as this method is also based on the origin of the .dae file, rather the object in it. Any suggestion would be highly appreciated. Very many thanks.

Greetings
Amir
Reply With Quote
  #2  
Old 06-20-2013, 12:59 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
The center method will move the objects pivot point. Do you know the offset from the origin for these objects? Is the object you are trying to position a subpart of a larger model?
Reply With Quote
  #3  
Old 06-20-2013, 01:15 PM
javadi javadi is offline
Member
 
Join Date: Mar 2013
Location: London
Posts: 33
Hi,

Thanks for your reply. I don't know the offset value. The objects are some random stuff like, a computer, a chair, a toy... that I need to put them on a grid. But they have to be centred.

Cheers
Amir
Reply With Quote
  #4  
Old 06-21-2013, 04:29 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
The fastest way would be to use modeling software like SketchUp to move the object to the origin and re-export.
Reply With Quote
  #5  
Old 06-21-2013, 05:26 PM
javadi javadi is offline
Member
 
Join Date: Mar 2013
Location: London
Posts: 33
Dear Jeff

Thanks for your reply. OK. I'll handle it manually.

Greetings
Amir
Reply With Quote
Reply

Tags
center, centre, object

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to render a texture of the transparent object and then blur it whj Vizard 1 09-25-2012 03:15 PM
AMD graphics hardware seems not to preload object sleiN13 Vizard 2 03-20-2012 06:08 AM
retrieve Object names Geoffrey Vizard 11 12-11-2009 04:26 AM
Making an object to appear after other object done animating jaylocco Vizard 2 07-13-2009 06:17 PM
rotate to object jargon Vizard 1 08-08-2005 12:20 PM


All times are GMT -7. The time now is 10:54 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC