News for hackers. Stuff that matters.
Re:FourShadows.js – Time-aware algorithm driven shadows for ... by SwellJoe on Sunday November 23, 2014 @02:06AM (#8648056)
Clever, but light comes from the sky (it always comes from the sky in nature...light from below weirds us out). It's probably poor design to have shadows rotating throughout the day. Might be more friendly to have the shadows play like real shadows (never going above the object).

Source: http://static.tvtropes.org/pmwiki/pub/images/TV_Tropes_Flash...

Re:FourShadows.js – Time-aware algorithm driven shadows for ... by meesterdude on Sunday November 23, 2014 @11:36AM (#8649144)
This. Light from below is unnatural.

Also, I think this generally would confuse users. I visit at 10AM it looks one way, I visit at 3PM it looks another, and I have no idea why as a user. Even if you paired it with other elements, you've still got the shadow all over the place.

I remember about 10 years ago watching a guy in school build a site that had a header that would have full sunrise-sunset based on your time in cute artwork. If you gave your location, it would display current weather too.

So OP, I think this has limited use; but its good to explore and experiment and see what you end up with. Perhaps with more thought/iterations you'll end up with something really amazing.

Re:FourShadows.js – Time-aware algorithm driven shadows for ... by dwild on Sunday November 23, 2014 @07:35PM (#8650524)
It would confuse users? Having a shadows on your logo that can take 4 different positions would confuse the users?
Re:FourShadows.js – Time-aware algorithm driven shadows for ... by hemmer on Sunday November 23, 2014 @01:19PM (#8649407)
I pictured looking top-down at the object, for which the shadow seemed quite natural?
Re:FourShadows.js – Time-aware algorithm driven shadows for ... by SwellJoe on Sunday November 23, 2014 @05:23PM (#8650165)
Do you work with your screen laying flat, such that you're looking down on it?

I'm not being argumentative; there is a history of the "desktop" metaphor, where it did seem sort of like the user was looking down on it from above. That particular approach to the metaphor seems to have faded deep into history. Not saying it's wrong, just that we seem to have moved somewhere else with UI, and I feel like a corkboard with pieces of paper tacked to it is a more fitting analogy for the way many of our current desktops work. The way shadows are used in most current desktops match that metaphor more closely than objects on a horizontal "desk" surface. And, given that we never use screens sitting flat on a horizontal surface (even the Microsoft Surface evolved to go vertical). The ergonomics of staring straight down is pretty awful. Our heads get really heavy at that angle, causing back pain.

Edit: Some "desktop" metaphor UIs where a "top-down" light source might logically lead to OPs shadow design:

http://blog.codinghorror.com/content/images/uploads/2006/05/...

http://kruzeniski.com/wp-content/uploads/2011/04/how_print_i...

Even the modern take (Bumptop for Mac) seems needlessly cluttered and cumbersome to manage. Then again, I prefer tiled interfaces, so I lean toward the extreme on the other end of the spectrum.

Re:FourShadows.js – Time-aware algorithm driven shadows for ... by andrewliebchen on Sunday November 23, 2014 @03:18AM (#8648158)
Neat idea, but shadows cast on the ground don't move around an object a full 360deg over the course of the day.

If the metaphor is that we're looking at the object from above, then the angle of the shadow would depend on the time of day, the day of the year, and the object's latitude. Now THAT would be a neat plugin.

Others have mentioned that Google does it like this in Google Maps...which is even stranger because there is a very clear real world analog in that case. I would have expected that they would take the care to render the shadows as they would actually appear for that location at that time.

Re:FourShadows.js – Time-aware algorithm driven shadows for ... by monk_e_boy on Sunday November 23, 2014 @04:40AM (#8648282)
As soon as the shadow flowed up the page, I was like, WTF the sun is underground now? This, on a tech news site is.... dumb
Re:FourShadows.js – Time-aware algorithm driven shadows for ... by balazsdavid987 on Sunday November 23, 2014 @02:50AM (#8648110)
I'm not sure about the usefulness of this, but it's creative, beautiful and unconventional for sure.
Re:FourShadows.js – Time-aware algorithm driven shadows for ... by peter_l_downs on Sunday November 23, 2014 @02:03AM (#8648051)
This feels unnecessary, although it's some cool code for sure. I think it ends up looking unnatural when the generated shadow doesn't match the shadow in the icon itself; in the demo on the github page, this would be at 1 o'clock and 5 o'clock.
Re:FourShadows.js – Time-aware algorithm driven shadows for ... by richbradshaw on Sunday November 23, 2014 @02:38AM (#8648095)
Google maps does this for shadows on buildings - check out something tall to see. It makes more sense there as the shadows actually fall in that location. As an interface it's a cool idea but we normally consider light to fall from top to bottom.
Re:FourShadows.js – Time-aware algorithm driven shadows for ... by social_quotient on Sunday November 23, 2014 @12:30PM (#8649265)
Cool demo and js file size. I did something similar a while back and thought I would share http://codepen.io/social_quotient/pen/msrIx
Re:FourShadows.js – Time-aware algorithm driven shadows for ... by emsy on Sunday November 23, 2014 @03:57AM (#8648210)
This would be cool on a mobile, since you usually hold it with the display facing towards the sky. But then, the length and angle of the shadow have to depend on the orientation of the phone.
Re:FourShadows.js – Time-aware algorithm driven shadows for ... by iandanforth on Sunday November 23, 2014 @01:14PM (#8649388)
Nerd Snipe! - Pick a website that uses consistent shadows. Assume that the website is a 3 dimensional object that could cast those shadows. Also assume that the object is positioned sitting on the ground, with the length of the page normal to the surface of the earth. Provide a location, rotation, time of day and day of year in which the shadows are accurate.
Re:FourShadows.js – Time-aware algorithm driven shadows for ... by dsl on Sunday November 23, 2014 @02:44AM (#8648103)
Does it remove the shadows at night?
Re:FourShadows.js – Time-aware algorithm driven shadows for ... by LukeB_UK on Sunday November 23, 2014 @11:58AM (#8649192)
The effect gets totally ruined on the demo page where the HTML5 and CSS3 shields are used which have their own light source. Screenshot: http://i.imgur.com/prMIIOQ.png
Re:FourShadows.js – Time-aware algorithm driven shadows for ... by Gigacore on Sunday November 23, 2014 @12:41PM (#8649299)
You're right. I shouldn't have used logos with their own shadows. Replaced with flat ones. Sorted out. Thanks!
Re:FourShadows.js – Time-aware algorithm driven shadows for ... by adamwong246 on Sunday November 23, 2014 @11:32AM (#8649129)
Wouldn't using svg's be tremendously more powerful, rather than pngs and image sprites? Of course, there are compatibility issues with older browsers but placing 1 of 4 pngs is just barely "time aware"
Re:FourShadows.js – Time-aware algorithm driven shadows for ... by califield on Sunday November 23, 2014 @04:22PM (#8649976)
To be honest, this library doesn't really make sense.

Perhaps a related but more useful idea would be to adjust the colors of your site to match the user's local time like f.lux...

Re:FourShadows.js – Time-aware algorithm driven shadows for ... by fit2rule on Sunday November 23, 2014 @05:40AM (#8648381)
Think of the Icon as a planet, and your attention and focus as the sun .. only then will you find true nirvana. Daily.
Re:FourShadows.js – Time-aware algorithm driven shadows for ... by asadlionpk on Sunday November 23, 2014 @02:06AM (#8648057)
It would have been a great effect if it had 12 shadows. Although unnecessary but cool.
Re:FourShadows.js – Time-aware algorithm driven shadows for ... by rguldener on Sunday November 23, 2014 @02:02AM (#8648048)
When I click the demo link I get a 404
Re:FourShadows.js – Time-aware algorithm driven shadows for ... by Gigacore on Sunday November 23, 2014 @02:04AM (#8648053)
Fixed. Thanks for pointing that out.
Re:FourShadows.js – Time-aware algorithm driven shadows for ... by vstp on Sunday November 23, 2014 @05:54AM (#8648406)
Waste