3 ms·
My initial reaction to this was "just use WebGL", but they've made a pretty compelling case as to why that's not ideal: > Consider a browser or web-view being
by Ajedi32 5y ago
My initial reaction to this was "just use WebGL", but they've made a pretty compelling case as to why that's not ideal:
> Consider a browser or web-view being displayed in Augmented Reality. The developer wants to show a 3D model in the page. In order for the model to look accurate, it must be rendered from the viewpoint of the user - otherwise it is a flat rendering of a three-dimensional image with incorrect perspective.
> A solution to this would be to allow the Web page, in particular the WebGL showing the 3D model, to render from the perspective of the user. This would involve granting too much private information to the page, possibly including the camera feed, some scene understanding, and very accurate position data on the user. It should not be a requirement that every Web page has to request permission to show a 3D model in this manner. The user should not have to provide access to this sensitive information to have the experience.
> Furthermore, there is more information needed to produce a realistic rendering, such as the ability to cast and receive shadows and reflections from other content in the scene, that might not be on the same Web page.
From that perspective, having the rendering handled by the browser seems like a smart idea.
- corentin88 5y ago> Consider a browser or web-view being displayed in Augmented Reality Feels like Apple is working on something that needs this.
- wlesieutre 5y agoRelated history, <canvas> came about from Apple's Dashboard in 10.4
- corentin88 5y agoOh interesting. Do you have more details about that? Edit: it's on the first paragraphs of the MDN page about <canvas> [1]: > First introduced in WebKit by Apple for the OS X Dashboard, <canvas> has since been implemented in browsers. Today, all major browsers support it. [1] https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/...
- jayd16 5y agoI don't understand why passing a new view matrix to webGL is such a security risk or why that needs to be shared with he site owner. I also think a window with a dynamic view matrix would make more sense in certain cases. Some techniques work when rendered to a surface that would not work in VR, ie screen space effects.
- skybrian 5y agoIt’s not exactly eye tracking, but you know some advertisers are going to use it to make ads that turn to point directly at you. But I’m not sure the proposed tag is a good idea either. I have not used VR but I think it might be a good thing if web browsers in VR stay flat and can’t take over the space in front or behind them?
- Ajedi32 5y ago> it might be a good thing if web browsers in VR stay flat and can’t take over the space in front or behind them IMO the preferred implementation would be for the <model> tag to be a window into a 3d space "behind" the browser that's only visible if you look through that window. Maybe a small area in front of the window would also be acceptable. You wouldn't want it taking over space outside its designated area though without either going "fullscreen" or getting some other form of permission.