[Bf-committers] Adding new panels/buttons and properties to the global variable.

Jingyuan Huang jingyuan.huang at gmail.com
Fri Mar 13 03:58:56 CET 2009


Hi,
I'm currently doing some prototype work for adding an "illumination
brush" (http://www-ui.is.s.u-tokyo.ac.jp/~makoto21/IlluminationBrush2.htm)
like functionality to Blender. I have a very preliminary window (like
the render window) which renders things using precomputed spherical
harmonics coefficients (so far only diffuse calculation with an hdr
file as lighting environment. screenshot:
http://www.cgl.uwaterloo.ca/~j23huang/tmp/Screenshot.png). I would
also like to add some buttons to the render panel, which looks like
this:  http://www.cgl.uwaterloo.ca/~j23huang/tmp/Screenshot-Blender.png

I tried to add two new fields to RenderData. However, since all the
buttons reference to the global variable G and G is initialized by
reading .B.blend, I got segfault because the scene data is not loaded
properly. I wonder if there is a work around to this. Can I add
buttons without touching the main blender data structure and yet still
make it work?


Best Wishes
Jingyuan Huang
------------------------------------
Computer Graphics Lab
University of Waterloo


More information about the Bf-committers mailing list