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

joe joeedh at gmail.com
Fri Mar 13 08:28:42 CET 2009


Ah I'd recommend reading up on the new 2.5 architecture, as G no
longer really exists.  The following page has a bunch of articles on
it:

http://wiki.blender.org/index.php/BlenderDev/Blender2.5

Joe

On Thu, Mar 12, 2009 at 8:58 PM, Jingyuan Huang
<jingyuan.huang at gmail.com> wrote:
> 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
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>


More information about the Bf-committers mailing list