
Personalizar: Holographic trading card loop
O prompt vem de uma publicação de Cheer AI Agents. Ver o vídeo
O teu prompt
A parte destacada no fim é acrescentada a partir dos teus dados e controlos. Quando entra em conflito com o prompt, é ela que prevalece.
Please use Python (OpenCV, NumPy, Pillow) to create a 3D floating looping GIF with the look and feel of a “Pokémon SAR / UR-grade holographic flash card,” based directly on the original image I uploaded (do not redraw the original with an image-generation model; you must preserve 100% of the original image’s details). Please write and run the code according to the following rendering pipeline and visual standards, then output the GIF file: 1. 【Canvas and 3D Physical Modeling】 - Preserve the original image’s aspect ratio and automatically apply rounded corners (with antialiasing), generating a ring of metallic beveled highlights around the card’s outer edge that reflect light as the angle changes. - Build a 3D perspective rotation animation: use sine/cosine functions to generate 48 seamlessly looping frames (about 22fps). The card smoothly performs a 3D orbital tilt in space (Y-axis ±17.5°, X-axis ±10.5°, slight Z-axis wobble) accompanied by a gentle up-and-down float. - Physical thickness: stack 8 thickness slices with a brushed-metal texture along the Z-axis on the back of the card, so the solid card-edge thickness is clearly visible as it rotates. - Studio lighting: automatically match a dark gradient vignette background to the original image’s dominant colors, a breathing ambient glow behind the card that moves with it, and a Gaussian-blurred floating shadow that shifts in the opposite direction as the tilt angle changes. 2. 【Pokémon-Grade Zoned Holographic Shaders (Light Changes Dynamically with Angle)】 - Zoned masks: automatically separate “dark background areas,” “borders and bright gold-foil areas,” and the “main character illustration area” based on the original image’s brightness and edges. - Micro-etched grating underlay: automatically match a fine underlay to the image’s theme (such as radial light rays / silk ripples / Pokémon Cosmos star speckles) and overlay diagonal micro-gratings. - Dynamic iridescence and sweep light: overlay dual-layer rainbow diffraction light on the dark areas that drifts in real time with the 3D tilt; overlay diagonal specular glass highlight bands and a moving spotlight across the whole image; overlay intense metallic gold-foil reflections on the borders and bright areas. - SAR line-art micro-relief: use Sobel edge gradients to simulate subtle ink relief, so the original image’s line edges produce delicate dimensional highlights that follow the light direction. 3. 【Dynamic Star Flashes and Spatial Particles】 - Anchor several 4-pointed cross star flashes at highlights and focal points in the image, triggering a peak flash when the sweep-light band passes over them. - Add seamlessly looping micro-glow floating particles to the card’s “background layer” and “foreground layer,” with colors that echo the original image. 4. 【Export Specs】 - Export at a width of about 460px (height adapts proportionally), ensuring the animation loops seamlessly from end to start. - Use a 256-color adaptive palette (Median Cut) with Floyd-Steinberg dithering to compress the GIF, keeping rainbow gradients smooth without banding or breaks. 【Optional Customization (if left blank, you will decide automatically based on the original image)】 - Holographic underlay style: [Auto-match / Radial sun rays / Water-ripple silk / Cosmos star speckles] - Metallic card edge and gold-foil tones: [Auto-match / Gilded gold / Icy silver / Iridescent purple-gold] - Exclusive highlight effects: [Auto-match, e.g. add a pulsing star flash or flowing light at a light source in the image]Para melhores resultados, executa-o com Gemini 4 Neon.