Wasn't it simon shannon who wrote:
>
>Dear All,
>
> I have a height field with an image draped over it (image_map).
>Instead of generating an image of the whole scene, I would just like
>to know the value of, say 1000 specified pixels taken from a 512x384
>view and write them out to a file. Is that possible?
You can use trace() and eval_pigment() to achieve something like the
equivalent of casting an individual ray. Trace() will tell you the point
where your ray intersects the object. Eval_pigment() will tell you the
colour of the pigment at that point.
You'll also need to use #fopen and #write() to write the data to a file.
--
Mike Williams
Gentleman of Leisure
Post a reply to this message
|