I am attempting to draw a Skybox from an existing file with the following code:
boxname = 'skybox1.jpg' print('Loading',boxname) skygrid = image.load(os.path.join('Assets', boxname)) sky_grid = image.ImageGrid(skygrid, 3,4) sky = image.TextureGrid(sky_grid) # resource KeyError: <TextureRegion 64x64> sky_frames = [sky[4], sky[6], sky[9], sky[1], sky[7], sky[5]] ------------------------------ here's what happens: ---------------------------------------- Loaded skybox1.jpg Traceback (most recent call last): File "C:\Python\Python36\lib\site-packages\pyglet\resource.py", line 435, in file location = self._index[name] KeyError: <TextureRegion 64x64> TextureImage is erroneously trying to use resource to read theTextureRegion as if it were a file I'm on Python 36. -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to pyglet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/pyglet-users/dd842658-ee70-4549-bc81-c061b5494c87%40googlegroups.com.