{"id":208,"date":"2011-03-30T23:36:21","date_gmt":"2011-03-30T21:36:21","guid":{"rendered":"http:\/\/www.ancor.ch\/schoebey\/?p=208"},"modified":"2011-03-30T23:37:12","modified_gmt":"2011-03-30T21:37:12","slug":"notes-about-nodes","status":"publish","type":"post","link":"https:\/\/www.ancor.ch\/schoebey\/?p=208","title":{"rendered":"notes about nodes"},"content":{"rendered":"<p>a new node system will make scripting easier.<\/p>\n<p>&nbsp;<\/p>\n<p>Nodes can be of type action, trigger or object and have different in- and output connectors.<\/p>\n<ul>\n<li>object nodes show their connections to their triggers<\/li>\n<li>triggers and actions show connections to their actions<\/li>\n<li>property window shows up upon double clicking a node (same window as before)<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>a connecting line between two connectors only visualizes that action A has a link to action B. How that link works is up to the actions in question. One action might modify another action&#8217;s properties directly (&#8216;push-mode&#8217;) while another action reads a property of a connected action (&#8216;pull-mode&#8217;). Both cases would simply display a line or curve between the two connectors.<\/p>\n<p>a first attempt at rendering nodes inside a clipped area:<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/www.ancor.ch\/schoebey\/wp-content\/uploads\/2011\/03\/clipboard08.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-211\" title=\"collapsible nodes, complete with splines between them\" src=\"http:\/\/www.ancor.ch\/schoebey\/wp-content\/uploads\/2011\/03\/clipboard08-300x168.png\" alt=\"\" width=\"300\" height=\"168\" srcset=\"https:\/\/www.ancor.ch\/schoebey\/wp-content\/uploads\/2011\/03\/clipboard08-300x168.png 300w, https:\/\/www.ancor.ch\/schoebey\/wp-content\/uploads\/2011\/03\/clipboard08-1024x576.png 1024w, https:\/\/www.ancor.ch\/schoebey\/wp-content\/uploads\/2011\/03\/clipboard08.png 1280w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>along with this change, the base action might be expanded:<\/p>\n<p>each action might get the ability to trigger a remote action, just like the &#8216;execute&#8217;-action did before.<\/p>\n<p>This works exactly like a follow-up action, except that the executed action can be a remote action and doesn&#8217;t have to be an immediate child.<\/p>\n<p><!--more--><\/p>\n<p>the big issue that needs to be resolved before \u00c2\u00a0I can start working on this:<\/p>\n<p>rendering clipped gui-areas.<\/p>\n<p>The node-view needs to be able to display partially occluded areas at the borders of the containing window (so that panning and scaling can be enabled) .<\/p>\n<p>The easiest way to do that would be to simply render the area into an offscreen-buffer, then render the (clipped) buffer onto the window.<\/p>\n<p>I&#8217;m not entirely sure how I can achieve this since offscreen-buffers are only supported up to a certain size. If the buffer gets too large, we won&#8217;t be able to fetch it and thus lose the ability to display anything.<\/p>\n<p>Another option would be to clip manually. \u00c2\u00a0This option is not recommended since it would be a general pain in the butt to apply clipping to gui rects (adapting tex coords&#8230;) and lines&amp;curves (finding intersection points with viewport can be tough when it comes to curved connectors&#8230;)<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>a new node system will make scripting easier. &nbsp; Nodes can be of type action, trigger or object and have different in- and output connectors. object nodes show their connections to their triggers triggers and actions show connections to their actions property window shows up upon double clicking a node (same window as before) &nbsp; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,5,4],"tags":[],"class_list":["post-208","post","type-post","status-publish","format-standard","hentry","category-code","category-design","category-p407"],"_links":{"self":[{"href":"https:\/\/www.ancor.ch\/schoebey\/index.php?rest_route=\/wp\/v2\/posts\/208","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ancor.ch\/schoebey\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ancor.ch\/schoebey\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ancor.ch\/schoebey\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ancor.ch\/schoebey\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=208"}],"version-history":[{"count":3,"href":"https:\/\/www.ancor.ch\/schoebey\/index.php?rest_route=\/wp\/v2\/posts\/208\/revisions"}],"predecessor-version":[{"id":213,"href":"https:\/\/www.ancor.ch\/schoebey\/index.php?rest_route=\/wp\/v2\/posts\/208\/revisions\/213"}],"wp:attachment":[{"href":"https:\/\/www.ancor.ch\/schoebey\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ancor.ch\/schoebey\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=208"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ancor.ch\/schoebey\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}