POV-Ray : Newsgroups : povray.general : How would you create sparkle effects? : Re: How would you create sparkle effects? Server Time
29 Jul 2024 10:27:52 EDT (-0400)
  Re: How would you create sparkle effects?  
From: Christian Froeschlin
Date: 17 Oct 2011 17:19:33
Message: <4e9c9be5$1@news.povray.org>
> For a disco mirror ball, I think the best thing to use would be a mesh with a
> reflective and highly specular texture in conjunction with photon mapping. 

A sphere with facet normals would also be an option.


Regarding the sequins, some 2d pattern such as leopard
could be used to fake the reflective spots for objects that
support uv_mapping, e.g:

#declare T_BASE   = texture {pigment {color White}}

#declare T_SEQUIN = texture {T_Gold_1A}


sphere
{
   y,1

   texture
   {
     uv_mapping

     // roundish spots

     leopard

     scale 0.005

     texture_map
     {
       [0.00 T_BASE]
       [0.01 T_BASE]
       [0.01 T_SEQUIN]
       [1.00 T_SEQUIN]
     }
     */


     // hexagonalish (requires version 3.7)
     /*
     tiling 2 rotate 90 * x

     turbulence 0.1

     scale 0.005

     texture_map
     {
       [0.00 T_SEQUIN]
       [0.92 T_SEQUIN]
       [0.92 T_BASE]
       [1.00 T_BASE]
     }
     */
   }
}

Although these spots can reflect photons they are not flat, though.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.