Hi Campbell,<br><br>i read your response to this email and the notes you wrote on Nodal Logic, I almost understand them, but i have a question about converting nodes to python script!. from where python script generator start generating code? i.e. should codes be generated from sensor to actuators, or from actuator to sensors? <br>
<br>i think it should be generated from actuator to sensors.<br><br><br><br><div class="gmail_quote">On Mon, Sep 7, 2009 at 4:17 PM, Campbell Barton <span dir="ltr">&lt;<a href="mailto:ideasman42@gmail.com">ideasman42@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hey Zaghaghi,<br>
<br>
Benoit and I discussed how we could move to nodal logic in a way that<br>
can be done without a huge effort, or at least broken up into smaller<br>
steps.<br>
<br>
Since I wont be able to spend time on this soon (6-8months or so), Its<br>
not worth holding back the BGE UI to wait for this but personally Im<br>
most interested in nodal logic rather then to improve the existing UI.<br>
Since your looking at extending the BGE UI, thaught Id mention this as<br>
a possible future direction.<br>
<br>
<a href="http://wiki.blender.org/index.php/User:Ideasman42#BGE_Nodal_Logic" target="_blank">http://wiki.blender.org/index.php/User:Ideasman42#BGE_Nodal_Logic</a><br>
<br>
An overview of how this could work.<br>
- nodes are converted to a python script on launch. this python script<br>
can run like py scripts currently do.<br>
- the python script generator can be written in python (a detail but<br>
gives an idea how it might work), rna for data access.<br>
- existing classes kept as is.<br>
- existing logic manager kept as is (initially at least).<br>
- actuators have outputs added (/w pyapi access).<br>
- pyapi doesn&#39;t need controller logic bricks, these nodes can be<br>
converted directly into python code, only sensors and actuators C++<br>
objects used.<br>
- sensors and actuators have functions for enable/disable (/w pyapi access)<br>
- pyapi can trigger actuators directly.<br>
- python access to vectors, floating values can eventually be used as<br>
node input/outputs.<br>
<br>
This way existing logic can first be complied into a python script to<br>
validate it without adding a node UI.<br>
After that start wokring on a nodal UI.<br>
&gt;From the BGE&#39;s C++ perspective the logic manager is kept the same,<br>
pyAPI only happens to have some more accessors functions, the BGE wont<br>
care that the current py script happens execute node logic<br>
<br>
If this works well the logic manager could be adapted to better fit nodal logic.<br>
Its even possible not to use python eventually and generate some other<br>
way that the BGE executes nodal logic.<br>
<br>
--<br>
- Campbell<br>
<div><div></div><div class="h5"><br>
<br>
On Sun, Sep 6, 2009 at 2:02 PM, Hamed Zaghaghi&lt;<a href="mailto:hamed.zaghaghi@gmail.com">hamed.zaghaghi@gmail.com</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; answers to big problems, as i stated before, this UI is a prototype and will<br>
&gt; be completed in future. 1) i want to add some additional information for<br>
&gt; each row in lists, like object name, state, and some others. so in each row<br>
&gt; we can the object name. 2) currently this view has some disadvantages but i<br>
&gt; think that it&#39;s a good start point.<br>
&gt;<br>
&gt; and when i designed proposed UI, i thought of a new &quot;view&quot; and not a replace<br>
&gt; &quot;view&quot;. so i think that it&#39;s better that we have both views(currently logic<br>
&gt; editor, and the new one) instead of one of them.<br>
&gt;<br>
&gt; thank you for suggestions and questions,<br>
&gt; hamed zaghaghi<br>
&gt;<br>
&gt; On Sun, Sep 6, 2009 at 9:18 PM, Dalai Felinto &lt;<a href="mailto:dfelinto@gmail.com">dfelinto@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi Zaghaghi.<br>
&gt;&gt;<br>
&gt;&gt; It&#39;s nice to see some thought (and action) in the Logic Bricks. I can<br>
&gt;&gt; see some strengths of your proposal as it definitively address one of<br>
&gt;&gt; the main problems of current implementation (it gets really hard to<br>
&gt;&gt; see what is linked where after some connections). And it keeps<br>
&gt;&gt; everything way more organized, easy to work, less spaghetic ...<br>
&gt;&gt;<br>
&gt;&gt; However I see two big problems:<br>
&gt;&gt; (1) no clear separation when using multiple objects. How can we see<br>
&gt;&gt; which sensor belongs to each object?<br>
&gt;&gt; (2) no overall look to the controllers/actuators. That would require a<br>
&gt;&gt; big commitment with naming them properly. Also it makes hard to spot<br>
&gt;&gt; interrelation (ie a big picture) between all the<br>
&gt;&gt; sensors/controllers/actuators<br>
&gt;&gt;<br>
&gt;&gt; And a question:<br>
&gt;&gt; How are you thinking to relate those with states? (I guess this is<br>
&gt;&gt; more a UI problem then a design one)<br>
&gt;&gt;<br>
&gt;&gt; A second question+suggestion:<br>
&gt;&gt; can we have this as an alternative visualization mode? As we have<br>
&gt;&gt; Outliner/Oops in 2.49?<br>
&gt;&gt; Ideally having two modes (nodes and yours) would be fantastic.<br>
&gt;&gt;<br>
&gt;&gt; Best regards,<br>
&gt;&gt; Dalai<br>
&gt;&gt;<br>
&gt;&gt; <a href="http://blenderecia.orgfree.com" target="_blank">http://blenderecia.orgfree.com</a><br>
&gt;&gt;<br>
&gt;&gt; 2009/9/6 Hamed Zaghaghi &lt;<a href="mailto:hamed.zaghaghi@gmail.com">hamed.zaghaghi@gmail.com</a>&gt;:<br>
&gt;&gt; &gt; hi,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I proposed a new game logic UI, and need your comments and ideas. see it<br>
&gt;&gt; &gt; here <a href="http://dev.blender.ir/new-blender-2-5-game-logic-editor" target="_blank">http://dev.blender.ir/new-blender-2-5-game-logic-editor</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; thanks.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; --<br>
&gt;&gt; &gt; Hamed Zaghaghi,<br>
&gt;&gt; &gt; MSc. Student of Algorithms and Computation,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; Bf-taskforce25 mailing list<br>
&gt;&gt; &gt; <a href="mailto:Bf-taskforce25@blender.org">Bf-taskforce25@blender.org</a><br>
&gt;&gt; &gt; <a href="http://lists.blender.org/mailman/listinfo/bf-taskforce25" target="_blank">http://lists.blender.org/mailman/listinfo/bf-taskforce25</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Bf-taskforce25 mailing list<br>
&gt;&gt; <a href="mailto:Bf-taskforce25@blender.org">Bf-taskforce25@blender.org</a><br>
&gt;&gt; <a href="http://lists.blender.org/mailman/listinfo/bf-taskforce25" target="_blank">http://lists.blender.org/mailman/listinfo/bf-taskforce25</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Hamed Zaghaghi,<br>
&gt; MSc. Student of Algorithms and Computation,<br>
&gt; Engineering Science Department, University of Tehran<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Bf-taskforce25 mailing list<br>
&gt; <a href="mailto:Bf-taskforce25@blender.org">Bf-taskforce25@blender.org</a><br>
&gt; <a href="http://lists.blender.org/mailman/listinfo/bf-taskforce25" target="_blank">http://lists.blender.org/mailman/listinfo/bf-taskforce25</a><br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
</div></div>--<br>
<font color="#888888">- Campbell<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
Bf-taskforce25 mailing list<br>
<a href="mailto:Bf-taskforce25@blender.org">Bf-taskforce25@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/bf-taskforce25" target="_blank">http://lists.blender.org/mailman/listinfo/bf-taskforce25</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Hamed Zaghaghi,<br>MSc. Student of Algorithms and Computation,<br>Engineering Science Department, University of Tehran<br>