[Kde-games-devel] Calling Eugene and Dmitry ...

Ian Wadham ianw2 at optusnet.com.au
Sun Jun 29 01:04:49 CEST 2008


On Sat, 28 Jun 2008 11:45:26 am Matthew Woehlke wrote:
> Ian Wadham wrote:
> > With Matthew Woehlke's help, I have worked out how to program painting
> > a background in Kubrick (and OpenGL generally), so now I would like you
> > to provide, for Kubrick in KDE 4.1:
>
> I'm admittedly curious if you got Ortho2D working how you like or stuck
> with the "3D" background :-).

Yes, I did get Ortho2D working.  It was indeed the order of points in
the rectangle that was making my rectangle invisible.  The rectangle
also became invisible in your patch if I changed the order of points to
clockwise or changed the order of Ortho2D (co-ordinate system)
parameters or messed with CULL and FRONT_AND_BACK options.

I have been busy the last several days with family and personal matters
and a couple of Kubrick bug reports (affecting the GUI), so have not
finally decided whether to slip briefly into 2D or stay in 3D for drawing
a Kubrick background.  It's 6 of one and 3x2 of the other ... :-)

If there were lots of 2D stuff to draw, such as graphical game controls
and readouts, I would certainly mix 2D and 3D.  As it is, there is not
much code in either method, to just draw a rectangle, and there is
more code in loading graphics and fitting a texture.  So I may stay in
3D for now.

It has been interesting learning more about 2D in OpenGL and how
the various OpenGL settings interact, so thank you very much for
your help in this, Matthew.

All the best, Ian W.





More information about the kde-games-devel mailing list