OSDN Git Service
(root)
/
meshio
/
pymeshio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactoring export_pmd
[meshio/pymeshio.git]
/
examples
/
mqobuilder.py
diff --git
a/examples/mqobuilder.py
b/examples/mqobuilder.py
index
abfc9c5
..
cc20b66
100644
(file)
--- a/
examples/mqobuilder.py
+++ b/
examples/mqobuilder.py
@@
-3,7
+3,7
@@
\r
import time
\r
import os
\r
\r
import time
\r
import os
\r
-import pymeshio.mqo
\r
+import pymeshio.mqo
.reader
\r
import opengl.material
\r
import opengl.texture
\r
import opengl.vertexarraymap
\r
import opengl.material
\r
import opengl.texture
\r
import opengl.vertexarraymap
\r
@@
-22,17
+22,17
@@
def build(path):
material=opengl.material.MQOMaterial()
\r
material.rgba=(m.color.r, m.color.g, m.color.b, m.color.a)
\r
if m.tex:
\r
material=opengl.material.MQOMaterial()
\r
material.rgba=(m.color.r, m.color.g, m.color.b, m.color.a)
\r
if m.tex:
\r
- texturepath=os.path.join(basedir, m.tex)
\r
+ texturepath=os.path.join(basedir, m.tex
.decode('cp932')
)
\r
material.texture=opengl.texture.Texture(texturepath)
\r
vertexArrayMap.addMaterial(material)
\r
\r
for o in model.objects:
\r
# skip mikoto objects
\r
material.texture=opengl.texture.Texture(texturepath)
\r
vertexArrayMap.addMaterial(material)
\r
\r
for o in model.objects:
\r
# skip mikoto objects
\r
- if o.name.startswith("anchor"):
\r
+ if o.name.startswith(
b
"anchor"):
\r
continue
\r
continue
\r
- if o.name.startswith("bone:"):
\r
+ if o.name.startswith(
b
"bone:"):
\r
continue
\r
continue
\r
- if o.name.startswith("MCS:"):
\r
+ if o.name.startswith(
b
"MCS:"):
\r
continue
\r
\r
for f in o.faces:
\r
continue
\r
\r
for f in o.faces:
\r