Re: Tristan McDonald's Shader.py

2020-04-21 Thread Nicky Mac
d by adding > > from ctypes import * > > On Mon, Apr 20, 2020 at 12:22 PM Nicky Mac wrote: > >> >> >> On Monday, April 20, 2020 at 10:25:59 AM UTC+1, Nicky Mac wrote: >>> >>> the splendid glsl examples in pythonstuff.org require th

Re: how to acquire Tristan McDonald's Shader.py

2020-04-20 Thread Nicky Mac
On Monday, April 20, 2020 at 10:25:59 AM UTC+1, Nicky Mac wrote: > > the splendid glsl examples in pythonstuff.org require the use of Tristan > McDonald's Shader.py > obtainable from : > https://swiftcoder.wordpress.com/2008/12/19/simple-glsl-wrapper-for-py

how to acquire Tristan McDonald's Shader.py

2020-04-20 Thread Nicky Mac
the splendid glsl examples in pythonstuff.org require the use of Tristan McDonald's Shader.py obtainable from : https://swiftcoder.wordpress.com/2008/12/19/simple-glsl-wrapper-for-pyglet/

Re: Problem of how to draw a GL_TEXTURE_CUBE in pyglet

2020-04-27 Thread Nicky Mac
, Nicky Mac wrote: > > I'm working with Python3.6 and Pyglet, Interested in displaying a very > large number of variously textured blocks in Minecraft style., I wondered > if using GL_TEXTURE_CUBE_MAP would improve performance compared to > rendering the 6 faces each time. Usin

Problem of how to draw a GL_TEXTURE_CUBE in pyglet

2020-04-24 Thread Nicky Mac
I'm working with Python3.6 and Pyglet, Interested in displaying a very large number of variously textured blocks in Minecraft style., I wondered if using GL_TEXTURE_CUBE_MAP would improve performance compared to rendering the 6 faces each time. Using cubemap (from

Re: Tristan McDonald's Shader.py

2020-04-22 Thread Nicky Mac
il_source=link_campaign=sig-email_content=webmail> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> On Wed, 22 Apr 2020 at 06:02, Greg Ewing wrote: > On 22/04/20 12:31 am, Nicky Mac wrote: > > src = (c_char_p * count)(*strings) > > TypeError: bytes or integer address expected ins

image.TextureGrid error when given an ImageGrid

2020-05-08 Thread Nicky Mac
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

setting non-square tarnish texture causes Access Violation

2020-05-25 Thread Nicky Mac
I don't have a problem creating and applying square textures, using windows10 python36 and latest pyglet but following tutorials to apply 'tarnish' size 512 x 256 I get an access violation. Here is th stripped-down code: #!/usr/bin/env python import pyglet from pyglet.gl import * from

Re: setting non-square tarnish texture causes Access Violation

2020-05-27 Thread Nicky Mac
Ha! the access error was caused by specifying RGBA when the image was actually RGB. On Monday, May 25, 2020 at 11:14:10 AM UTC+1, Nicky Mac wrote: > > > I don't have a problem creating and applying square textures, using > windows10 python36 and latest pyglet > but follo