News for hackers. Stuff that matters.
Re:Chrome dev on WebGL security and Microsoft bullshit by rbanffy on Tuesday June 21, 2011 @09:00AM (#2678542)
> Microsoft has never supported OpenGL

That's not exactly true. OpenGL support was introduced with Windows NT, IIRC. At that time, Microsoft found OpenGL support critical for NT to compete with the unix workstation segment.

They later started emphasizing Direct3D as the preferred way to do 3D, possibly because supporting OpenGL would make porting 3D-heavy games to other platforms easier.

Re:Chrome dev on WebGL security and Microsoft bullshit by eropple on Tuesday June 21, 2011 @09:36AM (#2678664)
Or, possibly, because it's a better API and more developer-friendly environment.

Working at a low level with OpenGL is really painful, and there are no Direct3D-quality libraries on top of it to blunt that pain.

Re:Chrome dev on WebGL security and Microsoft bullshit by stephen_g on Tuesday June 21, 2011 @09:47AM (#2678717)
Do you have any comparisons or examples? I've found OpenGL to be a fairly straightforward API (if you ignore all the depreciated stuff)...
Re:Chrome dev on WebGL security and Microsoft bullshit by eropple on Tuesday June 21, 2011 @11:56AM (#2679269)
Just off the top of my head, because it's been a while since I rolled a list like this. One is a complaint from friends of mine that I haven't personally tripped over; others are my own issues from assorted hilarious Failures Of Graphics Programming.

* A total lack of typing. Everything is a GLuint. By the time I've bodged together sufficient type safety to be comfortable, it looks like DirectX.

* Extensions suck. Abjectly suck. While Direct3D has its problems, it does a pretty good job of saying "you must support these things". OpenGL attempts to vaguely say the same thing, but the difference is that Direct3D enforces support of things I want to use. It seems that you end up with many more code paths for OpenGL if you want to properly handle a lot of stuff.

* Difficult to query about GLSL problems, if possible at all. (An older example that's stuck with me is the noise() function, which nobody implemented the last time I dealt with this stuff. They returned a constant. Detecting this failure mode was nontrivial.)

* Tooling. As usual, Microsoft is way ahead in this area.

A project of mine uses OpenGL instead of D3D, but that's primarily because I'm not the graphics guy on that project. My own stuff just uses XNA, as it's 2D stuff I want to deploy to the 360.

Re:Chrome dev on WebGL security and Microsoft bullshit by magicalist on Tuesday June 21, 2011 @04:55PM (#2680378)
from launch until basically 2000 DirectX was definitely not a better API. having full control over defining a 3D API was great, I'm sure, but it was absolutely used as leverage and opengl support absolutely languished (and still does, today, though the GPU vendors are fully complicit).
Re:Chrome dev on WebGL security and Microsoft bullshit by eropple on Tuesday June 21, 2011 @06:44PM (#2680724)
I agree, but I don't care about "until 2000". That was 11 years ago.
Re:Chrome dev on WebGL security and Microsoft bullshit by magicalist on Tuesday June 21, 2011 @08:06PM (#2680958)
well sure, but that's not what you were responding to. OpenGL was still quite new (and broadly supported) when Microsoft started pushing DirectX.

This isn't really material to the discussion at hand, though.

Re:Chrome dev on WebGL security and Microsoft bullshit by recoiledsnake on Tuesday June 21, 2011 @10:23AM (#2678844)
Even a cursory look at Wikipedia would let the author know that MS was a part of the original OpenGL ARB till 2003 and was even a voting member along with all the big backers. http://en.wikipedia.org/wiki/OpenGL_Architecture_Review_Boar...

>They later started emphasizing Direct3D as the preferred way to do 3D, possibly because supporting OpenGL would make porting 3D-heavy games to other platforms easier.

With the side effect that the standard moved much faster unlike OpenGL that got stuck in the 'design-by-committee' hole, not to mention a much cleaner API with way better dev tools and features.