News for hackers. Stuff that matters.
Re:Fuchsia is not Linux by 0x0 on Wednesday April 11, 2018 @04:07PM (#16814992)
I find it interesting to note that the core fuchsia OS comes with "magma", "escher" and "scenic", which seems to be core OS services for composing one 3D scene across multiple processes ("shadows can be cast on another process without it knowing about it")

Is that a hint that Fuchsia is a VR-first operating system?

Re:Fuchsia is not Linux by whowouldathunk on Wednesday April 11, 2018 @05:00PM (#16815576)
Not really, that's how Windows works too since Vista.

https://msdn.microsoft.com/en-us/library/windows/desktop/aa9...

And it's what enables effects like this in Windows 10:

https://docs.microsoft.com/en-us/windows/uwp/design/style/re...

Disclaimer: I work for Microsoft

Re:Fuchsia is not Linux by teraflop on Wednesday April 11, 2018 @07:36PM (#16816790)
I don't think what Windows provides is really comparable. By my understanding (and the documentation you linked seems to back this up) WDM is responsible for taking 2D framebuffers from applications, and compositing them into a (possibly 3D) scene. Fuchsia's Scenic operates uses a 3D scene graph as its input.
Re:Fuchsia is not Linux by gman83 on Wednesday April 11, 2018 @04:47PM (#16815435)
This article has some details about that:

https://9to5google.com/2018/04/06/fuchsia-friday-graphics-ga...

Scenic will have support for what it’s calling “stereo cameras.” What this means is there can be two views into the same scene. Each camera can also be independently moved or turned for a different view. The most obvious reason for this capability is virtual reality.

Re:Fuchsia is not Linux by on_and_off on Wednesday April 11, 2018 @04:12PM (#16815062)
I would say it is more of an hint that the material design team was heavily consulted when Fuchsia was conceived.
Re:Fuchsia is not Linux by wlesieutre on Wednesday April 11, 2018 @04:21PM (#16815149)
Drop shadows in 2D window managers are pretty common, is it not referring to that?
Re:Fuchsia is not Linux by 0x0 on Wednesday April 11, 2018 @04:29PM (#16815250)
From the sound of it, I assumed it was building up a 3d world scene graph composed by objects supplied by independent processes. Maybe I'm reading too much into it.
Re:Fuchsia is not Linux by IshKebab on Wednesday April 11, 2018 @05:30PM (#16815880)
Yeah I think the "physically based 3D renderer" is a bit misleading because it makes you think "ah, like Blender or Unreal Engine 4", but actually I think they just mean they are doing window translucency and drop shadows in a physically correct way (e.g. there is an actual light source) rather than faking it. It is still used to render mostly-2D windows.

(This is my assumption anyway - I haven't tried running it)

Re:Fuchsia is not Linux by on_and_off on Wednesday April 11, 2018 @08:27PM (#16817045)
I think you assumption is spot on.

Android already does physically correct soft shadows in real time.

The initial design of material would have allowed way more space manipulations, like making a view rotate on any axis.

So the shadow implementation allows to remain correct even in this kind of case.

It is kinda sad that the final design forbids this, a simple raster shadow would have been enough to just signify the elevation.

Re:Fuchsia is not Linux by rossy on Wednesday April 11, 2018 @09:49PM (#16817378)
I always figured this was to support Material Design, where the size of a drop shadow depends on the difference in elevation between the surface casting the shadow and the surface underneath.[1] A Material Design compositor would have to know the position of each process' surfaces in 3D space in order to render shadows correctly.

[1]: https://material.io/guidelines/material-design/elevation-sha...

Re:Fuchsia is not Linux by michaelmrose on Wednesday April 11, 2018 @04:37PM (#16815324)
I want to downvote you for using VR first OS, which is technobabble, however I want to upvote you for sharing useful info about the topic. So I did neither.

Augmented reality pretty much requires us to shrink displays down to contact lens sizes because we already figured out almost nobody will pay to strap a smartphone to their face.

Then it requires us to create and popularize an entire new method of interacting with your computer.

Then this needs to be cheap enough to get in everyone's hands.

It would be surprising if this only took 20 years.

This is about drawing dumb drop shadows.

We could argue about the difference between OS and presentation layer but that battle may already be lost.