<p style="margin:0;padding:0;" align="left">Hey, Wonderful !<br /><br />Have you read my presentation at Blender Conf 2008 ?<br />(see http://www.blender.org/community/blender-conference/proceedings/ my PDF about :<br /><h1>Alain Lioret: An Artificial Intelligence Nodes module inside Blender for expert modeling, texturing, animating and rendering.</h1></p> <br /> ....<br /><br />Best<br /><br />Alain<br /><br /><br /> <br /><br /><blockquote style="border-left: 2px solid #ff0000; padding-left: 5px; margin-left: 5px">&gt; Message du 13/03/09 16:50<br />&gt; De : jgray@grayengineers.com<br />&gt; A : bf-funboard@blender.org<br />&gt; Copie &agrave; : <br />&gt; Objet : [Bf-funboard] Genetic Algorithm approach<br />&gt; <br />&gt; <br />&gt; See also:  http://www.blenderstorm.org/qapoll/ideas/idea/846<br />&gt; <br />&gt; I'm now convinced this is a good place to discuss implementation <br />&gt; strategy.  If I'm wrong, please direct me.<br />&gt; <br />&gt; I've already started implementation, and hope to finish most of it with <br />&gt; little or no disturbance to on-going work.<br />&gt; <br />&gt; I have several critical design decisions already:<br />&gt; <br />&gt; 1) I've already decided to add a new window type, Genetic Algorithm, <br />&gt; alongside 3D View, Outliner, etc.  I can put in a few weeks here before <br />&gt; I need to make any more decisions.  I already have the window (with a <br />&gt; new icon) in a 2.44 codebase.  I plan to switch to the latest 2.50 <br />&gt; 19272 I just got.  Should I just wait till 2.50 is done?<br />&gt; <br />&gt; 2) How to implement a Gene.  I think I have this conceptualized well <br />&gt; enough.  I intend to describe almost all GA types (texture, field, car, <br />&gt; town) with a very generic data structure.  The idea is that to add a <br />&gt; new type, someone should be able to add to an already defined struct <br />&gt; ga_types[] list of types without any real code.  My question is:  would <br />&gt; it be acceptable for me to use C++?  (I don't mind sticking with C, but <br />&gt; want a lot of function pointers.)<br />&gt; <br />&gt; 3) Modifier or Container (the big question).  In many ways, it makes <br />&gt; sense for a GA to be a modifier to an object; a plane would be modified <br />&gt; with a GA/field or a cylinder with a GA/tree.  On the other hand, it <br />&gt; also makes sense to make a group/container object; when converting a <br />&gt; plane to a GA, the GA would generate completely new OBjects to replace <br />&gt; the plane; while in progress, the GA would 'contain' the original and <br />&gt; all variants, but display only the selected one.<br />&gt; <br />&gt; The modifier approach seems difficult for textures, too.  I really <br />&gt; don't want the approach to be drastically different between textures &amp; <br />&gt; surfaces.  My plan for textures was to select one or more objects, then <br />&gt; hit a 'Texture with GA' button.  Each selected object would be linked <br />&gt; to a new texture.  A new empty OBject would also be linked to the new <br />&gt; texture (other empty OBjects would link to candidate textures).  The GA <br />&gt; would contain the new empty object(s) and (indirectly) the published <br />&gt; texture (and all other candidates).<br />&gt; <br />&gt; I understand that 'contain' is probably a poor description since the <br />&gt; database isn't exactly hierarchical.  It would be more accurate to say <br />&gt; 'reference', but the 'referenced' objects would have their <br />&gt; visible/selectable/drawable flags turned off or on by the GA.<br />&gt; <br />&gt; Any preference?  Comments?<br />&gt; <br />&gt; 4) (may be a long time off) Whether and how to add button controls.  It <br />&gt; may be useful to show the actual genes as you work.  It would help with <br />&gt; debugging, but may also help when you just can't quite get the color or <br />&gt; shape you want.  Genetic Engineering isn't for the novice, but might <br />&gt; speed up the process.<br />&gt; <br />&gt; I didn't plan to submit any code till I had enough done to be useful <br />&gt; for texture generation.  Would it be better to submit incrementally?  <br />&gt; Perhaps with #ifdef to keep my window off the window selection menu?<br />&gt; _______________________________________________<br />&gt; Bf-funboard mailing list<br />&gt; Bf-funboard@blender.org<br />&gt; http://lists.blender.org/mailman/listinfo/bf-funboard<br />&gt; <br />&gt; <br /></blockquote>