Fixed problems, textured cube
This commit is contained in:
@@ -23,7 +23,7 @@ class Material:
|
||||
|
||||
try:
|
||||
ix, iy, image = self.map_Kd.size[0], self.map_Kd.size[1], self.map_Kd.tobytes("raw", "RGBA", 0, -1)
|
||||
except SystemError:
|
||||
except:
|
||||
ix, iy, image = self.map_Kd.size[0], self.map_Kd.size[1], self.map_Kd.tobytes("raw", "RGBX", 0, -1)
|
||||
|
||||
self.id = gl.glGenTextures(1)
|
||||
|
||||
@@ -53,7 +53,7 @@ class OBJParser(ModelParser):
|
||||
face.material = self.current_material
|
||||
self.add_face(face)
|
||||
elif len(split) == 4:
|
||||
face = Face().form_array(splits[:3])
|
||||
face = Face().from_array(splits[:3])
|
||||
face.material = self.current_material
|
||||
self.add_face(face)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user