News:

 

Topic: Improper Scaling  (Read 3741 times)

0 Members and 1 Guest are viewing this topic.

  • No avatar
  • Posts: 156
  • Spline
April 11, 2013, 06:02:50 am
I created a mesh in nvil and transfer it to zbrush then I exported the mesh from zbrush to nvil, in nvil I created an accessory then exported to zbrush, when I open it in zbrush the scaling and position does not match with nvil. In nvil the accessory is attach in the body but in zbrush it is above the body and much bigger.

Thanks in advance.

  • No avatar
  • Posts: 3705
  • Developer
  • Administrator
  • Polygon
April 11, 2013, 07:14:02 am
Did you use obj file format? If yes, can your export the accessory to an obj file then import the obj file back to NVil and see whether it's the same as the original one?

What is your export/import setting? Edit > Options > File Format Options.
« Last Edit: April 11, 2013, 07:18:19 am by IStonia »

  • No avatar
  • Posts: 156
  • Spline
April 11, 2013, 07:49:45 am
Yes I used OBJ, I tried several options

-(accessory) nVil -> zBrush - scale&location does not match
-(accessory) nVil -> zBrush(scale&location does not match) -> nVil(scale&location match with char)
-(char) zBrush -> nVil(scale&location matches with the accessory)

I did not rescale anything I just simply import/export meshes.
My settings are scale is 1.000 for import/export.

I used save selected to export meshes from nVil.

Thanks.

  • No avatar
  • Posts: 3705
  • Developer
  • Administrator
  • Polygon
April 11, 2013, 08:16:47 am
If the mesh matches the original one when imported back to NVil, it is highly likely the problem lies in the zbrush importing process. There is no scale and location informations in obj file format so its scale is always seen as 1 and its location is always seen as at zero.

Can you just create a simple box to replace the accessory and see if it's ok?

  • No avatar
  • Posts: 156
  • Spline
April 11, 2013, 08:41:05 am
I created two boxes in nVil and exported them seperately this happens

  • No avatar
  • Posts: 3705
  • Developer
  • Administrator
  • Polygon
April 11, 2013, 09:07:41 am
Since it is just two boxes, you can check the exported obj files and see if the vertices positions are correct. You can open the obj file with a text editor like NotePad.

  • No avatar
  • Posts: 156
  • Spline
April 11, 2013, 09:15:30 am
I don't understand what is written in the text editor
Bottom Box
__________
#     Vertices: 8
#        Faces: 12
#    Materials: 1

o Object_Box_01

mtllib test.mtl


# vertex list

v -0.5 -0.5 0.5
v -0.5 -0.5 -0.5
v 0.5 -0.5 0.5
v 0.5 -0.5 -0.5
v -0.5 0.5 0.5
v -0.5 0.5 -0.5
v 0.5 0.5 0.5
v 0.5 0.5 -0.5


# texture coords

vt 0 0
vt 1 0
vt 1 0
vt 1 0
vt 0 0
vt 1 1
vt 1 0
vt 0 0
vt 0 0
vt 0 0
vt 1 0
vt 0 1
vt 0 1
vt 1 1
vt 0 0
vt 1 1
vt 0 1
vt 0 1
vt 1 1
vt 0 1
vt 1 0
vt 0 1
vt 1 1
vt 1 1


# face list

usemtl Mtrl_01
g
s 2
f 1/3 2/6 4/12 3/9
s 4
f 5/15 7/21 8/24 6/18
s 8
f 1/1 3/7 7/19 5/13
s 16
f 2/4 6/16 8/22 4/10
s 32
f 1/2 5/14 6/17 2/5
s 64
f 3/8 4/11 8/23 7/20

# End of file

Upper Box
__________________
#     Vertices: 8
#        Faces: 12
#    Materials: 1

o Object_Box

mtllib test2.mtl


# vertex list

v -0.5 0.548275 0.5
v -0.5 0.548275 -0.5
v 0.5 0.548275 0.5
v 0.5 0.548275 -0.5
v -0.5 1.548275 0.5
v -0.5 1.548275 -0.5
v 0.5 1.548275 0.5
v 0.5 1.548275 -0.5


# texture coords

vt 0 0
vt 1 0
vt 1 0
vt 1 0
vt 0 0
vt 1 1
vt 1 0
vt 0 0
vt 0 0
vt 0 0
vt 1 0
vt 0 1
vt 0 1
vt 1 1
vt 0 0
vt 1 1
vt 0 1
vt 0 1
vt 1 1
vt 0 1
vt 1 0
vt 0 1
vt 1 1
vt 1 1


# face list

usemtl Mtrl_01
g
s 2
f 1/3 2/6 4/12 3/9
s 4
f 5/15 7/21 8/24 6/18
s 8
f 1/1 3/7 7/19 5/13
s 16
f 2/4 6/16 8/22 4/10
s 32
f 1/2 5/14 6/17 2/5
s 64
f 3/8 4/11 8/23 7/20

# End of file

  • No avatar
  • Posts: 3705
  • Developer
  • Administrator
  • Polygon
April 11, 2013, 10:10:16 am
vt is vertex uv, v is vertex position, f is polygon.

What you can check is the vertices at the highest position which means their position y value has the biggest value. In your file, the highest y value is 1.548275. You file contains the geometry of the two boxes.

You can just only export the top box and see if the highest y value is 1.548275. If yes, that means zbrush's importer does not import geometries correctly.

  • No avatar
  • Posts: 156
  • Spline
April 11, 2013, 11:21:15 am
hmmm, I tried importing the boxes in a new scene, it works correctly, maybe there was something wrong with my scene.
Anyway thanks for the help:)