POV-Ray : Newsgroups : moray.win : CSGs and UDO/INC? Server Time
29 Jul 2024 16:24:41 EDT (-0400)
  CSGs and UDO/INC? (Message 1 to 4 of 4)  
From: Alex Magidow
Subject: CSGs and UDO/INC?
Date: 26 Sep 1998 19:58:29
Message: <360D7220.D5B69DF6@mninter.net>
Is there a reason that CSG differences do not work with UDO/INC pairs?
If so, what is it?Is there a list of rules concerning UDO/INC files
anywhere?(Possibly the VFAQ?)


Post a reply to this message

From: Johannes Hubert
Subject: Re: CSGs and UDO/INC?
Date: 27 Sep 1998 06:48:52
Message: <360e0a04.0@news.povray.org>
Alex Magidow wrote in message <360D7220.D5B69DF6@mninter.net>...
>Is there a reason that CSG differences do not work with UDO/INC pairs?
>If so, what is it?Is there a list of rules concerning UDO/INC files
>anywhere?(Possibly the VFAQ?)
>

I see no reason why it shouldn't work. In fact: I just tested it and it
worked find: I made a CSG with a box and a UDO to test it, setting the
difference both ways: box minus UDO and UDO minus box. Both worked fine.

Maybe your problem is, that the INC file of the UDO/INC contains something
that can't be used in CSGs?

Johannes.


Post a reply to this message

From: Alex Magidow
Subject: Re: CSGs and UDO/INC?
Date: 27 Sep 1998 12:15:44
Message: <360E572D.2CB49ACC@mninter.net>
Johannes Hubert wrote:

> Alex Magidow wrote in message <360D7220.D5B69DF6@mninter.net>...
> >Is there a reason that CSG differences do not work with UDO/INC pairs?
> >If so, what is it?Is there a list of rules concerning UDO/INC files
> >anywhere?(Possibly the VFAQ?)
> >
>
> I see no reason why it shouldn't work. In fact: I just tested it and it
> worked find: I made a CSG with a box and a UDO to test it, setting the
> difference both ways: box minus UDO and UDO minus box. Both worked fine.
>

I only tried a UDO minus a box, but it did some weird stuff. First, I noticed
that when I make a normal difference CSG, with primitives, it cuts away the
shape of one of the primitives, leaving a big hole. The interior of the hole
is the texture of the primitive that was cut out. When I tried the same thing
with the csg, it didn't retain the texture or the cut out shape. In fact,
cutting a rectangular part out of one side of the UDO cut out a huge section
of the other side of the UDO(This is NOT a wetware problem!) Why does this
happen? If anyone is interested in screwing around with the source and trying
to get this to work, please let me know and I'll send it to you.

P.S. I am begining to think the UDO is hollow. But that still doesn't account
for all these problems.

Thanks in adavance for your help.

> Maybe your problem is, that the INC file of the UDO/INC contains something
> that can't be used in CSGs?
>
> Johannes.


Post a reply to this message

From: Johannes Hubert
Subject: Re: CSGs and UDO/INC?
Date: 27 Sep 1998 14:37:23
Message: <360e77d3.0@news.povray.org>
Alex Magidow wrote in message <360E572D.2CB49ACC@mninter.net>...

>cutting a rectangular part out of one side of the UDO cut out a huge
section
>of the other side of the UDO(This is NOT a wetware problem!)

<Guessing mode on>
This sounds like your UDO is wrongly align (or mirrored) in the INC file.
That is possible if the UDO is symetric: You see the wireframe in Moray and
the shape in POV and they seem to match, but internally the object is
actually mirrored, only that you can't see it since, it is symmetrically.
And then, when you try to cut out something on one side, you see it actually
disappering at the other side.
<Guessing mode off>

Go and have a look at the POV code in the INC file of the UDO. Try to render
a handcoded scene where you use the object and see how this comes out. Maybe
you only need as much as a scale -1*x (or whichever axis is mirrored) to fix
it.

Hope it helps,
Johannes.


Post a reply to this message

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