from visual import *

import Image
name = "faust.tga"

width = 400
height = 640

im = Image.open(name)
materials.saveTGA(name,im)      # Speichern des Bildes intern
data = materials.loadTGA(name)
tex = materials.texture(data=im, mapping="sign")  # Darstellungsart


buch = frame()
buchinhalt = box(pos=(0,0,0),length=1.5, height=2, width=0.5, material=materials.emissive, frame=buch)
deckel1 = box(pos=(0.04,0,0.26), height=2.1, width=1.6, axis =(0,0,.02), color=(.5,0,0), frame=buch, material= tex) 
deckel2 = box(pos=(0.04,0,-0.26), length=1.6, height=2.1, width=0.02, color=(.5,0,0), frame=buch)
deckel3 = box(pos=(-0.77,0,0), length =0.02, height= 2.1, width= 0.54, color=(.5,0,0), frame=buch)




