[Bf-committers] Pytho API access to an Image's bindcode

Nathan Letwory bf-committers@blender.org
Fri, 16 Jul 2004 10:41:15 +0300 (EEST)


I see this has been committed to CVS. Could you also send a diff for the
documentation? (Image.py in the doc dir).

/Nathan

> Attached is a patch to give access to an Image's bindcode through Python.
>
> Motivation: We are writing a cel-shading plugin.  We are currently render
> the model using only 1D textures.  We would like to render another pass
> where 2D textures are already applied.  Currently an Image instance does
> not give access to the id that would be used when calling glBindTexture.
> This will also allow others to use already loaded textures.
>
> http://uniclipse.com/opensource/patchscreen.jpg
> A screen shot of it in use.  On the left you can see the UV texture
> applied to Suzanne.  On the right, the texture is mapped to a quad using
> BGL. Note, we have not yet integrated 2D textures with the celshading
> plugin, this is just drawing a quad.
>
> - Andrew Corrigan, Satish Goda,  Uniclipse
>