News for hackers. Stuff that matters.
Re:Real Shadow: jQuery Plugin that casts photorealistic shadows by aw3c2 on Thursday May 17, 2012 @06:48AM (#3986345)
Maybe it is the amount of shadow-casting items on that page but if your landing page maxes out my cpu and lags badly, I say goodbye faster than 20 frames render. (I use Opera.)

edit: They do look good though!

Re:Real Shadow: jQuery Plugin that casts photorealistic shadows by mxfh on Thursday May 17, 2012 @08:20AM (#3986613)
This one even had lights. Illuminated.js – 2D lights and shadows rendering engine for HTML5 applications http://news.ycombinator.com/item?id=3958251
Re:Real Shadow: jQuery Plugin that casts photorealistic shadows by Cushman on Thursday May 17, 2012 @11:41AM (#3987456)
The effect is cool, so I hate to ask this, but-- in what sense is this "photorealistic"? They look like normal soft shadows to me.
Re:Real Shadow: jQuery Plugin that casts photorealistic shadows by vph on Thursday May 17, 2012 @12:28PM (#3987722)
in a marketing sense.
Re:Real Shadow: jQuery Plugin that casts photorealistic shadows by Cushman on Thursday May 17, 2012 @01:09PM (#3987962)
The normal computer graphics meaning, then.
Re:Real Shadow: jQuery Plugin that casts photorealistic shadows by hamoid on Thursday May 17, 2012 @07:00AM (#3986375)
Where is the cursor on my phone? :)
Re:Real Shadow: jQuery Plugin that casts photorealistic shadows by evride on Thursday May 17, 2012 @11:49AM (#3987495)
"Perfect for eye-catching demos and landing pages."

Can we stop creating stuff in JS/CSS that we would have ridiculed other people for doing in flash? I can't possibly think of any situation where this would be useful for a landing page.

Re:Real Shadow: jQuery Plugin that casts photorealistic shadows by Cushman on Thursday May 17, 2012 @11:58AM (#3987544)
Flash wasn't ridiculed because of how it looked. The principle of integrating interactive content into web pages is a fine one, so long as it's done in a way that's semantically consistent, machine readable, searchable, accessible, reliable, not too obtrusive, forgiving of network latency and performance, cross-platform, cross-device, and tolerant of errors -- the web, in other words. Flash was... not.

That doesn't mean we stop trying to make web pages look prettier.

Re:Real Shadow: jQuery Plugin that casts photorealistic shadows by alttab on Thursday May 17, 2012 @12:27PM (#3987714)
This pegged my duo core at 100% for both cores. Realtime shadows are great and all, but if I needed to achieve them I'd imagine I'd use WebGL if I didn't care about CPU or battery.

Using jQuery for this type of problem seems a little out of place to me. That said, this is certainly "neat." THAT said, I don't believe this has real world practical value. Its too computationally expensive considering what it adds.

Re:Real Shadow: jQuery Plugin that casts photorealistic shadows by jmah on Thursday May 17, 2012 @03:24PM (#3988613)
I'd use WebGL if I did care about CPU and battery.
Re:Real Shadow: jQuery Plugin that casts photorealistic shadows by jgv on Thursday May 17, 2012 @12:30PM (#3987733)
for a real world application – at okfocus we used our version of this effect on http://tugofstore.com and it added to the realtime "tug" effect by making it more of a visceral experience for users. perhaps ours is less computationally expensive idk.
Re:Real Shadow: jQuery Plugin that casts photorealistic shadows by inafield on Thursday May 17, 2012 @01:41PM (#3988124)
Impractical now, but cool as a tech-demo. i7-2640M cpu usage is at 24% on Chrome Canary 21 with this.
Re:Real Shadow: jQuery Plugin that casts photorealistic shadows by ddon on Thursday May 17, 2012 @08:25AM (#3986624)
On iPad I see shadows, but can't control them...
Re:Real Shadow: jQuery Plugin that casts photorealistic shadows by ars on Thursday May 17, 2012 @06:48AM (#3986346)
I moved the cursor across the page and nothing of interest happened. This is Firefox 12. It did work on chrome though.
Re:Real Shadow: jQuery Plugin that casts photorealistic shadows by KwanEsq on Thursday May 17, 2012 @07:50AM (#3986519)
Do you have NoScript or similar? Even with scripts enabled it doesn't work for me, because of the mimetype: "[NoScript] Blocking nosniff Javascript served from https://raw.github.com/Indamix/real-shadow/master/realshadow... with wrong type info text/plain, inline and included by http://indamix.github.com/real-shadow/

Edit: the fix is to add https://raw.github.com/ to the pref noscript.inclusionTypeChecking.exceptions in about:config

Re:Real Shadow: jQuery Plugin that casts photorealistic shadows by ars on Thursday May 17, 2012 @10:29AM (#3987120)
Yup. Although I did switch it to "allow scripts globally", but I guess that's not enough.

And, sorry, but I'm not going to add that to about config.

Re:Real Shadow: jQuery Plugin that casts photorealistic shadows by asto on Thursday May 17, 2012 @08:36AM (#3986652)
Works on Firefox 12 (Linux) for me!
Re:Real Shadow: jQuery Plugin that casts photorealistic shadows by kevingadd on Thursday May 17, 2012 @07:41AM (#3986487)
Doesn't work in Firefox 14 either.
Re:Real Shadow: jQuery Plugin that casts photorealistic shadows by KwanEsq on Thursday May 17, 2012 @07:58AM (#3986546)
See my reply above.
Re:Real Shadow: jQuery Plugin that casts photorealistic shadows by jgv on Thursday May 17, 2012 @12:21PM (#3987689)
My company released this effect a couple of months ago: http://okfoc.us/okshadow/ and https://github.com/okfocus/okshadow
Re:Real Shadow: jQuery Plugin that casts photorealistic shadows by illdave on Thursday May 17, 2012 @07:28AM (#3986448)
Just to confirm, it's working well on Chrome 20 on Mac for me (no lag, not maxing out the CPU, very smooth). It's interesting from a technical perspective, although design-wise I can't really see any practical reason to use it. Fun though.
Re:Real Shadow: jQuery Plugin that casts photorealistic shadows by PhrosTT on Thursday May 17, 2012 @11:02AM (#3987268)
2000 - drop shadows.

2005 - transparent drop shadows.

2012 - realtime drop shadows!

Re:Real Shadow: jQuery Plugin that casts photorealistic shadows by basseq on Thursday May 17, 2012 @09:45AM (#3986913)
It may just be for demo purposes, but using the mouse cursor as a light source seems like the 2012 equivalent of animated GIF backgrounds. Might be cool it could you specify a point light source at a given coordinate and let the page render from there.
Re:Real Shadow: jQuery Plugin that casts photorealistic shadows by iambot on Thursday May 17, 2012 @10:24AM (#3987095)
You can. if you read the github readme, is shows clearly how to both disable the mouseFollow and set a global light source.
Re:Real Shadow: jQuery Plugin that casts photorealistic shadows by asto on Thursday May 17, 2012 @08:37AM (#3986659)
Works quite nicely on Chrome. Too much lag on Firefox and Opera!
Re:Real Shadow: jQuery Plugin that casts photorealistic shadows by lucian1900 on Thursday May 17, 2012 @07:00AM (#3986378)
Works on FF 12, but it's extremely slow.
Re:Real Shadow: jQuery Plugin that casts photorealistic shadows by petepete on Thursday May 17, 2012 @07:20AM (#3986429)
Beautifully smooth for me, with Chrome 20 on Linux.
Re:Real Shadow: jQuery Plugin that casts photorealistic shadows by jheriko on Thursday May 17, 2012 @08:02AM (#3986558)
FYI doesn't work with IE 10
Re:Real Shadow: jQuery Plugin that casts photorealistic shadows by regnum on Thursday May 17, 2012 @07:29AM (#3986449)
Looks very nice in Chrome.
Re:Real Shadow: jQuery Plugin that casts photorealistic shadows by happypeter on Thursday May 17, 2012 @08:04AM (#3986563)
ubuntu1104+Chrome: perfect Mac+firefox13: a bit slow
Re:Real Shadow: jQuery Plugin that casts photorealistic shadows by savories on Thursday May 17, 2012 @01:27PM (#3988045)
Needs more lens flare. And some bevels. Then we're back in 1998.
Re:Real Shadow: jQuery Plugin that casts photorealistic shadows by riotgibbon on Thursday May 17, 2012 @10:18AM (#3987065)
well, I liked it, well done