News for hackers. Stuff that matters.
Re:Radar – A new set of integrated tools to help prevent fraud by bflesch on Wednesday October 19, 2016 @02:45PM (#12746516)
I like the rotating 3D model in the landing page very much. Are they using some sort of pre-baked library which lets you create such an visualization with 30 lines of Javascript, or is it 100% custom? Maybe someone can point me to a good resource for such elegant WebGL renderings.
Re:Radar – A new set of integrated tools to help prevent fraud by edwinwee on Wednesday October 19, 2016 @02:59PM (#12746658)
Glad you like it! We used Three.js (https://threejs.org) to handle rendering the icosahedron itself. Three.js actually includes an icosahedron as one of its built-in primitives, however we also wanted to add some subtle details to the model such as rounded edges. So, we created a rounded version in Cinema 4D, and then rendered both that model as well as an invisible copy of the object using the Three.js primitive. The primitive gives us easy access to things like the vertex coordinates, that are then used to position the labels, which are plain DIVs and not rendered with WebGL.
Re:Radar – A new set of integrated tools to help prevent fraud by markdog12 on Wednesday October 19, 2016 @03:15PM (#12746813)
Great work, result is awesome. Love how it pops in and fits with the page background nicely. I find your web pages and documentation to be pretty much the nicest on the internet.
Re:Radar – A new set of integrated tools to help prevent fraud by anc84 on Thursday October 20, 2016 @05:24AM (#12750816)
It burns CPU like mad. See if limiting the framerate to something sane makes sense, 15-20 might be enough for fluent motion. https://stackoverflow.com/questions/11285065/limiting-framer...
Re:Radar – A new set of integrated tools to help prevent fraud by King-Aaron on Wednesday October 19, 2016 @09:14PM (#12749195)
Agree, awesome work. Probably one of the nicest visual elements I've seen on a tech site for a while.
Re:Radar – A new set of integrated tools to help prevent fraud by TJSomething on Wednesday October 19, 2016 @02:54PM (#12746611)
They're using Three.js, but it looks like the spinning icosahedron is custom-made with about 300 lines of code. That includes calculating the vertices of the icosahedron, loading the model from a 3D model file, setting up the surface material characteristics, setting up the lights, animation, moving HTML nodes with the labels along with the vertices, and mouse dragging.
Re:Radar – A new set of integrated tools to help prevent fraud by coloradude on Wednesday October 19, 2016 @02:51PM (#12746585)
Re:Radar – A new set of integrated tools to help prevent fraud by madeofpalk on Thursday October 20, 2016 @07:22AM (#12751368)
Stripe's product pages and FE technical excellence are second to none. Maybe Apple, but they tend to over do it sometimes whereas Stripe does a great job of making the perfect amount of 'subtle flashy'.