Skip to content

Commit

Permalink
Cleaned up example folder
Browse files Browse the repository at this point in the history
  • Loading branch information
SkaceKamen committed Feb 6, 2016
1 parent 0c28ca4 commit b1192f6
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 36,587 deletions.
Binary file removed examples/Hull.primitives_processed
Binary file not shown.
Binary file removed examples/Hull.visual_processed
Binary file not shown.
17 changes: 8 additions & 9 deletions examples/example-model.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,24 @@
compress=False,
normals=True,
uv=True,
material=True
material=True,
scale=(-1,1,1)
)

# Change this to your world of tanks path
reader.setWotPath("d:/Hry/World_of_Tanks_closed_Beta/")
reader.setCachePath("cache/")

# Extract model files
#reader.extract("content/Buildings/bldEU_001_Town_house/normal/lod0/bldEU_001_Town_house_G01_01.primitives_processed", "temp.primitives")
#reader.extract("content/Buildings/bldEU_001_Town_house/normal/lod0/bldEU_001_Town_house_G01_01.visual_processed", "temp.visual")
reader.extract("vehicles/chinese/Ch06_Renault_NC31/collision/Hull.visual_processed", "temp.visual")
reader.extract("vehicles/chinese/Ch06_Renault_NC31/collision/Hull.primitives_processed", "temp.primitives")
reader.extract("content/Buildings/bldEU_001_Town_house/normal/lod0/bldEU_001_Town_house_G01_01.primitives_processed", "temp.primitives")
reader.extract("content/Buildings/bldEU_001_Town_house/normal/lod0/bldEU_001_Town_house_G01_01.visual_processed", "temp.visual")

# Read model files
with open("Hull.primitives_processed", "rb") as prim:
with open("Hull.visual_processed", "rb") as vis:
with open("temp.primitives", "rb") as prim:
with open("temp.visual", "rb") as vis:
model = model_reader.read(prim, vis)
model_writer.write(model, "temp.obj")

# Remove temp files
#os.unlink("temp.primitives")
#os.unlink("temp.visual")
os.unlink("temp.primitives")
os.unlink("temp.visual")
4 changes: 0 additions & 4 deletions examples/temp.mtl

This file was deleted.

Loading

0 comments on commit b1192f6

Please sign in to comment.