POV-Ray : Newsgroups : povray.general : clipped_by a textured object Server Time
2 Nov 2024 05:22:02 EDT (-0400)
  clipped_by a textured object (Message 1 to 4 of 4)  
From: Eamon Caddigan
Subject: clipped_by a textured object
Date: 3 May 2004 15:30:06
Message: <40969dbe$1@news.povray.org>
I'd like to use a previously-declared object with clipped_by.
Unfortunately this object has a texture, so of course errors are raised
when using it for clipping. Is there a syntax that would allow me to
"remove" the texture from an object, or create a new object without a
texture that is otherwise a copy of another?

-Eamon


Post a reply to this message

From: Warp
Subject: Re: clipped_by a textured object
Date: 3 May 2004 16:28:48
Message: <4096ab80@news.povray.org>
Eamon Caddigan <eca### [at] uiucedu> wrote:
> I'd like to use a previously-declared object with clipped_by.
> Unfortunately this object has a texture, so of course errors are raised
> when using it for clipping. Is there a syntax that would allow me to
> "remove" the texture from an object, or create a new object without a
> texture that is otherwise a copy of another?

  Sorry, there's no currently a way of doing that.
  You'll have to modify the original object to easily remove its
texture (eg. enclose its texture definitions inside #ifdef blocks).

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: Eamon Caddigan
Subject: Re: clipped_by a textured object
Date: 3 May 2004 22:58:18
Message: <409706ca$1@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote:
> Eamon Caddigan <eca### [at] uiucedu> wrote:
>> I'd like to use a previously-declared object with clipped_by.
>> Unfortunately this object has a texture, so of course errors are raised
>> when using it for clipping. Is there a syntax that would allow me to
>> "remove" the texture from an object, or create a new object without a
>> texture that is otherwise a copy of another?
>
>   Sorry, there's no currently a way of doing that.
>   You'll have to modify the original object to easily remove its
> texture (eg. enclose its texture definitions inside #ifdef blocks).

Thanks for the reply, even if it isn't what I wanted to hear.

Just out of curiosity (and feel free to not waste your time answering
this), why enforce the "no texture" rule for clipping objects anyway? I
can think of plenty of reasons to clip by an object that's also drawn,
and in my case (programically-created scene files), it would be pretty
convenient. I tried to think of a good reason to insist that clip
objects not be textured from POV-Ray's standpoint, but couldn't come up
with anything.

-Eamon


Post a reply to this message

From: Christopher James Huff
Subject: Re: clipped_by a textured object
Date: 4 May 2004 10:25:28
Message: <cjameshuff-232C26.10244104052004@news.povray.org>
In article <409706ca$1@news.povray.org>,
 Eamon Caddigan <eca### [at] uiucedu> wrote:

> Just out of curiosity (and feel free to not waste your time answering
> this), why enforce the "no texture" rule for clipping objects anyway? I
> can think of plenty of reasons to clip by an object that's also drawn,
> and in my case (programically-created scene files), it would be pretty
> convenient. I tried to think of a good reason to insist that clip
> objects not be textured from POV-Ray's standpoint, but couldn't come up
> with anything.

No technical reason that it couldn't be done, but it would waste memory 
to store the texture for an object that will never be visible. 
Personally, I think it should let the memory be wasted for the time 
being, it would be less likely to be a problem.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: <chr### [at] tagpovrayorg>
http://tag.povray.org/


Post a reply to this message

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