News for hackers. Stuff that matters.

Dinaroozie

Re:Sprite Lamp on Saturday November 09, 2013 @01:32AM (#6700897)
That is pretty much correct, except we are creating normal maps, depth maps, and ambient occlusion maps (and anisotropy maps but I haven't talked much about that yet). The diffuse map is something the artist will have to paint.

And, thanks!

Re:Sprite Lamp on Friday November 08, 2013 @11:51PM (#6700720)
I'm new here so I don't really know the etiquette. Would I be out of line posting a link to the Kickstarter campaign here when it happens? It's in four days. I don't yet have a feel for how Hacker News feels about self-promotion.
Re:Sprite Lamp on Friday November 08, 2013 @07:44PM (#6700113)
Thanks! And, that javascript canvas demo is relevant to my interest - thanks for the link!

You're right in your suspicion that depth map generation in Sprite Lamp is not a silver bullet for stuff like that. Images with big discontinuities in depth (especially open scenes, like the one you linked) will likely get you some pretty dubious results in Sprite Lamp. On the other hand, if you look closely at the self-shadowing on the brick gif from the website, I think you'll agree that the results are pretty accurate (note that the little notches and scrapes in the surface of some bricks get picked up accurately too) - while you could paint that map by hand, I suspect that getting the results that nice would take some time, and Sprite Lamp does it in a second or two (pre-optimisation). Stuff like character artwork (like the zombie or the plague doctor) fall somewhere in between - you get results that are good enough for self-shadowing, and with some tweaking you can generate a nice stereogram, but it's not necessarily 'physically accurate' (which in this case is another way of saying "I can't guarantee the results are what the artist pictured").

I'm reluctant to promise features that I haven't tried yet, but I'm planning on some experimentation with a combination of painting depth values and using Sprite Lamp - this will take the form of some tools for messing with the depth map from within Sprite Lamp after it's been generated, with an eye to intelligently detecting potential edges and letting you move whole bits of the scene around at once (and then an integrated means of actually looking at the depth map you've created - wigglegifs might be a good option there, actually).

Re:Sprite Lamp on Friday November 08, 2013 @07:17PM (#6700001)
My girlfriend (who is responsible for most of the art in the examples) and I pretty much reacted the same way when we first got the algorithm working. It was one of those things that went from 'not working at all' to 'suddenly working perfectly when you fix one broken thing'. Good times.

Oh and thanks for the offer of thrown money!

Re:Sprite Lamp on Friday November 08, 2013 @07:01PM (#6699932)
If only! I'm Australian, and Kickstarter only opens to our projects on November 13th (which, assuming it gets approved in a timely fashion, is when Sprite Lamp is going live).
Re:Sprite Lamp on Friday November 08, 2013 @06:53PM (#6699908)
Holy moly. I'm the guy that's working on Sprite Lamp, and I just woke up to this thread (and a giant spike in my web traffic). Thanks everyone for the enthusiasm and support! I guess I don't have anything general to say - there are probably too many words on the website as it is - but I'll do my best to answer people's questions here.