News for hackers. Stuff that matters.
Re:The Box: Amazing demo using Sprite3D.js and CSS 3D Transf... by angersock on Tuesday March 20, 2012 @01:24PM (#3730416)
I hate to be that guy, but what exactly is the purpose of adding 3D transforms to web pages? I mean, beyond nifty demos like this?

Honestly, isn't this just going to add a bunch of dumb cruft to what browser vendors will have to support and probably just for the sake of being 201x's <blink> tag?

EDIT: To clarify--wouldn't it be more useful to focus on faster js engines and better WebGL support?

Re:The Box: Amazing demo using Sprite3D.js and CSS 3D Transf... by mcdaid on Tuesday March 20, 2012 @03:01PM (#3730919)
If the transformations/transitions are handled by the graphics card the faster js becomes irrelevant. For example js performance on IPad is not amazing, but it will run many transitions smoothly.

As far as WebGL, it clearly is important for any serious 3d. But adding a slight 3d effect to a UI element should not require a detailed knowledge of shaders and 3d geometry.

Re:The Box: Amazing demo using Sprite3D.js and CSS 3D Transf... by tzm on Tuesday March 20, 2012 @01:57PM (#3730579)
Cross platform learning tools comes to mind...

- 3D visualization for describing medical conditions to patients.

- representation of drug molecules to prospective doctors and molecular scientists.

- Visualizing spatial trends in big data.

Re:The Box: Amazing demo using Sprite3D.js and CSS 3D Transf... by moontear on Tuesday March 20, 2012 @08:04AM (#3728820)
Great demo. I would have used Flash/Shockwave for that in a blink of an eye a couple years back.
Re:The Box: Amazing demo using Sprite3D.js and CSS 3D Transf... by bhousel on Tuesday March 20, 2012 @08:31AM (#3728878)
I would have used VRML. And get off my lawn!
Re:The Box: Amazing demo using Sprite3D.js and CSS 3D Transf... by sthartle on Tuesday March 20, 2012 @08:42AM (#3728905)
And it wouldn't have flickered :-)
Re:The Box: Amazing demo using Sprite3D.js and CSS 3D Transf... by talmand on Tuesday March 20, 2012 @10:04AM (#3729253)
Before hardware acceleration it would have.
Re:The Box: Amazing demo using Sprite3D.js and CSS 3D Transf... by polshaw on Tuesday March 20, 2012 @07:57AM (#3728808)
Requirements?

All i am getting is the bottom of a box that i can move around, and high CPU use.

Re:The Box: Amazing demo using Sprite3D.js and CSS 3D Transf... by boblemarin on Tuesday March 20, 2012 @10:06AM (#3729265)
A browser who supports CSS 3D transforms : Firefox 10+, Chrome, Safari (better), Android 4 browser, iOS' browser (even better).
Re:The Box: Amazing demo using Sprite3D.js and CSS 3D Transf... by dgabriel on Tuesday March 20, 2012 @02:56PM (#3730890)
Interesting. The demo worked great in FF, but was just a flat box in Chrome.
Re:The Box: Amazing demo using Sprite3D.js and CSS 3D Transf... by kami8845 on Tuesday March 20, 2012 @03:28PM (#3731059)
same for me
Re:The Box: Amazing demo using Sprite3D.js and CSS 3D Transf... by marcofucci on Tuesday March 20, 2012 @09:51AM (#3729189)
It works perfectly on Safari
Re:The Box: Amazing demo using Sprite3D.js and CSS 3D Transf... by xabi on Tuesday March 20, 2012 @08:03AM (#3728819)
Re:The Box: Amazing demo using Sprite3D.js and CSS 3D Transf... by prezjordan on Tuesday March 20, 2012 @09:52AM (#3729197)
Is lockerz ever not down? And what exactly is their business nowadays, I remember they were scamming people out of "ptz" a couple years ago when it came out.
Re:The Box: Amazing demo using Sprite3D.js and CSS 3D Transf... by dutchbrit on Tuesday March 20, 2012 @11:27AM (#3729709)
Strange - buggy here in Chrome (Mac), my browser goes transparent :)
Re:The Box: Amazing demo using Sprite3D.js and CSS 3D Transf... by huggyface on Tuesday March 20, 2012 @07:28AM (#3728722)
Very slick, but I'm seeing rampant clipping issues in both Chrome 19 and Firefox 11 with the latest nvidia 560 GTX drivers. Anyone else experiencing that?
Re:The Box: Amazing demo using Sprite3D.js and CSS 3D Transf... by mcpherrinm on Tuesday March 20, 2012 @10:47AM (#3729488)
I'm seeing it in Chrome.

Works great in the latest Firefox Nightly on the same machine.

Re:The Box: Amazing demo using Sprite3D.js and CSS 3D Transf... by tommoor on Tuesday March 20, 2012 @10:34AM (#3729410)
Clipping issues galore, but still a great demo of where things are going :-)
Re:The Box: Amazing demo using Sprite3D.js and CSS 3D Transf... by nelmaven on Tuesday March 20, 2012 @07:31AM (#3728731)
The cows also flicker whenever you hover them.
Re:The Box: Amazing demo using Sprite3D.js and CSS 3D Transf... by 0x0 on Tuesday March 20, 2012 @07:37AM (#3728763)
Yeah, looks like some kind of z-fighting issue?
Re:The Box: Amazing demo using Sprite3D.js and CSS 3D Transf... by recursive on Tuesday March 20, 2012 @12:21PM (#3730059)
I was under the impression that z-fighting was a result of floating point rounding errors when two depth values are very close together. The clipping errors I'm seeing don't seem to be correlated with surfaces that are very close in depth.
Re:The Box: Amazing demo using Sprite3D.js and CSS 3D Transf... by talmand on Tuesday March 20, 2012 @10:03AM (#3729249)
If it runs in software without some sort of z-buffer then you'll get z-fighting. It's the same problem that's been around forever when running 3D in software. Hardware acceleration would help with this but I'm not up-to-speed on the current state of browser support for hardware rendering.

If there's interest in playing with such technologies then I suggest reading up on z-fighting because if you understand why it happens then you can attempt to work around it. There are lots of old tips and tricks that still apply today.

Re:The Box: Amazing demo using Sprite3D.js and CSS 3D Transf... by hkolek on Tuesday March 20, 2012 @10:51AM (#3729516)
It is my understanding that z-fighting occurs when the depth buffer has not enough resolution (due to floating point math). How is that related to whether it's hardware accelerated or not? You can easily get z-fighting with hardware acceleration.
Re:The Box: Amazing demo using Sprite3D.js and CSS 3D Transf... by talmand on Tuesday March 20, 2012 @03:47PM (#3731153)
Well, granted this is my experience, but if done properly you would rarely see this sort z-fighting in hardware acceleration. Usually when I saw that it was because of two surfaces trying to exist on the same plane regardless of orientation. Which I believe is what you are describing.

Thinking it over I may be incorrect in referring to this in the way I have. The issue I'm seeing is the back-to-front rendering (I'm assuming this is what the example is doing) of a smaller object being displayed on top of larger object and the renderer getting confused on the draw order.

Edit: ghusbands points out my confusion below

Granted, I'm not a 3D programmer but I built enough levels for 3D engines back in the day to have to be aware of these issues to design around them. This is all from memory so I could be totally off but this what it seems to me.

Re:The Box: Amazing demo using Sprite3D.js and CSS 3D Transf... by ghusbands on Tuesday March 20, 2012 @01:53PM (#3730555)
There seems to be confusion in this thread, caused by this message. Z-fighting is specifically caused by very near, parallel/co-planar polygons having similar z values, which is not the observed issue with the page. The issue with the page is more akin to rendering using the painter's algorithm but sporadically sorting incorrectly.
Re:The Box: Amazing demo using Sprite3D.js and CSS 3D Transf... by jsavimbi on Tuesday March 20, 2012 @09:09AM (#3728990)
Does it work on iPad?
Re:The Box: Amazing demo using Sprite3D.js and CSS 3D Transf... by JofArnold on Tuesday March 20, 2012 @09:16AM (#3729015)
Beautifully, yes.