News for hackers. Stuff that matters.
Re:Metal – Apple’s new graphics API by jarrett on Monday June 02, 2014 @05:42PM (#7836649)
It's somewhat scary to see new graphics APIs being introduced.

The fragmentation of OpenGL is enough of a headache, but at least it offers some semblance of "write once, run anywhere." The introduction of Mantle and Metal, plus the longstanding existence of Direct3d, makes me worry that OpenGL will get no love. And then we'll have to write our graphics code, three, four, or goodness knows how many times.

I know: It's not realistic to expect "write once, run anywhere" for any app that pushes the capabilities of the GPU. But what about devs like me (of whom there are many) that aren't trying to achieve AAA graphics, but just want the very basics? For us, "write once, run anywhere" is very attractive and should be possible. I can do everything I want with GL 2.1, I don't need to push a massive number of polys, I don't need a huge textures, and I don't need advanced lighting.

Re:Metal – Apple’s new graphics API by pjmlp on Monday June 02, 2014 @06:02PM (#7836773)
That is what engines are for anyway.

Contrary to FOSS beliefs, consoles never had proper OpenGL support anyway, so game studios already had to take care of multiple APIs on their engines.

Re:Metal – Apple’s new graphics API by nightski on Tuesday June 03, 2014 @12:04AM (#7838070)
That worked out very well on Windows with DirectX. The engines clearly provided an equal experience for both OpenGL and DirectX, not favoring the platform specific API at all.
Re:Metal – Apple’s new graphics API by jarrett on Tuesday June 03, 2014 @10:46AM (#7840490)
True, but as with advanced rendering techniques, not everyone wants to use off-the-shelf engines. In a simple application, there's something to be said for writing your own, simple graphics code.
Re:Metal – Apple’s new graphics API by ndesaulniers on Monday June 02, 2014 @05:43PM (#7836657)
In that case, you should be happy that WebGL will be on by default in iOS 8 and Safari.
Re:Metal – Apple’s new graphics API by jarrett on Monday June 02, 2014 @06:00PM (#7836759)
Very happy indeed!
Re:Metal – Apple’s new graphics API by general_failure on Monday June 02, 2014 @06:44PM (#7836976)
Where did you read that uiwebview/mobile safari in ios8 has webgl?
Re:Metal – Apple’s new graphics API by bd on Monday June 02, 2014 @07:54PM (#7837298)
Multiple people on Twitter confirmed WebGL running on their devices with iOS 8 beta installed:

https://www.youtube.com/watch?v=VZ0aWbZjX6M

https://www.youtube.com/watch?v=eX5hUdhI4Hs

https://vine.co/v/MpXia7EmwAl

https://dl.dropboxusercontent.com/spa/9hdhy0x8uk9d155/02uwwr...

https://dl.dropboxusercontent.com/spa/9hdhy0x8uk9d155/iwy2qc...

It does run both in Safari and WebView and it's pretty fast:

http://blog.ludei.com/webgl-ios-8-safari-webview/

http://www.photonstorm.com/html5/a-first-look-at-what-ios8-m...

It has very decent subset of features supported:

https://www.dropbox.com/s/i80qxzap59i230n/2014-06-02%2023.43...

But apparently it's not yet fully stable.

Also Dean Jackson from Apple's WebGL team tweeted, please direct eventual bug reports to him:

https://twitter.com/grorgwork/status/473580744892112897

Re:Metal – Apple’s new graphics API by jasoncartwright on Monday June 02, 2014 @06:45PM (#7836982)
Re:Metal – Apple’s new graphics API by stevejohnson on Monday June 02, 2014 @07:15PM (#7837115)
That's for desktop Safari.
Re:Metal – Apple’s new graphics API by zanny on Monday June 02, 2014 @05:49PM (#7836684)
OpenGL 5 will happen in the next two years (and GLES 4) and it will take the wind out of all these alt-language sails.

I can't see Khronos making the same fuck up twice, as they did with Longs Peak.

Yeah, it means depreciating a bunch of 3.x shit, and probably making another profile, but this time they better do it right.

Re:Metal – Apple’s new graphics API by cwyers on Monday June 02, 2014 @07:15PM (#7837117)
I think it's reasonable to assume if an entity had fucked up once, they are at least capable of doing so again.
Re:Metal – Apple’s new graphics API by fleitz on Tuesday June 03, 2014 @12:13AM (#7838106)
Even if they don't fuck it up, the half-assed implementations of it will.
Re:Metal – Apple’s new graphics API by foxhill on Tuesday June 03, 2014 @08:16AM (#7839618)
> OpenGL 5 will happen in the next two years (and GLES 4) and it will take the wind out of all these alt-language sails.

2 years? in two years time nvidia will have their next line of GPUs out (pascal), intel will have launched knights landing (the many core xeon), and the next version of OS X will be released. 2 years is a long time, and it will already be behind the curve from it's announcement. khronos have a history of stagnation and disappointment.

> I can't see Khronos making the same fuck up twice, as they did with Longs Peak.

i think you may be mis-under-estimating khronos..

Re:Metal – Apple’s new graphics API by jarrett on Monday June 02, 2014 @06:01PM (#7836765)
I'm all for deprecating old OpenGL features. Old apps won't fail to run for a while yet. When they do, the community will no doubt create a compatibility layer like they did with DosBox.
Re:Metal – Apple’s new graphics API by Htsthbjig on Tuesday June 03, 2014 @06:14AM (#7839138)
In my opinion, this is great news for OpenGL, it brings competition.

The problem with OpenGL is legacy code and committee hell.

If something works, like precompiled shaders, OpenGL committee will include it in the future spec.

I use OpenGL for very simple things, OpenGL needs to loose weight and get slim. I am certainly not satisfied with OGL 2.1. It is a design that does not make sense anymore with actual hardware(it did like 10 years ago).

Re:Metal – Apple’s new graphics API by Argorak on Monday June 02, 2014 @06:09PM (#7836810)
Actually, the name Metal reminded me of S3 MeTaL, one of the APIs during the time when each and every 3D accelerator manufacturer had their own API ;).
Re:Metal – Apple’s new graphics API by panzi on Monday June 02, 2014 @07:51PM (#7837284)
And now we are at a state where almost all OS vendors and some GPU manufacturers have their own API. I'm only waiting for Nvidia to announce their own API. They did buy 3dfx back in the days, so they have (bought) some experience with own APIs.
Re:Metal – Apple’s new graphics API by mrec on Tuesday June 03, 2014 @08:12AM (#7839595)
Glide is not remotely relevant to anything anymore, and hasn't been for years. Besides, NV have much more recent experience with their own APIs, in form of CUDA and Cg.

I like the general trend indicated by this and Mantle and DX12, but the return to full-on platform fragmentation is a bit depressing.

Re:Metal – Apple’s new graphics API by yoklov on Monday June 02, 2014 @10:35PM (#7837850)
I think NVidia might be betting on OpenGL prevailing through this mess.

Not a bad bet, if you ask me...

Re:Metal – Apple’s new graphics API by fleitz on Tuesday June 03, 2014 @12:11AM (#7838098)
Then you don't need Metal. APIs are typically written for general use cases.

Independent dev writing low poly apps for multiple platforms is the Unity use case.

OpenGL 2.1 will be supported forever, don't worry, since you don't need anything more than GL2.1 it will run everywhere.

Re:Metal – Apple’s new graphics API by kuschku on Tuesday June 03, 2014 @05:13AM (#7838887)
You will need more modern stuff than OpenGL2.1 because OpenGL2.1 uses a really deprecated model. You'd really want use the new rendering system based on VBOs and Shaders instead of glBegin().
Re:Metal – Apple’s new graphics API by jarrett on Tuesday June 03, 2014 @10:50AM (#7840515)
OpenGL 2.1 has VBOS and shaders. I've never used immediate mode with 2.1.
Re:Metal – Apple’s new graphics API by vincetogo on Monday June 02, 2014 @10:40PM (#7837863)
Did Apple deprecate OpenGL on iOS? If not you should still be able to work with it if it does what you need.
Re:Metal – Apple’s new graphics API by jarrett on Tuesday June 03, 2014 @10:54AM (#7840545)
I'm pretty sure they didn't. My concern though is that OpenGL will fade away.

OpenGL isn't exactly a product. There's no company that "writes" the OpenGL software. Rather, it's a specification published by a consortium. "Writing" the OpenGL libraries is a task that each GPU maker does independently. So you have a bunch of different implementations of the same API.

For a long time, GPU makers have focused their attention on DirectX and done a lackluster job with their OpenGL implementations. If APIs like DirectX and Metal continue to proliferate, there will be less and less time and less incentive to maintain a good OpenGL implementation.