POV-Ray : Newsgroups : povray.newusers : Complicated texturing problem : Re: Complicated texturing problem Server Time
2 May 2024 09:07:10 EDT (-0400)
  Re: Complicated texturing problem  
From: Alain
Date: 20 Jul 2014 16:00:55
Message: <53cc1ff7$1@news.povray.org>

> Is there a way to apply a gradient texture to multiple objects, such that the
> texture map at 0 is one texture, but the texture map at 1 is a texture unique to
> the 2 individual objects?
>
> I'm picturing something along the lines of a pane of glass in a box, and there's
> a gradient of texture applied across the whole (unioned ?) object, such that the
> texture at 0 is something bland or transparent, and as the gradient sweeps
> across both objects, it affects them both equally along the same plane, as
> though the entire multiple-primitive "object" in the scene had this special
> gradient type applied to it.
>
> I hope that's clear?
>
>

Whenever you group several objects in an union, if you apply any texture 
to the union itself, then that texture will be applyed to every objects 
of the union. The exeption is any object that already have their own 
texture that will retain that individualy applyed texture.

So, you can have this:
union{
  object{GlassPane}
  object{MyBox}
  pigment{gradient x+y color_map{[0 rgb 1][1 rgbt 1]}scale 3}
}



Alain


Post a reply to this message

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