These forums are currently read-only due to receiving more spam than actual discussion. Sorry.

It is currently Sat Dec 02, 2017 4:05 pm Advanced search

3D HTML (ie HTML with depth, Not Web3D)

Do you think the HTML spec should do something differently? You can discuss spec feedback here, but you should send it to the WHATWG mailing list or file a bug in the W3C bugzilla for it to be considered.

3D HTML (ie HTML with depth, Not Web3D)

Postby H3g3m0n » Fri Sep 17, 2010 9:16 pm

I was thinking with all the 3D screens/glasses, browser based hardware acceleration, 3D TVs, 3D NDS, mobile phones with 3D accelerators and so on it would be cool to have a depth="" property for most elements or as a CSS attribute.

It would allow you to have the background rendered behind text stereoscopically or scrolling the background based on head tracking (or both) and so on, without needing the whole WebGL stuff. Have Images jump out at you and so on.

In the case of the depth tag it would still be 'flat' just with added depth, and it could be safely ignored for systems without 3D (or old standards). Although I suppose a 3D rotation parameter could also be added which would allow for shuffle style interfaces in HTML without needing a whole 3D API/Canvas like WebGL.
H3g3m0n
<h6>
 
Posts: 5
Joined: Wed Mar 24, 2010 9:39 pm

Postby H3g3m0n » Fri Sep 17, 2010 9:49 pm

Buh, this forum needs the 'edit' button enabled, I always think of more stuff to add after posting, I tend to think of forum posts as miniwikies now days. Anyway:

Depth would also allow for browsers inside of 3D environments to have content popup in the 3D world, such as videos games or SecondLife kind of stuff rather than just rendering a flat 2D surface. That's something that would be much harder to do with the full Web3D (if at all possible). You might not be able to get something 3D spinning cubes (unless you did manage to tap the Web3D canvas into the full 3D environment, or added depth to the embedded SVG), but text and buttons that hover above the wall would be doable.

3D user interfaces (once again starting to popup in video games like Dead Space).

Actual implementation would need a little though, you would probably have to give each depth level a texture and if you have the layers changing in 3D at runtime they could split and merge but provided people aren't too crazy with the number of different levels it shouldn't be a problem.

What coordinate system to use might need some thinking too, there's no pixels for depth, if you use fixed units, say millimetres, different systems are capable of different levels of depth and would have much different impact even if they both have the same capabilites, so a mobile phone will be different to a home cinema. An embedded 3d browser will be able to handle basically infinite depth within its virtual world, that also rules out percentage levels. Maybe an attempt to extrapolate based on the screen 2D parameters (ie 1.0 is the same depth back as the width of the screen).

You can see the Dead Space UI for an example of the kind of thing I'm thinking of, I believe it was done in an embedded flash, it also has the rotation too making it a bit more than a flat UI: http://www.youtube.com/watch?v=xLF0DjFF ... re=related

Understand I'm talking about adding depth to normal 2D content, not trying to project full 3D models and such.
H3g3m0n
<h6>
 
Posts: 5
Joined: Wed Mar 24, 2010 9:39 pm

Postby Alan » Tue Nov 02, 2010 3:56 pm

Interesting idea, but this doesn't seem like it would affect HTML until 3d media become common enough that new semantics arise.

This sounds more like CSS's z-index property and some user agent magic -- but changing the behaviour of z-index like this would result in unexpected behaviour in millions of websites.

Maybe you should approach the CSS team. I guess a non-conflicting change could be made by adding a third dimension to positions and sizes (width/height/depth, left/top/front, right/bottom/back). The perspective would have to be generated by the browser, though. I guess a viewport or camera could be defined as a pseudo-element.

All in all, I don't think this is useful enough just yet to warrant specifying it. Maybe wait until CSS3 is finalised or 3D screens have become more common.
Alan
<h5>
 
Posts: 18
Joined: Sun Oct 31, 2010 2:16 pm
Location: Cologne, Germany


Return to Feedback on the Specs

Who is online

Users browsing this forum: No registered users and 1 guest