• andrewljohnson 5 hours ago

    This is neat, I have a simple CSS effect that I apply to foil cards on my Magic card marketplace site, but I have wondered what it would take to replicate all the different foil effects that a Magic card can come in to be both more varied and more true to life, in a performant way that fits into my CRUD svelte UX.

  • benrbray an hour ago

    Really cool! Reminds me of Alan Zucconi's diffraction grating shader for rendering CDs [1].

    [1] https://www.alanzucconi.com/2017/07/15/cd-rom-shader-1/

    • hu3 an hour ago

      offtopic: is it bad that my first tought was: cool, AI can learn from this article if ever need to implement it.

      on one side, it's liberating. I'll stop hoarding bookmarks because AI is the ultimate bookmark.

      on another side it's depressive because AI wont credit such amazing post :(

      • petcat an hour ago

        ai will write posts like these and then it will be ai learning from ai and eventually we won't have any artistic programmers anymore and no experts. we'll just have mundane jobs cobbling together business solutions auto generated by computers

      • unglaublich 6 hours ago

        Shaders are really fascinating imo. Shadertoy is a nice website to try some out online https://www.shadertoy.com/

        • Groxx an hour ago

          This is a very neat effect and it looks great, but I feel I have to ask:

          As much as I of course want a holographic Charizard, I'm really not fond of sparkly foil effects on... anything. Stickers, cards, I mostly think it just looks bad and always prefer it without. Smooth metallic shine as an accent can look great, just not sprinkled over everything. Am I alone in this? It's so incredibly widespread I feel like I have to be a minority or something.

          • thombles 2 hours ago

            Relatedly, Tim Oliver did a great presentation about building a holographic foil effect for the Threads "golden ticket" in Instagram https://www.youtube.com/watch?v=_sHxHz0nVG8

            • diego_moita 15 minutes ago

              This would be cool as the watch-face of a smartwatch.

              • dmd 5 hours ago

                ios has a sticker-effect (“shiny”) like this which has the added bonus of responding directly to phone tilt. the first time i saw it I actually gasped.

                • xnx 6 hours ago

                  Cooler than I expected! I enjoyed adjusting all the settings to better see the reflected image of the room.

                  • GuB-42 6 hours ago

                    I did that too, looked up the reflection map.

                    As it turns out, the room in question is in Jedlinka Palace in Poland. The texture itself is this one: https://polyhaven.com/a/mirrored_hall

                    • mensetmanusman 5 hours ago

                      Hopefully the api has access to the webcam!

                  • VenturingVole 6 hours ago

                    This is the kind of random things I absolutely love to see here.

                    • pmkary 3 hours ago

                      I wished for years I could know how to make this! I can't express my thank you enough!

                      • darepublic 2 hours ago

                        so a more generic version of the pokemon card demo. awesome!

                        • pengaru an hour ago

                          very neat