scale is wrong when importing .obj files

Started by FrankThomas, December 28, 2006, 04:41:07 AM

Previous topic - Next topic

FrankThomas

Don't know if I'm missing something obvious (probably) but when I imported a .obj file of an XFrog plant that is supposed to be 65cm tall, it was showing much bigger when I rendered it - the Vheight (according to the preview) was 65m or so and the bounding box was higher than the camera !

Any ideas ? (I'm at work at the mo so I can't post a screenie)

David Burnett

The obj format does not describe a real world scale, it just lists the co-ordinates by the sounds of it TG2 uses a scale that are 100 times greater than xfrog e.g. <0,1,0> in xfrog being a centimetre on the y-axis , TG2 using <0,1,0> as a metre.

Did you say yes for the xfrog compatability options ?
Is the source in cm option checked on the object importer ?     

FrankThomas

#2
Quote from: David Burnett on December 28, 2006, 04:58:42 AM
Did you say yes for the xfrog compatability options ?
Is the source in cm option checked on the object importer ?     

Yup - that's why I was confused about them being so big.  I'm just installing them both on the work PC so I'll have a bash (Lets hope the boss doesn't see heh)

[edit]
Looks like if I set the Transform -> scale to 0.001 the height is a bit better.  Maybe something to investigate :)

Oshyan

Object scale is based on the scale from the original modeling application, I believe. It's possible the scale was set incorrectly to begin with. Do other objects import at the wrong scale? If not then I would guess it's a problem in the lineage of that file. Otherwise it may indeed be a TG2 bug. But the Xfrog compatibility option is supposed to at least partially address that. Please do let us know if it seems to be a TG2 issue.

- Oshyan

FrankThomas

So far it looks like it's just the one model - cornflower from the XFrog Collection

xfrog

All the models in the Groundcover library are scaled by a factor of 10
We had to do it because they were showing up in C4D and max, extremely small

Mohawk20

Nice to have some extra input from an Xfrog member here, since we use the plants a lot!
Howgh!

bobbystahr

Quote from: Mohawk20 on December 28, 2008, 03:29:11 PM
Nice to have some extra input from an Xfrog member here, since we use the plants a lot!

Indeed it is and I for one hope that o_b and XFROG can work out a store arrangement cuz that's about the only way I'll be able to afford new quality content....well other than our generous and creative friends at ashundar. I like the pricing FrankB has set up for his atmosphere packs...under 5 bux is my cuppa.. ...
something borrowed,
something Blue.
Ring out the Old.
Bring in the New
Bobby Stahr, Paracosmologist

mac

#8
There are few modeling applications that use real world units. Lightwave 3D is one that uses real units, imperial or metric units particularly.

domdib


Mr_Lamppost

Quote from: domdib on December 30, 2008, 07:58:13 AM
For help with scaling, http://www.ironworld.org/mr_lamppost/TG2/guides/scale.htm is a valuable resource.

Thanks for showing the way to the grids, I was going to do it myself but you got there first.

If you are using models that have already been converted to the .tgo format you are stuck with them the size they are, just make a note of the scale factor needed and apply that each time you use the model.  If you are working with models in other formats, (.obj .3ds .lwo ), you can run them through PoseRay and fix the scale before you use them:

http://mysite.verizon.net/sfg0000/index.htm

PoseRay takes a little getting used to but When used in conjunction with those grids can save a lot of trouble in the long run. 
Smoke me a kipper I'll be back for breakfast.