Samson Liu wrote:
I'm trying to implement GUI in my 3d scene, but I wasn't able to find a lot of examples on how you would implement that.
...
I can switch between 2d and 3d view, I just can't separate for GUI and model

After doing all your 3D drawing:

1. change the projection matrix to an orthographic projection
2. set the modelview matrix back to an identity matrix (if needed --
   should be okay already if you've popped anything that you pushed
   during the 3D drawing)
3. disable depth testing
4. draw your GUI

Does that help?

--
Greg

--
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 https://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to