mirror of
https://github.com/bloeys/assimp-go.git
synced 2025-12-29 08:28:20 +00:00
Remove unneeded libs+add obj.obj test model
This commit is contained in:
7
.gitignore
vendored
7
.gitignore
vendored
@ -11,10 +11,11 @@
|
|||||||
# Output of the go coverage tool, specifically when used with LiteIDE
|
# Output of the go coverage tool, specifically when used with LiteIDE
|
||||||
*.out
|
*.out
|
||||||
|
|
||||||
# Dependency directories (remove the comment below to include it)
|
# Custom
|
||||||
vendor/
|
vendor/
|
||||||
|
.DS_Store
|
||||||
*.obj
|
*.obj
|
||||||
|
!obj.obj
|
||||||
*.fbx
|
*.fbx
|
||||||
*.glb
|
*.glb
|
||||||
!libassimp_darwin_arm64.dylib
|
!libassimp_darwin_arm64.dylib
|
||||||
.DS_Store
|
|
||||||
Binary file not shown.
Binary file not shown.
2
main.go
2
main.go
@ -10,7 +10,7 @@ import (
|
|||||||
|
|
||||||
func main() {
|
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 {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|||||||
46
obj.obj
Executable file
46
obj.obj
Executable file
@ -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
|
||||||
Reference in New Issue
Block a user