POV-Ray : Newsgroups : povray.binaries.images : Triplanar Mapping : Re: Triplanar Mapping Server Time
19 Apr 2024 17:19:35 EDT (-0400)
  Re: Triplanar Mapping  
From: Thomas de Groot
Date: 16 Jan 2024 08:56:10
Message: <65a68afa$1@news.povray.org>
I got a really strange problem applying your code to:

superellipsoid {
   <0.25,0.25>

   texture {
     pigment {
       pigment_pattern {Triplanar(PImg, TriplanarSharpness)}
       color_map {
         [0.20 rgb <1,1,0>]
         [0.50 rgb <1,0,1>]
         [0.80 rgb <0,1,1>]
       }
     }
     normal {
       pigment_pattern {Triplanar(PImg, TriplanarSharpness)}
       poly_wave .5
       bump_size .75*2
       accuracy TriplanarAccuracy / ImageRes
     }
   }

   scale 0.75
   rotate <0, 30, 0>
   translate <0, 0.75, 0>
}

If you change the rotation of the object, especially > 30*y or < -30*y 
in this example, the texture becomes distorted! Also with other types of 
objects.

What is happening here?

-- 
Thomas


Post a reply to this message

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