Issue with the Exploring Nodes Pattern Tutorial

Jamari's Avatar

Jamari

28 Sep, 2017 09:50 PM

I have been doing the tutorials for nodebox, but when I try to do the pattern tutorial, the snowflake that I have created is not tessellating properly. It is crowding on each other instead of having space. Also, how does the scale function work in nodebox? The tutorials are set to 0, but mine are set to 100 by default. When it is at 100 by default it looks like the tutorial, but when I put it to 0 on both axis, it looks very strange. I have attached a pdf of it to show you my results.

  1. Support Staff 1 Posted by john on 28 Sep, 2017 10:48 PM

    john's Avatar

    It's hard to diagnose your problem without seeing your network. Could you please reply and attach your .ndbx file?

  2. 2 Posted by Jamari on 28 Sep, 2017 11:09 PM

    Jamari 's Avatar

    I am trying to attach the nodebox file but it is saying( I have also tried zipping the file but it is not working):

    Assets is invalid
    There was a problem with your uploaded files.

    Try zipping the problem files - our security system automatically blocks certain types of attachments and files. Unfortunately security is always a tradeoff with convenience.

        Pattern.ndbx (3.39 KB)
            has contents that are not what they are reported to be

  3. Support Staff 3 Posted by john on 28 Sep, 2017 11:41 PM

    john's Avatar

    Desperate times call for desperate measures.

    I suggest you open your .ndbx file in a text editor and copy/paste the entire text in your comment. I can reconstruct it from that.

  4. 4 Posted by Jamari on 29 Sep, 2017 12:09 AM

    Jamari 's Avatar

    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <ndbx formatVersion="21" type="file" uuid="29edf15e-d529-4e85-be5d-e81f411630d5">
        <property name="canvasHeight" value="1000"/>
        <property name="canvasWidth" value="1000"/>
        <property name="canvasX" value="0"/>
        <property name="canvasY" value="0"/>
        <node name="root" prototype="core.network" renderedChild="copy2">
            <node name="align1" position="3.00,4.00" prototype="corevector.align">
                <port name="halign" type="string" value="left"/>
                <port name="valign" type="string" value="bottom"/>
            </node>
            <node name="colorize1" position="3.00,3.00" prototype="corevector.colorize">
                <port name="fill" type="color" value="#e9bc46ff"/>
                <port name="stroke" type="color" value="#bc98edff"/>
                <port name="strokeWidth" type="float" value="1.0"/>
            </node>
            <node name="compound1" position="3.00,2.00" prototype="corevector.compound">
                <port name="function" type="string" value="subtracted"/>
            </node>
            <node name="copy1" position="3.00,6.00" prototype="corevector.copy">
                <port name="copies" type="int" value="6"/>
                <port name="rotate" type="float" value="60.0"/>
            </node>
            <node name="copy2" position="3.00,10.00" prototype="corevector.copy">
                <port name="copies" type="int" value="10"/>
                <port name="translate" type="point" value="-50.00,90.00"/>
            </node>
            <node name="grid1" position="8.00,8.00" prototype="corevector.grid">
                <port name="rows" type="int" value="1"/>
            </node>
            <node name="group1" position="3.00,7.00" prototype="corevector.group"/>
            <node name="polygon1" position="1.00,0.00" prototype="corevector.polygon">
                <port name="radius" type="float" value="20.0"/>
                <port name="sides" type="int" value="5"/>
                <port name="align" type="boolean" value="true"/>
            </node>
            <node name="polygon2" position="5.00,0.00" prototype="corevector.polygon">
                <port name="radius" type="float" value="20.0"/>
                <port name="align" type="boolean" value="true"/>
            </node>
            <node name="reflect1" position="3.00,5.00" prototype="corevector.reflect">
                <port name="angle" type="float" value="90.0"/>
            </node>
            <node name="translate1" position="3.00,9.00" prototype="corevector.translate"/>
            <node name="wiggle1" position="1.00,1.00" prototype="corevector.wiggle">
                <port name="offset" type="point" value="30.00,30.00"/>
            </node>
            <node name="wiggle2" position="5.00,1.00" prototype="corevector.wiggle">
                <port name="seed" type="int" value="1"/>
            </node>
            <conn input="wiggle1.shape" output="polygon1"/>
            <conn input="wiggle2.shape" output="polygon2"/>
            <conn input="compound1.shape1" output="wiggle1"/>
            <conn input="compound1.shape2" output="wiggle2"/>
            <conn input="translate1.shape" output="group1"/>
            <conn input="colorize1.shape" output="compound1"/>
            <conn input="align1.shape" output="colorize1"/>
            <conn input="reflect1.shape" output="align1"/>
            <conn input="copy1.shape" output="reflect1"/>
            <conn input="group1.shapes" output="copy1"/>
            <conn input="copy2.shape" output="translate1"/>
            <conn input="translate1.translate" output="grid1"/>
        </node>
    </ndbx>

    Here it is from the text editor.

  5. Support Staff 5 Posted by john on 29 Sep, 2017 01:09 AM

    john's Avatar

    Jamari,

    Thanks. That worked perfectly.

    You did everything right. What the tutorial neglected to tell you was that, for the grid node, in addition to setting Columns to 10 and Rows to 1, you also have to set Width to 1000.

    Give that a try and see what happens. You may also have to make a slight adjustment in the copy2 node at the bottom. I set Translate to -56, 95 and that worked perfectly.

    If anyone on the NodeBox staff is listening, you guys really should update the instructions for that tutorial. Other people have run into similar problems with it. The pattern example also requires a group node which appears in one of the screenshots but not in the directions.

    Jamari, please let me know if that solved your problem and if you have any other questions.

    John

  6. Support Staff 6 Posted by lucasnijs on 29 Sep, 2017 11:56 PM

    lucasnijs's Avatar

    If somebody can give us some time...
    Maybe you John, if we give you access...?
    Just let us know (and do not feel obliged),

    regards,

    Lucas

  7. 7 Posted by Jamari on 30 Sep, 2017 04:08 PM

    Jamari's Avatar

    It worked John. Thank you so much. I have been trying to get into generative art, so I was looking for a real-time graphics editor. The only coding language that I know is Python, so that is why I chose nodebox because openFrameworks only uses C++.

  8. Support Staff 8 Posted by john on 30 Sep, 2017 11:55 PM

    john's Avatar

    Lucas,

    Sure, I would be willing to volunteer. I think you have my contact info.

    John

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • pattern.pdf 117 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

16 Oct, 2017 11:21 PM
16 Oct, 2017 08:48 AM
15 Oct, 2017 11:41 PM
15 Oct, 2017 10:02 PM
13 Oct, 2017 08:52 PM

 

02 Oct, 2017 09:29 AM
02 Oct, 2017 02:10 AM
30 Sep, 2017 11:55 PM
29 Sep, 2017 11:28 AM
28 Sep, 2017 07:41 AM
27 Sep, 2017 09:11 PM