Damn... this is bad, specially since Python 3 has no image module
(PIL), there's just no way.. unless you pick a simple format like a
BMP and read the data straight from file.. still procedurals would be
left out. Also the Fracture Tools script need access to texture values
for cracking objects based on textures and I have needed it
personally. I hope this gets fixored

Daniel Salazar
www.3developer.com

On Wed, Dec 15, 2010 at 1:19 AM, Hart's Antler <[email protected]> wrote:
> Getting a UV texture's pixel value per vertex, the stupid way.
> (this should be rewritten as a C function exposed to Python)
> This script does the following hack to get the pixel value:
>   1. copy the object
>   2. apply a displace modifier
>   3. for each RGB set the ImageTexture.<color>_factor to 1.0 and others to 0.0
>   4. for each RGB bake a mesh (apply the displace modifier)
>   5. for each RGB find the difference of vertex locations
>   6. apply the differences as vertex colors
>
> http://pastebin.com/FJWKSGBR
>
> for some reason the values are off and always tinted green.
>
>
>
> _______________________________________________
> Bf-committers mailing list
> [email protected]
> http://lists.blender.org/mailman/listinfo/bf-committers
>
_______________________________________________
Bf-committers mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-committers

Reply via email to