POV-Ray : Newsgroups : povray.advanced-users : Getting the rgb from a position? : Re: Getting the rgb from a position? Server Time
29 Jul 2024 02:23:02 EDT (-0400)
  Re: Getting the rgb from a position?  
From: Neuron
Date: 1 Apr 2003 06:20:08
Message: <web.3e8974b549b369be55a148e60@news.povray.org>
Hello,

I experienced similar problem, I needed the color from texture at point P.
The trick which worked for me was:

#declare TEX=texture {
....
}

sphere {
  <0, 0, 0>, 1
  texture {
    TEX
    translate -P
    scale 1000
    ...
  }
  translate ...
  ...
}

This way the spere has color from the given point on texture. But if there
is some better way, please enlighten me, i would like something:

color=TEX[P]

or alike :)


Regards,
Vlada


Post a reply to this message

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