News for hackers. Stuff that matters.
Re:Apple Joins Blender Development Fund by dagmx on Thursday October 14, 2021 @11:41AM (#28865825)
Apple also submitted a patch to port Cycles to run on Metal.

https://developer.blender.org/T92212

Re:Apple Joins Blender Development Fund by progbits on Thursday October 14, 2021 @02:15PM (#28867883)
I guess some will see this as good news, but further entrenching Metal is just sad in my opinion. So much wasted effort just because they can't admit they lost the standards game and won't move to Vulkan.

The generous interpretation is they just don't want to invest into that if it isn't "broken" but the cynic in me can't help but think at least part of the motivation is being different and maintaining the wall around the garden.

Re:Apple Joins Blender Development Fund by xenadu02 on Thursday October 14, 2021 @03:53PM (#28869131)
I don't know why we have to keep having this discussion but Metal pre-dates Vulkan. It shipped to developers in June 2014. Vulkan didn't ship until Feb 2016.

Metal is the reason Vulkan exists: Apple announced Metal in June 2014 and the first Khronos meeting about a replacement for OpenGL was hosted at Valve in July 2014 so they could rush to announce an "open standard" under development at SIGGRAPH later that year. The only reason it managed to ship a final spec in 2016 was because AMD donated Mantle to boot-strap the process.

When you make your own GPUs and have sufficient scale to get developer adoption owning your own API can let you move much faster than others while avoiding vendor extension hell (that turns into a bespoke API-within-an-API at the extreme end).

Besides which MoltenVK effectively allows Vulkan software to run against Metal anyway. In that sense it's also better for Vulkan because it can ship API updates whenever Khronos feels like it.

Re:Apple Joins Blender Development Fund by hvis on Thursday October 14, 2021 @06:16PM (#28870929)
> Metal is the reason Vulkan exists

That seems to give way too little credit to Mantle. Which was released in 2013 and became the basis for Vulkan.

Re:Apple Joins Blender Development Fund by xenadu02 on Friday October 15, 2021 @12:31AM (#28874314)
Please re-read my parent comment. A few weeks after Apple announced Metal at WWDC Khronos members met for the first time ever to kickoff then project to replace OpenGL. I don't believe that is a coincidence. Maybe Metal was the straw that broke the Camel's back, maybe not.

I also noted that AMD donated Mantle as the starting point which is why Vulkan didn't take 5 years to finalize.

In any case claiming that Apple is somehow at fault for not adopting Vulkan doesn't make sense.

Re:Apple Joins Blender Development Fund by hvis on Friday October 15, 2021 @03:34PM (#28882101)
> Please re-read my parent comment.

I just said that it's severely overstating the case.

> In any case claiming that Apple is somehow at fault for not adopting Vulkan doesn't make sense.

Why not? They could have adopted Mantle instead, for example. It came out a year earlier. Or it could have replaced Metal with Vulkan later (as it is often a reasonable choice to replace your custom solution with the industry's standard). Or it could have chosen to officially support Vulkan alongside it.

Apple has lots of money in the bank, and with that, lots of options.

Re:Apple Joins Blender Development Fund by Encounter on Thursday October 14, 2021 @02:59PM (#28868467)
Metal is by far a much friendlier API than Vulkan. Its approach with opt-in complexity is arguably the correct one. (Ever tried writing a Vulkan "Hello triangle" from scratch?)

It's also gaining some nice features that are usable out of the gate, rather than waiting on Vulkan extension standardization and adoption. It simply makes the most sense for Apple.

Re:Apple Joins Blender Development Fund by capableweb on Thursday October 14, 2021 @03:52PM (#28869124)
> Metal is by far a much friendlier API than Vulkan

Sure, but that was hardly the point of Vulkan in the first place. The point is to have cross-platform 3D grahipcs, but since Apple never gave a shit about anything cross-platform, they chose to write their own stuff.

And if they actually did care, they could have modeled the same API as they have with Metal, but over Vulkan, so the engine is the same but the API is "much friendlier".

It simply makes the most business sense for Apple, but as is tradition, the whole software ecosystem is worse off because of their choices.

Re:Apple Joins Blender Development Fund by Encounter on Thursday October 14, 2021 @08:33PM (#28872287)
Well you can use Vulkan over Metal with MoltenVK, so that point is a bit moot.

Opinion time: WebGPU will become the standard graphics API to target for cross-platform. gfx-rs/wgpu already works over Vulkan/Metal/D3D12/D3D11/OpenGL/WebGL & WebGPU in browsers. Much better than simply Vulkan, unless performance is your primary sticking point.

Re:Apple Joins Blender Development Fund by pjmlp on Friday October 15, 2021 @03:08AM (#28875171)
First they have to sort out what that frankenstein merge of C++, HLSL and Rust named WGSL is supposed to look like.
Re:Apple Joins Blender Development Fund by capableweb on Saturday October 16, 2021 @10:54AM (#28888265)
How is the point of Apple pushing Metal instead of Vulkan when the change request submitted to Blender is not using the MoltenVK stuff you're talking about? If anything it proves my point
Re:Apple Joins Blender Development Fund by lonjil on Thursday October 14, 2021 @05:55PM (#28870706)
For Cycles, Vulkan is simply not an option. Metal compute is capable of everything OpenCL is, but is more modern / nicer / whatever, while Vulkan Compute is pretty crap and definitely can't be used as a replacement for OpenCL.

The only cross platform alternative that actually works is OpenCL, but Blender is moving away from OpenCL, mostly because literally every GPU vendor is doing so as well.

Re:Apple Joins Blender Development Fund by zozbot234 on Thursday October 14, 2021 @06:03PM (#28870786)
AIUI, Vulkan Compute is just missing a few math-focused extensions compared to OpenCL. The OpenCL memory model is also more full-featured (i.e. it allows for general pointers) but that can be addressed via other Vulkan extensions.

The more annoying variation between the two is the need to refactor the code from using "kernels" to "compute shaders", but that's just a difference in the underlying programming model.

Re:Apple Joins Blender Development Fund by pjmlp on Friday October 15, 2021 @03:11AM (#28875192)
Yeah, and is also "just" misses having an ecosystem like SYSCL or CUDA for C++, with polyglot infrastructure targeting the GPU.

Yes, there is SPIR-V, yet few care to target it in practice, besides typical shading languages.

Re:Apple Joins Blender Development Fund by user-the-name on Thursday October 14, 2021 @02:32PM (#28868084)
Vulkan isn't a viable alternative for Apple. Apple wants to give developer an easy to use API to encourage them to use it as much as possible. Vulkan does not offer that.
Re:Apple Joins Blender Development Fund by cma on Sunday October 17, 2021 @12:47PM (#28897757)
Nah they want lock in, in the Epic Suit Epic used almost none of their libs but had to use Metal to function, and they were about to extract leverage by pulling a dev license for desktop. All POSIX and Vulkan/OpenGL and they could have stayed safe.
Re:Apple Joins Blender Development Fund by smoldesu on Thursday October 14, 2021 @08:49PM (#28872424)
Why didn't they just build a higher-level API on top of Vulkan then? Surely it's not a lack of developers, interest or resources, is it?
Re:Apple Joins Blender Development Fund by pjmlp on Friday October 15, 2021 @03:13AM (#28875202)
If they have to build their own snowflake on top of others API, specially since Khronos doesn't care about C++ as shading language, why bother?
Re:Apple Joins Blender Development Fund by valine on Thursday October 14, 2021 @12:21PM (#28866341)
Cycles is good first step if Apple wants to make blender fully functional on Mac. I wonder if they'll ever attempt to port Eevee to metal, that seems like the logical next step if Apple wants to permanently remove OpenGL from macOS.
Re:Apple Joins Blender Development Fund by JAlexoid on Thursday October 14, 2021 @12:50PM (#28866712)
"Apple wants to permanently remove OpenGL from macOS" - that would be a poor decision.... although, they really don't care for the pro market in any case.
Re:Apple Joins Blender Development Fund by striking on Thursday October 14, 2021 @12:58PM (#28866828)
They've already deprecated OpenGL. Drivers on macOS are locked at OpenGL 4.1, which is missing a whole lot of nice features. Not because the hardware doesn't support them, but because Apple doesn't want to keep maintaining OpenGL.

And why would they? OpenGL is really unpleasant from a hardware manufacturer's / integrator's / OS author's perspective, it makes app ports for mobile that much harder unless you're using GL ES, and Metal works and many apps have a Metal renderer now. If you find the mere idea of Metal distasteful because it's an API that can't be used on other platforms, you can use Vulkan and MoltenVK to get there.

You're confusing not caring for the pro market with their approach to vertical integration. They care for the pro market, but they're not willing to compromise on ripping out what they consider to be dead weight.

Re:Apple Joins Blender Development Fund by JAlexoid on Thursday October 14, 2021 @01:41PM (#28867444)
>You're confusing not caring for the pro market with their approach to vertical integration.

Apple knows exactly what they need to do to keep the pro market on MacOSX, they are not interested in doing that at all. And that simple thing is standardization, not exclusive API. So they don't even have to support OpenGL... just not make it even harder for CAD/CAM makers to port their software/features back to MacOSX.

Lack of a good pro device for years already got a lot of pros off Macs, so companies like Autodesk have less and less value in supporting Mac. And the gap in functionality is already massive! Their vertical integration, aka platform lock-in, is impossible for companies that have majority of their customers on a different platform.(and again - Apple knows that)

You know, I'll just switch to Windows to have my designs automatically validated for code compliance... and I'll just stay with Windows for software development as well.

(I'm a software engineer studying structural engineering)

Re:Apple Joins Blender Development Fund by samhw on Thursday October 14, 2021 @01:51PM (#28867577)
> already got a lot of pros off Macs

What is your quantitative evidence for saying this?

Re:Apple Joins Blender Development Fund by JAlexoid on Thursday October 14, 2021 @02:01PM (#28867712)
Opinion and personal experience.
Re:Apple Joins Blender Development Fund by phkahler on Thursday October 14, 2021 @02:51PM (#28868352)
>> And why would they? OpenGL is really unpleasant from a hardware manufacturer's / integrator's / OS author's perspective

That's exactly why they should keep it. Now all those CAD programs that use older OpenGL features have to figure out how to do things that are not supported by Metal. Vulkan initially forgot about this market as well and had to add some things back in.

There is Zink to handle compatibility, but that should have come from the organizations and companied deprecating OpenGL. It should probably be standard on new platforms so they can keep OpenGL at the API level.

Re:Apple Joins Blender Development Fund by pjmlp on Friday October 15, 2021 @03:15AM (#28875215)
Except some of those CAD programs already support Metal.

> To prepare for future Mac OS changes, AutoCAD 2021 for Mac uses a new graphics engine: Metal.

https://knowledge.autodesk.com/support/autocad-for-mac/learn...

Re:Apple Joins Blender Development Fund by hulitu on Thursday October 14, 2021 @01:24PM (#28867222)
> And why would they? OpenGL is really unpleasant from a hardware manufacturer's / integrator's / OS author's perspective

That's why it must be deprecated. Why do we need to reinvent the wheel over and over again ? I get it, X sucks and the answer to this is .... wayland. OpenGL sucks and the answer to this is ? DirectX ? Vulkan ? SDL ? Libcaca ? ( sorry i forgot ncurses). Just like an old builder: you have some bricks, use them.

Re:Apple Joins Blender Development Fund by rudedogg on Thursday October 14, 2021 @01:36PM (#28867382)
I've only dabbled in GPU programming, but I think the issue is more serious than this. It's not really pointless churn.

OpenGL was released 29 years ago, and the way GPUs work now vs then is massive. Apparently developers want low level access, and that is what Vulkan/Metal give them.

As a user I wish Vulkan had a path without so much setup. I'm not sure if that's possible, or maybe it would defeat the purpose. It seems like it would be nice for hobbyists/beginners like me who just want to get a triangle on the screen and play with shaders though.

Re:Apple Joins Blender Development Fund by JAlexoid on Thursday October 14, 2021 @01:52PM (#28867580)
And OpenGL changed massively. Going from fixed function to programmable hardware.

I understand that a lot of developers want low level access to hardware - that's great for a lot of applications. But that low level access means that software is tied to hardware... and software is not forward/cross compatible. Which is a VERY big deal for pro market.

Remember when Apple just "forgot" to release a pro grade desktop for years? Do you think those pros just stayed with their outdated hardware?(they didn't, they moved to Windows)

Do you think that there's a good reason for many pro software vendors to jump to Metal, when the majority of their customers are on Windows with Vulkan support?

I mentioned this on another subthread - Apple just needs to offer a cross platform API, to prove that they want pro software to be developed on Macs.

Re:Apple Joins Blender Development Fund by ynx on Thursday October 14, 2021 @02:26PM (#28868020)
> But that low level access means that software is tied to hardware... and software is not forward/cross compatible. Which is a VERY big deal for pro market.

As a game dev - hardware dependence has been a fact of life for a very long time. There are too many useful extensions not included in the base profiles, and enough video cards combinatorically combined with those - that the most tractable path is to actually care about the specific device's capabilities.

The best way forward is to be as detailed as possible than to come up with a new albatross to hang around one's neck for the next 30 years. A thin driver with a fatter app stack is probably more manageable going forward than a very fat driver with a continually aging app stack, so long as appropriate care is paid to forward compatibility.

Re:Apple Joins Blender Development Fund by JAlexoid on Thursday October 14, 2021 @03:07PM (#28868577)
Game devs are free to use whatever API you wish. You create entertainment, not design buildings that have to last decades or industrial systems.

You have the benefit of abandoning your product 3-5 years after it's published, without anyone caring.

Re:Apple Joins Blender Development Fund by pjmlp on Thursday October 14, 2021 @02:53PM (#28868369)
Carmack, miniGL and Carmacks position regarding OpenGL is what made it relevant in first place.

In 2011, Carmack would have gone with DirectX instead.

https://www.bit-tech.net/news/gaming/pc/carmack-directx-bett...

> The actual innovation in graphics has definitely been driven by Microsoft in the last ten years or so,' explained AMD's GPU worldwide developer relations manager, Richard Huddy. 'OpenGL has largely been tracking that, rather than coming up with new methods. The geometry shader, for example, which came in with Vista and DirectX 10, is wholly Microsoft's invention in the first place.' > > 'It is really just inertia that keeps us on OpenGL at this point,' Carmack told us. He also explained that the developer has no plans to move over to Direct3D, despite its advantages.

ARB, Long Peaks failure, not defining SDKs and leaving to ecosystem to create tools on their own, making into a rite of passage that each graphics programming student needs to create their own SDK from scratch, is anything but appealing.

If ARB/Khronos would standardize networking protocols, we would have only IP, and then each developer would create their own networking stack on top of raw IP.

Re:Apple Joins Blender Development Fund by viktorcode on Thursday October 14, 2021 @02:10PM (#28867813)
Apple had their answer in form of Metal. Vulkan, DX12 came out later.
Re:Apple Joins Blender Development Fund by JAlexoid on Thursday October 14, 2021 @02:16PM (#28867894)
If memory serves - they introduced Metal as a high efficiency low level API for games, not a generic rendering API.

Deprecating opengl was confusing for me.

Re:Apple Joins Blender Development Fund by user-the-name on Thursday October 14, 2021 @02:35PM (#28868133)
No, Metal is a general purpose 3D API, and has always been. Games are just one of the biggest things 3D APIs are used for, but Metal is for all uses.
Re:Apple Joins Blender Development Fund by nitrogen on Thursday October 14, 2021 @01:27PM (#28867243)
Apple could just use the vendor-provided OpenGL (AIUI most of the code is common between Windows and Linux for the major vendors), which e.g. for nvidia still happily supports everything from 1.0 to the present.
Re:Apple Joins Blender Development Fund by my123 on Thursday October 14, 2021 @01:46PM (#28867510)
> Apple could just use the vendor-provided OpenGL

They are their own GPU vendor nowadays.

Re:Apple Joins Blender Development Fund by mrpippy on Thursday October 14, 2021 @02:05PM (#28867753)
On Apple GPUs (including M1 Macs), an OpenGL->Metal layer is used.
Re:Apple Joins Blender Development Fund by criddell on Thursday October 14, 2021 @01:45PM (#28867499)
Are there Metal compatible renderers on non-Apple platforms?
Re:Apple Joins Blender Development Fund by pjmlp on Thursday October 14, 2021 @02:46PM (#28868278)
The pro market that matters has already added Metal support long time ago.
Re:Apple Joins Blender Development Fund by kitsunesoba on Thursday October 14, 2021 @01:08PM (#28866986)
Blender’s UI would also need to be ported to Metal, as that’s currently OpenGL if I’m not mistaken.
Re:Apple Joins Blender Development Fund by hallarempt on Thursday October 14, 2021 @01:31PM (#28867307)
Everything Blender shows on screen is rendered using OpenGL.
Re:Apple Joins Blender Development Fund by outworlder on Thursday October 14, 2021 @02:22PM (#28867975)
> that seems like the logical next step if Apple wants to permanently remove OpenGL from macOS

They should just allow third-party OpenGL implementations. OpenGL on OSX is stuck in the past.

It would be great to see Metal die a fiery death too, and Vulkan being adopted. The current situation is just DirectX once again.

Re:Apple Joins Blender Development Fund by user-the-name on Thursday October 14, 2021 @02:33PM (#28868105)
"Allow"? They aren't doing anything to disallow them?

You can use ANGLE if you want, for instance?

I wouldn't recommend using OpenGL for any new software, though, it is hopelessly clunky and outdated for modern applications.

Re:Apple Joins Blender Development Fund by heartbreak on Thursday October 14, 2021 @03:08PM (#28868590)
This is fantastic news. On Big Sur currently, it’s very difficult to get GPU rendering working with Blender.