diff --git a/.gitignore b/.gitignore index e3e5852..64e9b5e 100644 --- a/.gitignore +++ b/.gitignore @@ -11,10 +11,11 @@ # Output of the go coverage tool, specifically when used with LiteIDE *.out -# Dependency directories (remove the comment below to include it) +# Custom vendor/ +.DS_Store *.obj +!obj.obj *.fbx *.glb -!libassimp_darwin_arm64.dylib -.DS_Store \ No newline at end of file +!libassimp_darwin_arm64.dylib \ No newline at end of file diff --git a/asig/libs/libIrrXML_windows_amd64.a b/asig/libs/libIrrXML_windows_amd64.a deleted file mode 100755 index da3c53e..0000000 Binary files a/asig/libs/libIrrXML_windows_amd64.a and /dev/null differ diff --git a/asig/libs/libzlib_windows_amd64.a b/asig/libs/libzlib_windows_amd64.a deleted file mode 100755 index e856e2b..0000000 Binary files a/asig/libs/libzlib_windows_amd64.a and /dev/null differ diff --git a/main.go b/main.go index f8aaabe..6033cb2 100755 --- a/main.go +++ b/main.go @@ -10,7 +10,7 @@ import ( func main() { - scene, release, err := asig.ImportFile("obj.fbx", asig.PostProcessTriangulate|asig.PostProcessJoinIdenticalVertices) + scene, release, err := asig.ImportFile("obj.obj", asig.PostProcessTriangulate|asig.PostProcessJoinIdenticalVertices) if err != nil { panic(err) } diff --git a/obj.obj b/obj.obj new file mode 100755 index 0000000..120d61f --- /dev/null +++ b/obj.obj @@ -0,0 +1,46 @@ +# Blender v2.92.0 OBJ File: '' +# www.blender.org +mtllib obj.mtl +o Cube +v 2.275618 1.000000 0.349413 +v 3.520138 -1.000000 0.102233 +v 2.275618 1.000000 0.752820 +v 3.520138 -1.000000 1.000000 +v 0.244520 1.000000 0.349413 +v -1.000000 -1.000000 0.102233 +v 0.244520 1.000000 0.752820 +v -1.000000 -1.000000 1.000000 +vt 0.806168 0.568832 +vt 0.693832 0.681168 +vt 0.693832 0.568832 +vt 0.375000 1.000000 +vt 0.375000 0.750000 +vt 0.375000 0.000000 +vt 0.625000 0.250000 +vt 0.375000 0.250000 +vt 0.375000 0.500000 +vt 0.125000 0.750000 +vt 0.125000 0.500000 +vt 0.806168 0.681168 +vt 0.625000 0.931168 +vt 0.625000 0.068832 +vn 0.0000 1.0000 0.0000 +vn 0.0000 0.1227 0.9924 +vn -0.8490 0.5283 0.0000 +vn 0.0000 -1.0000 0.0000 +vn 0.8490 0.5283 0.0000 +vn 0.0000 0.1227 -0.9924 +usemtl Material +s off +f 5/1/1 3/2/1 1/3/1 +f 3/2/2 8/4/2 4/5/2 +f 8/6/3 5/7/3 6/8/3 +f 2/9/4 8/10/4 6/11/4 +f 1/3/5 4/5/5 2/9/5 +f 5/7/6 2/9/6 6/8/6 +f 5/1/1 7/12/1 3/2/1 +f 3/2/2 7/13/2 8/4/2 +f 8/6/3 7/14/3 5/7/3 +f 2/9/4 4/5/4 8/10/4 +f 1/3/5 3/2/5 4/5/5 +f 5/7/6 1/3/6 2/9/6