POV-Ray : Newsgroups : povray.binaries.images : Bottle : Re: Bottle Server Time
16 Nov 2024 12:24:40 EST (-0500)
  Re: Bottle  
From: Hugo Asm
Date: 22 Jan 2003 08:05:05
Message: <3e2e9701$1@news.povray.org>
> I tried merge last night, and it does the same thing as union.
> I think this may be because the objects are transparent..

Hughes is right. If you have nested unions, be sure to use merge only in
those who combine surfaces that overlap. For example:

union {
    // bottle
    merge {
        cylinder { .... }
        sphere { ... }
        cylinder { .... }
    }

    // black bottle head
    union {
        sphere { ... }
        cylinder { .... }
    }
}

This is a nested union. It allows the whole bottle (with head) to be moved
in one piece, but I put the merge only where it's needed. If this still
doesn't work, I guess it's because you've made the overlapping objects
hollow?  This will be another story.

Regards,
Hugo


Post a reply to this message

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