hey... I can't seem to find any tutorials that only use PyOGL...
can anyone help out??

also... I found an early thread asking the same Q,
where vegaseat mislead someone about OGL back in 2008... :P

I just thought I'd point out OGL development is actually thriving,
but it's code-base is in C++/C#
(just look at Blender's API)

anyways, I'd really like to build my own GUI using GL (like Blender),
but I'm just not sure where to start... >_>

5 Years
Discussion Span
Last Post by Tcll

You can try:

Also the wxPython GUI toolkit has OGL pretty well integrated ...

# the Open Graphics Library (OGL) is now pretty well 
# integrated with wxPython

import wx
import wx.lib.ogl as ogl

class MyFrame(wx.Frame):
    def __init__(self):
        wx.Frame.__init__( self, None, wx.ID_ANY,
            "wx.lib.ogl Demo", size=(400,300))

        canvas = ogl.ShapeCanvas(self)

        diagram = ogl.Diagram()
        # marry the two ...

        # create some standard shapes ...
        # (check how creation order affects overlap)
        circle = ogl.CircleShape(100.0) # radius
        circle.SetX(75.0)  # center x

        text = ogl.TextShape(250, 30)  # (w, h)
        text.SetX(180)  # center x
        text.AddText("you can drag the circle or text")


        # use a sizer
        sizer = wx.BoxSizer(wx.VERTICAL)
        # canvas will grow as frame is stretched
        sizer.Add(canvas, 1, wx.GROW)

app = wx.App(True)

Edited by vegaseat: code sample


eh... wx...

crappy Windows-styled GUI's DX
+ another thing I'd have to integrate into my program... >_>

yeh... I've been to the documentation at SF...
IT SUX big time, and half the examples don't exist...
(most of them being needed examples)

I'm thinking about taking a course in C++ just so I can understand those OGL tuts...
but I'm hoping I won't have to >_>

and about integration,
yes I've integrated PyOGL into my program so DL-ers won't have the inconveinence of having more to DL...

I chose OGL because there's no limitations to the GUI,
and it's entirely free-form...

basically saying:
if you can make it in Blender,
you can make it in OGL.
(programming a GUI in OGL is just like building a HUD for a game)

I just need to learn OGL programming >_>


lol, how'd I fail to notice your referral to google XDD

google doesn't have alot of easy to understand stuff...
that is, unless you're a C-type programmer...

that's why I came here, hoping to find a cross-progammer...

there was another Daniweb referral from google,
which was the one I talked about below (or above for other users). >_>

almost everything I have uses OGL
and programming in OGL is easier than programming in DX

anyways... please, no more referrals unless you have something referrably useful. :)


> anyways... please, no more referrals unless you have something referrably useful

Actually, that is vegaseats signature.


> anyways... please, no more referrals unless you have something referrably useful

Actually, that is vegaseats signature.

alright then I apologize for that.
I always thought the edit post time was above the sig >_>

but I do still validate the "no useless referrals plz" :)


I've been searching through some random google searches,
and am getting Q's answered here in the meantime...

*sigh* I hate you google. -.-*

I've done some collections on OpenGL
(I still can't program a working GUI w/o help)

but anyways...
maybe I could be one of the first to build a tut using only PyOpenGL
since most other users use PYGame or other modules >_>

I only want:
a working OpenCL (no extra modules needed)
a compiled OpenAL (need .py files)

people don't seem to realize it's annoying to have to install all these add-ons just to work a simple program >:O

and about OpenAL...
I can't compile it myself as I don't have Cygwin or MingW
(nor do I really want them)
*lies about not having Cygwin and really has it for RVL_SDK*


well, I've been getting by with the NeHe tutorials on PyOpenGL,
although they don't teach you the exact specs you need...
they work off of the context, which I approve, but don't agree with >_>
(the context is the default way of setting up a window)

I prefer to do it w/o that (which I've found a substitue example for...

I've only gotten as far as NeHe 6 for now...
(the tut uses PIL which I don't have, nor want... yet)
^but I've found a substitute that uses the image module...

I just want to get my first release running...
I'll work on perfection for a later release >_>

EDIT: btw...
I'll post info on what I've used once I get net on my compy...
(should be real soon here)

Edited by Tcll: n/a


ok... don't mind me...
I just have to rant DX

I'm so tired of seeing Python examples that use NumPy or PIL >:O

I mean...
I can easily build my own image wrapper to take PIL's place...
but I don't have a replacement method for NumPY.

havn't people heard of stand-alone examples :srs:

yeh... sry for that...
it's just hard trying to watch how much you can implement...
(I have no net on my compy)

I won't install any add-ons either, as I want my program to work on anyone's compy...
(dumb idea (of add-ons) is dumb)

I've already integrated Python and PyOpenGL into my program,
and those work perfectly...
but I want my program to take up MB's, not GB's
(integrating 8-12 add-ons will most likely take up GB's of data)

but srsly... isn't there any working stand-alone examples out there?? >:/
(I'm so tired of the hastle, it's just not funny anymore)

I mean...
Nobody should have to go through this much work to get their program at least functional...
(mine's not even at that yet) ;_;

Now I'm making a request:
so all I have is Python and OpenGL...
can I get a full model viewer that only uses these??
if so, how??

I'll pass up on Texturing,
since the only decent textures that work in Python require a module that's depricated...
(the module being 'rgbimg.py')

can someone at least reply on this in less than a week plz :/
60,000 people can't wait for this forever you know >_>
(I've at least gotten myself a few years delay time (for the rate this programs going))

^I'm honestly expecting it to take longer
(not getting very much info from 8 forums) T.T

Edited by Tcll: n/a

This article has been dead for over six months. Start a new discussion instead.
Be sure to adhere to our posting rules.