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 / 796
795  |  797
Subject: 
Re: Problem using difference
Newsgroups: 
lugnet.cad.ray
Date: 
Mon, 9 Apr 2001 05:10:39 GMT
Viewed: 
518 times
  
In lugnet.cad.ray, Travis Dickinson writes:
Sorry about the image size.  I've uploaded two larger images with a different
view point.  I've also included an image of the full model.  The difference
statement is as follows:

difference{
       object { Scimitr2_dot_dat }
        box { <40,-43,-360>,<350,85,280> }
}

http://www.brickshelf.com/cgi-bin/gallery.cgi?f=4055

Travis


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 has 1 Reply:
  Re: Problem using difference
 
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, (...) (23 years ago, 11-Apr-01, to lugnet.cad.ray)

Message is in Reply To:
  Re: Problem using difference
 
Sorry about the image size. I've uploaded two larger images with a different view point. I've also included an image of the full model. The difference statement is as follows: difference{ object { Scimitr2_dot_dat } box { <40,-43,-360>,<350,85,280> (...) (23 years ago, 7-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

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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