Shadow example code

30 views
Skip to first unread message

Rui Carmo

unread,
Jan 11, 2012, 2:58:21 PM1/11/12
to pyglet-users
Hello there,

I'm starting to use pyglet to prototype a few things, but my OpenGL-
foo is somewhat rusty and I can't find a good example for rendering
shadows (I had a go using GL_STENCIL_TEST, etc., but so far I'm
stumped).

I'm running trunk and searched inside the sample code. Anything as
simple as a couple of quads properly casting shadows atop each other
would be helpful (loving vertex_lists, by the way, very handy).

Regards,

R.

http://the.taoofmac.com

Richard Jones

unread,
Jan 13, 2012, 8:32:59 PM1/13/12
to pyglet...@googlegroups.com
On 12 January 2012 06:58, Rui Carmo <rui....@gmail.com> wrote:
> I'm starting to use pyglet to prototype a few things, but my OpenGL-
> foo is somewhat rusty and I can't find a good example for rendering
> shadows (I had a go using GL_STENCIL_TEST, etc., but so far I'm
> stumped).
>
> I'm running trunk and searched inside the sample code. Anything as
> simple as a couple of quads properly casting shadows atop each other
> would be helpful (loving vertex_lists, by the way, very handy).

There's nothing in the pyglet examples that does stencil shadowing. If
you get it working it'd be a great addition :-)


Richard

Reply all
Reply to author
Forward
0 new messages