x


Vertices are added when importing .obj files

I have a simple .obj file with a square made of 4 vertices and 2 triangles.

Importing the file into Unity with the FBX normal import settings set to "Import" results in a mesh with 5 vertices and 2 triangles! Also, 3 of the (now) 5 vertex normals are 90 degrees off from the input normals.

Input to Unity:

g square.mesh

v 5 5 0
v -5 5 0
v -5 -5 0
v 5 -5 0

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

vn 0 0 1
vn 0 0 1
vn 0 0 1
vn 0 0 1

f 1/1/1 2/2/2 3/3/3
f 3/3/3 4/4/4 1/1/1

What it looks like after import into Unity:

g square.mesh

v 5 5 0
v -5 5 0
v -5 -5 0
v 5 -5 0
v 5 5 0

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

vn 0 1 0
vn 0 1 0
vn 0 1 0
vn 0 0 1
vn 0 0 1
more ▼

asked Nov 03 '11 at 09:57 PM

hmxmh gravatar image

hmxmh
1 1 1 1

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

It looks like a Unity bug. I worked around it by writing my own OBJ importer.

more ▼

answered Nov 08 '11 at 10:21 PM

hmxmh gravatar image

hmxmh
1 1 1 1

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x26
x12

asked: Nov 03 '11 at 09:57 PM

Seen: 571 times

Last Updated: Nov 08 '11 at 10:21 PM