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
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
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/
, 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
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
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
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
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
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