demos/lworeader.py
branchpyrit
changeset 90 f6a72eb99631
parent 75 20dee9819b17
child 97 2a853d284a6a
equal deleted inserted replaced
89:fcf1487b398b 90:f6a72eb99631
     1 # LightWave .lwo file loader
     1 # LightWave .lwo file loader
     2 
     2 
     3 from math import *
     3 from math import *
     4 from struct import *
     4 from struct import *
     5 from raytracer import Triangle, NormalVertex, Material
     5 from pyrit import Triangle, NormalVertex, Material
     6 from vector import dot
     6 from vector import dot
     7 
     7 
     8 def read_int4(f):
     8 def read_int4(f):
     9 	return unpack('>i', f.read(4))[0]
     9 	return unpack('>i', f.read(4))[0]
    10 
    10