To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.rayOpen lugnet.cad.ray in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Ray-Tracing / 797
796  |  798
Subject: 
Re: Problem using difference
Newsgroups: 
lugnet.cad.ray
Date: 
Wed, 11 Apr 2001 05:22:32 GMT
Viewed: 
959 times
  
Hi Paul,

I'd like to thank you for your help on this.  I assigned a clear pigment to the
box:
difference{
        object { Scimitr2_dot_dat }
        box { <40,-43,-360>,<350,85,280> pigment{color Clear}}
}

It never occurred to me to give the box a color.  Of course, this has caused
some other problems as seen at

http://www.brickshelf.com/cgi-bin/gallery.cgi?i=41019

but I can attempt to fix some of these during the post rendering process.
Again, thank you.

Travis Dickinson

Paul Easter wrote:
Well Travis,
This one could have some error messages that may be appearing. I have been
rendering most of the day today and have seen many different error messages.

An example that works for me is;
difference{
    box{<-60,-5,70>,<50,70,-30>
     #if (version >= 3.1) material #else texture #end { Color7 }}
    box{<10,-10,30>,<100,50,-100>
     #if (version >= 3.1) material #else texture #end { Color47 }}
          }
If I didn't use a color on the "cutting" box, it would render all "cut"
edges in black. Color 47 is "transparent white", it allows for the colors of
the parts being "cut" to show.

I have been working on a canopy piece lately, for now it is 3/4 ldraw and
1/4 pov.  When I try to "cut" it with a box, I get several error messages,
with the main one being; "Camera is inside a non-hollow object. Fog and
participating media may not work as expected."
When the "QUAL" variable is set to anything other than "0", the "cutting"
box renders whole, like it is ignoring the difference instruction. This may
have to do with the camera error. So far I have not figured out what is
causing this error. The camera is really not inside something.

This might be your problem too.  Maybe someone else can help us both out.

You might try this;

object { Scimitr2_dot_dat
  clipped_by{
    difference{
      box {<-100000,-100000,-100000>,<100000,100000,100000>
      box { <40,-43,-360>,<350,85,280> }
}}}
The first box needs to be large enough to enclose your whole model.
This is basically a box with a notch cut out. It doesn't cut the edges of
the parts correctly, but if the rendering is small it isn't too noticable.

Good luck!

Paul



Message is in Reply To:
  Re: Problem using difference
 
(...) Well Travis, This one could have some error messages that may be appearing. I have been rendering most of the day today and have seen many different error messages. An example that works for me is; difference{ box{<-60,-5,70>,<50,70,-30> #if (...) (24 years ago, 9-Apr-01, to lugnet.cad.ray)

5 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR