.obj model does shows up different in more programs?

Datetime:2016-08-23 02:53:33          Topic: ActionScript  Unity3D           Share

i want to make a random terrain generator that can export .obj files. so first i tried making one(manual). this is the test file:

# testOBJ.obj
0 deff
v 0.000000 0.000000 0.000000
v 1.000000 0.000000 0.000000
v 0.000000 0.000000 1.000000
v 1.000000 0.000000 1.000000
v 0.000000 1.000000 0.000000
v 1.000000 1.000000 0.000000
v 0.000000 1.000000 1.000000
v 1.000000 1.000000 1.000000

f 1 2 3
f 2 3 4
f 5 6 7
f 6 7 8

these are 2 planes above each other. if i drop that in visual studio 2015 it shows the model as i expect. but if i drop it in a model viewer like open3mod it shows only 3 triangles instead of 4. if i load the model in unity3d it shows only 2 tris… What am i doing wrong? the teapot:

http://graphics.stanford.edu/courses/cs148-10-summer/as3/code/as3/teapot.obj

this model looks right in all the 3 programs. mine does not. i cannot see why… i need this terrain for most likely games, and i use unity3D for that so it would be nice if it would work with unity.





About List