POV-Ray : Newsgroups : povray.advanced-users : Override textures/materials? : Re: Override textures/materials? Server Time
24 Sep 2021 14:48:33 EDT (-0400)
  Re: Override textures/materials?  
From: Mike Horvath
Date: 18 Jun 2021 13:52:19
Message: <60ccdd53$1@news.povray.org>
On 6/18/2021 10:44 AM, Alain Martel wrote:
> Le 2021-06-18 à 08:41, Mike Horvath a écrit :
>> Is there a way to override textures or materials that have already 
>> been declared or applied?
>>
>> I am trying to create a depth map, and need to apply a custom texture 
>> to the entire object.
>>
>> Thanks.
>>
>>
>> Mike
> 
> In the case of a texture or material that have been declared but not 
> used yet, a new #declare will completely replace the original with the 
> new definition.
> If it have been applied to something, then redefined, then, any object 
> that received it will keep the original definition.
> 
> In your case, you need to remove, or at least comment out, any texture 
> or material from your object. Then, apply your new texture to that 
> object as a whole.
> 

Instead of declaring my textures, I may start using macros instead. That 
way, I can just comment out the texture declaration inside the macro. 
But might this not consume more memory?


Mike


Post a reply to this message

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