[Bf-python] Image loading in GL memory

Campbell Barton cbarton at metavr.com
Mon Sep 13 02:05:46 CEST 2004


If they are not loaded in the texture view (Alt+Z)
then the bindcode returned is 0-

See my image thumbnail browser.

- Cam

Willian Padovani Germano wrote:

> Campbell Barton wrote:
>
>>
>> Hi- I was writing an image thumbnailer and found there is no way an 
>> image into blender OpenGL memory.
>>
>> I propose adding a image.glLoad() function which would return  the 
>> bindCode or None if there is not enough vram.
>
>
> Hi Cam,
>
> Never played with it myself, but isn't image.getBindCode() in 
> Blender.Image enough for that?  You can load the images and then get 
> the bind code to use them as textures applied to quads for your 
> thumbnailer.  get/setBindCode methods + documentation were contributed 
> some weeks before 2.34 by Andrew Corrigan and Satish Goda.
>


-- 
Campbell J Barton

133 Hope Street
Geelong West, Victoria 3218 Australia

URL:    http://www.metavr.com
e-mail: cbarton at metavr.com
phone: AU (03) 5229 0241

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: image_browser.py
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20040913/6d792ac5/attachment.ksh>


More information about the Bf-python mailing list