On 09/07/14 15:05, Da, Jose Luis wrote:
Hi Adam, thanks for your answer.

I have added this bit of code to see if the config is supported

    allowstencil = pyglet.gl.Config(stencil_size=8)
    if not allowstencil:
        print "no allowstencil"
        myWindow =
    pyglet.window.Window(fullscreen=False,screen=screens[0], visible = 0)
    else:
        print "YES allowstencil"
        # Create window (not visible at start)
        myWindow =
    pyglet.window.Window(config=allowstencil,fullscreen=False,screen=screens[0],
    visible = 0)


And it is indeed supported. But the window is still blank.

Do you have any other idea why this may happen?


On 9 July 2014 00:34, Adam Bark <[email protected] <mailto:[email protected]>> wrote:

    On 08/07/14 14:40, Da, Jose Luis wrote:
    Sorry to bother you again. Did I explain myself well? Just a
    reply, even if it was "I have no idea" would be fantastic!


    On 27 June 2014 09:45, Da, Jose Luis <[email protected]
    <mailto:[email protected]>> wrote:

        Juan: I do not think that the shadow window is the problem I
        have and I load all my resources after I initialize the
        context. Anyway, thank you for your response.

        Adam:
        *So it isn't specifically the stencil buffer that is broken?
        Do you have the latest driver for your GPU? Do the pyglet
        examples display correctly?*
        I do not think that the stencil buffer is broken. I think it
        is the openGL Config (pyglet.gl.Config) what does not work. I
        have tried other examples and old codes that work correctly
        when the openGL Config is not enabled. However, when I
        initialize the window in the following way, the pyglet window
        is completely blank:

            allowstencil = pyglet.gl.Config()
window = pyglet.window.Window(config = allowstencil)

        Note that the pyglet.gl.Config() call is empty, but if I add
        the stencil option (below), the pyglet window is still blank.

            allowstencil = pyglet.gl.Config(stencil_size=8)
window = pyglet.window.Window(config = allowstencil)


        And yes, I have the latest driver for my GPU.


        Thank you for your answers!
        jl

    Can you check this bit of the docs
    
http://pyglet.org/doc-current/api/pyglet/pyglet.window.html#specifying-the-opengl-context-properties
    and see if the configuration is supported.
--
Not really, sorry. Do other pyglet programs work fine? Have you run through the test suite? Can you test any other graphics cards so we can eliminate the graphics driver as the problem? Would you mind sharing the code or, better still, a minimal example of the problem in the hope that someone else running OSX will test it? Maybe open an issue on googlecode, post the code there and email a link.

--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to