POV-Ray : Newsgroups : povray.unofficial.patches : Transforming an object without transforming its texture : Re: Transforming an object without transforming its texture Server Time
2 Nov 2024 03:15:34 EDT (-0400)
  Re: Transforming an object without transforming its texture  
From: Chris Huff
Date: 12 Mar 2000 09:37:46
Message: <chrishuff_99-649021.09393612032000@news.povray.org>
In article <38CBA6DA.C5C087D0@pacbell.net>, lin### [at] povrayorg 
wrote:

> I'm not sure I understand the problem. Instead of texturing MyObject
> inside the object declaration add the texture when you use the object -
> 
> #declare MyObject = (object only declaration here)
> 
> ...
> 
> object { MyObject translate whatever - add texture }
> 
> The above will result in the texture centered at the origin while the
> object can be anywhere in your scene.

And what would you do if the object consists of a complex CSG with many 
textures?


This sounds similar to the reset_children warp, maybe there could be a 
flag in the transform {...} block, like this:

object {MyObject
    transform {
        transform_textures off
        translate ...
    }
}

This would allow you to transform the object and the texture 
separately(by using multiple transform {...} blocks), maybe with the 
addition of a transform_object flag.

-- 
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/


Post a reply to this message

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