#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
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?
|
#3
|
|||
|
|||
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 |
#4
|
|||
|
|||
The fastest way would be to use modeling software like SketchUp to move the object to the origin and re-export.
|
#5
|
|||
|
|||
Dear Jeff
Thanks for your reply. OK. I'll handle it manually. Greetings Amir |
Tags |
center, centre, object |
|
|
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 |