Can anyone suggest and PyOpenGL tutorials?
I heard that the PyOpenGL project is pretty much dead. However, the good news is that wxPython has incorporated the Open Graphis Library (OGL). Here is an example:
# 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, title="explore wx.lib.ogl stuff", size=(400,300)) canvas = ogl.ShapeCanvas(self) canvas.SetBackgroundColour("yellow") diagram = ogl.Diagram() # marry the two ... canvas.SetDiagram(diagram) diagram.SetCanvas(canvas) # create some standard shapes ... # (check how creation order affects overlap) circle = ogl.CircleShape(100.0) # radius circle.SetX(75.0) # center x circle.SetY(75.0) circle.SetPen(wx.RED_PEN) circle.SetBrush(wx.CYAN_BRUSH) canvas.AddShape(circle) text = ogl.TextShape(250, 30) # (w, h) text.SetX(180) # center x text.SetY(240) text.AddText("you can drag the circle or the text") canvas.AddShape(text) diagram.ShowAll(True) # use a sizer sizer = wx.BoxSizer(wx.VERTICAL) # canvas will grow as frame is stretched sizer.Add(canvas, 1, wx.GROW) self.SetSizer(sizer) #self.SetAutoLayout(1) app = wx.App() ogl.OGLInitialize() MyFrame().Show() app.MainLoop()
I brought up practically exactly the same issue as you did a few months ago.
Eventually though i used VPython instead:
It does 3D and is pretty easy to understand. Have a look at the thread to see some of the things that is can do, all thanks to vegaseat
Im trying to bind my custom vertical scrollbar to datagridview is this possible.. Please help Thnak you..
I have two tables, I will call them first-half and second-half (of the year)
Table: first id jan feb mar apr ----------------------- 2 80 90 70 60 3 50 40 60 30 Table: second id jan feb mar apr ----------------------- 2 50 70 60 90 3 80 60 50 ...
i am trying to create a library management system which is supposed to be used to store/keep infp for the library and the library members( book title, author, name and picture for borrower and other stuffs). The app has 6 buttons, delete, save, add,previsous,next, and upload( for upload ...