[osg-users] [Fwd: Mesa and gldirect]

Jean-Sébastien Guay jean-sebastien.guay at cm-labs.com
Mon Mar 23 11:13:03 PDT 2009

Hi all,

About the recent discussion about trying to make a wrapper around OpenGL 
that would forward calls to Direct3D, in a recent post I said I had 
found info about SciTech's GLDirect, which was open sourced and 
integrated into the Mesa code repository.

Well, recently Pat Wood (who is not a subscriber to this list but got 
wind of my searching) sent along this info. (see below for the full message)

I think the GLDirect code is pretty much dead in the Mesa code 
repository - it doesn't seem to be kept up to date and there are 
probably some improvements that could be made to make it perform better. 
I wonder if we could put together a working group of OSG users that 
could take over the code, get it to work and update it so it could at 
least give us an idea of what such a wrapper would look like and how it 
would perform on modern machines and graphics cards.

Is there any interest in such a working group? I've never done driver 
development myself (apart from a little thing that would control an ADC 
and stepper motor through the parallel port back in the DOS days) but 
I'd be happy to lend a hand if there's something I can help with. We'd 
need some more knowledgeable people if we want this to take off.



----- Forwarded message from Pat Wood <Pat.Wood at efi.com> -----
     Date: Mon, 16 Mar 2009 16:34:39 -0700
     From: Pat Wood <Pat.Wood at efi.com>
Reply-To: Pat Wood <Pat.Wood at efi.com>
  Subject: Mesa and gldirect
       To: "Jean-Sebastien Guay" <jean-sebastien.guay at cm-labs.com>

I've been playing around with the gldirect5 version of mesa 
(essentially, the
code that SciTech released), which is integrated into mesa 6 (GL 1.1). 
I saw
the dx7/8/9 directories in Mesa 7.3 and am thinking of taking on the task of
updating the gldirect code to work with it (I believe the gldirect code 
been updated for some time).  This code might be very useful, since a lot of
non-nVidia OpenGL implementations have lots of problems, are old 1.2 or 1.3
APIs, or just don't work.  In particular, we're using Ogre for one of our
products, and it doesn't play well with non-compliant GL implementations.

As for performance, it's about 2.5x slower than the native GL on my GeForce
8600GT, and almost the same speed as the native GL on my laptop with a 
Radeon 9000.  Shaders are handled by translating GLSL to the DirectX 9 
language HLSL.

If you have any other questions, feel free to email me.  I'm not a 
member on the
OpenSceneGraph Forum.


----- End forwarded message -----

Jean-Sebastien Guay    jean-sebastien.guay at cm-labs.com

Jean-Sebastien Guay    jean-sebastien.guay at cm-labs.com

More information about the osg-users mailing list