|
|
"Gyscos" <gys### [at] gmailcom> wrote in message
news:web.486f32aec03ce0661ba56a630@news.povray.org...
> But how would I do if I don't know the pigment of the object ?
> I only have an object "Obj", with a texture that I don't know...
I can't think of anything that would give you that.
The 'trace' function can give you a point on a the surface of an object and,
as Tim mentioned, the 'eval_pigment' function can give you the pigment's
colour value at that point. However, as you pointed out, you need to be able
to pass it a copy of the pigment or a pigment identifier (in the same way
that you need to pass the 'trace' function a copy of the object or an object
identifier).
As POV-Ray files are generally human-readable, can't you find the object
definition and extract a copy of the pigment component of that object's
texture? This could of course be difficult with layered textures.
Otherwise, what are you ultimately trying to achieve? It may be that someone
can recommend a different approach that works around this particular
problem.
Regards,
Chris B.
Post a reply to this message
|
|