POV-Ray : Newsgroups : povray.unofficial.patches : Cutaway textures problem Server Time
1 Nov 2024 13:21:12 EDT (-0400)
  Cutaway textures problem (Message 1 to 4 of 4)  
From: Disnel
Subject: Cutaway textures problem
Date: 20 Oct 2000 04:41:11
Message: <39F00638.36C4E0F6@hlavacek-partner.cz>
Warp found some problems with cutaway_textures
(his message in this newsgroup from 09/15/00).

I have similar problem with following:

difference {
  union {
    sphere {<0, 0, 0>, 5 texture {pigment {color blue 1}}}
    sphere {<-5, 0, 0>, 2 texture {pigment {color red 1}}}
  }
  plane {<0, 0, 1>, 0}
  cutaway_textures
}

works good, but

difference {
  union {
    sphere {<0, 0, 0>, 5 texture {pigment {color blue 1}}}
    sphere {<-5, 0, 0>, 2 texture {pigment {color red 1}}}
  }
  union {
    plane {<0, 0, 1>, 0}
    plane {<-1, 0, 0>, 0}
  }
  cutaway_textures
}

ignores cutaway_textures. I think, that the reason is that POV-Ray
automatically asigns default texture to the second union in difference
and cutaway_textures thinks, that this union has texture assigned
with user.

Q: should cutaway_texture ignore all textures in subtracted objects?

I know, that it works good when the planes are not composed to union,
but I have some cases, where I first compose some objects, which
will represent holes to another object in the future (for example
windows in wall, they are added by some macros to one composite) and
after I need cut them from another object in way like

difference {
  object {Actually_composed_wall}
  object {All_window_holes}
  cutaway_textures
}

Disnel


Post a reply to this message

From: Bob H 
Subject: Re: Cutaway textures problem
Date: 20 Oct 2000 05:37:14
Message: <39f0124a@news.povray.org>
"Disnel" <dis### [at] hlavacek-partnercz> wrote in message
news:39F00638.36C4E0F6@hlavacek-partner.cz...
>
> ignores cutaway_textures. I think, that the reason is that POV-Ray
> automatically asigns default texture to the second union in difference
> and cutaway_textures thinks, that this union has texture assigned
> with user.
>
> Q: should cutaway_texture ignore all textures in subtracted objects?
>
> I know, that it works good when the planes are not composed to union,
> but I have some cases, where I first compose some objects, which
> will represent holes to another object

Think you may be right, the union probably doesn't adhere to a proper entity
for that purpose.  Must be that CSG isn't applicable to the cutaway_textures
feature, doing it only on a per primitive basis.

Bob


Post a reply to this message

From: Disnel
Subject: Re: Cutaway textures problem
Date: 20 Oct 2000 06:32:33
Message: <39F01FFD.2D53B262@hlavacek-partner.cz>
"Bob H." wrote:
> 
> "Disnel" <dis### [at] hlavacek-partnercz> wrote in message
> news:39F00638.36C4E0F6@hlavacek-partner.cz...
> >
> > ignores cutaway_textures. I think, that the reason is that POV-Ray
> > automatically asigns default texture to the second union in difference
> > and cutaway_textures thinks, that this union has texture assigned
> > with user.
> >
> > Q: should cutaway_texture ignore all textures in subtracted objects?
> >
> > I know, that it works good when the planes are not composed to union,
> > but I have some cases, where I first compose some objects, which
> > will represent holes to another object
> 
> Think you may be right, the union probably doesn't adhere to a proper entity
> for that purpose.  Must be that CSG isn't applicable to the cutaway_textures
> feature, doing it only on a per primitive basis.
> 
> Bob

I can remember all holes in array instead "storing" them in union,
but it is more complicated and I am limited with some fixed array
size .... possible growing array will be very useful ;-).

Disnel


Post a reply to this message

From: Nathan Kopp
Subject: Re: Cutaway textures problem
Date: 20 Oct 2000 19:26:54
Message: <39f0d4be$1@news.povray.org>
"Disnel" <dis### [at] hlavacek-partnercz> wrote...
>
[clip]
> ignores cutaway_textures. I think, that the reason is that POV-Ray
> automatically asigns default texture to the second union in difference
> and cutaway_textures thinks, that this union has texture assigned
> with user.

This sounds like a bug.  I don't have time to try to fix it now,
unfortunately.  I'll look into it, though.  It probably has something to do
with the fact that unions get split up.

-Nathan


Post a reply to this message

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