POV-Ray : Newsgroups : povray.binaries.images : pre . . . Fib Beads : Re: pre . . . Fib Beads Server Time
19 Aug 2024 04:23:19 EDT (-0400)
  Re: pre . . . Fib Beads  
From: Chris Huff
Date: 24 Feb 2001 20:18:58
Message: <chrishuff-1C0EFD.20180524022001@news.povray.org>
In article <3a984907@news.povray.org>, "yooper" <Out### [at] huntelnet> 
wrote:

> . Have you tried a single colour per sphere instead of an image
> map on the union? Megapov has an easier solution for this than pov3.1
> ***
>  That's what my original intention was but . . . a bead for each pixel
> really limits the size of the photograph that I can use.  Some small ones
> would work but even at 400x400 . . . yikes !!!  So I just shot it at the
> union and way very pleasently surprised by the result.

I don't think he meant a bead per pixel, just a single color for each 
bead. In MegaPOV, you could use the eval_pigment() patch to get the 
color of the image_map at the center of each bead. With the official 
version, you would have to either code a program to get the needed 
information, or just translate the texture so the portion at the bead 
position is at < 0, 0, 0>, scale it large enough that you can't see any 
color blend across it, then translate it to the bead position.

object {Bead
    texture {ImageTexture
        translate -BeadPosition
        scale 100// this should be big enough...
    }
    translate BeadPosition
}

-- 
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

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