create3000 / cobweb

Cobweb is now X_ITE
https://github.com/create3000/x_ite
Other
10 stars 5 forks source link

I think this file should show 27 green cubes #7

Closed coderextreme closed 7 years ago

coderextreme commented 8 years ago
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "http://www.web3d.org/specifications/x3d-3.3.dtd">
<X3D profile="Immersive" version="3.3" xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance" xsd:noNamespaceSchemaLocation="http://www.web3d.org/specifications/x3d-3.3.xsd">
    <Scene>
        <NavigationInfo type='"ANY" "WALK" "EXAMINE" "FLY" "LOOKAT"'/>
        <Viewpoint description="Rubiks Cube on Fire" position="0 0 12"/>
        <ProtoDeclare name="anyShape">
            <ProtoInterface>
                <field name="xtranslation" accessType="inputOutput" type="SFVec3f" value="0.0 0.0 0.0"/>
                <field name="myShape" accessType="inputOutput" type="MFNode">
                    <Shape>
                        <Sphere/>
                        <Appearance>
                            <Material diffuseColor="1 1 1"/>
                        </Appearance>
                    </Shape>
                </field>
            </ProtoInterface>
            <ProtoBody>
                <Transform translation="0 0 0">
                    <IS>
                        <connect nodeField="translation" protoField="xtranslation"/>
                        <connect nodeField="children" protoField="myShape"/>
                    </IS>
                </Transform>
            </ProtoBody>
        </ProtoDeclare>
        <ProtoDeclare name="three">
            <ProtoInterface>
                <field name="ytranslation" accessType="inputOutput" type="SFVec3f" value="0.0 0.0 0.0"/>
                <field name="myShape" accessType="inputOutput" type="MFNode">
                    <Shape>
                        <Sphere/>
                        <Appearance>
                            <Material diffuseColor="1 1 1"/>
                        </Appearance>
                    </Shape>
                </field>
            </ProtoInterface>
            <ProtoBody>
                <Transform translation="0 0 0">
                    <IS>
                        <connect nodeField="translation" protoField="ytranslation"/>
                    </IS>
                    <ProtoInstance name="anyShape">
                        <fieldValue name="xtranslation" value="0 0 0"/>
                        <IS>
                            <connect nodeField="myShape" protoField="myShape"/>
                        </IS>
                    </ProtoInstance>
                    <ProtoInstance name="anyShape">                       
                        <fieldValue name="xtranslation" value="2 0 0"/>
                        <IS>
                            <connect nodeField="myShape" protoField="myShape"/>
                        </IS>
                    </ProtoInstance>
                    <ProtoInstance name="anyShape">                       
                        <fieldValue name="xtranslation" value="-2 0 0"/>
                        <IS>
                            <connect nodeField="myShape" protoField="myShape"/>
                        </IS>
                    </ProtoInstance>
                </Transform>
            </ProtoBody>
        </ProtoDeclare>
        <ProtoDeclare name="nine">
            <ProtoInterface>
                <field name="ztranslation" accessType="inputOutput" type="SFVec3f" value="0.0 0.0 0.0"/>
                <field name="myShape" accessType="inputOutput" type="MFNode">
                    <Shape>
                        <Sphere/>
                        <Appearance>
                            <Material diffuseColor="1 1 1"/>
                        </Appearance>
                    </Shape>
                </field>
            </ProtoInterface>
            <ProtoBody>
                <Transform translation="0 0 0">
                    <IS>
                        <connect nodeField="translation" protoField="ztranslation"/>
                    </IS>
                    <ProtoInstance name="three">                       
                        <fieldValue name="ytranslation" value="0 0 0"/>
                        <IS>
                            <connect nodeField="myShape" protoField="myShape"/>
                        </IS>
                    </ProtoInstance>
                    <ProtoInstance name="three">
                        <fieldValue name="ytranslation" value="0 2 0"/>
                        <IS>
                            <connect nodeField="myShape" protoField="myShape"/>
                        </IS>
                    </ProtoInstance>
                    <ProtoInstance name="three">
                        <fieldValue name="ytranslation" value="0 -2 0"/>
                        <IS>
                            <connect nodeField="myShape" protoField="myShape"/>
                        </IS>
                    </ProtoInstance>
                </Transform>
            </ProtoBody>
        </ProtoDeclare>
        <ProtoDeclare name="twentyseven">
            <ProtoInterface>
                <field name="ttranslation" accessType="inputOutput" type="SFVec3f" value="0.0 0.0 0.0"/>
                <field name="myShape" accessType="inputOutput" type="MFNode">
                    <Shape>
                        <Sphere/>
                        <Appearance>
                            <Material diffuseColor="1 1 1"/>
                        </Appearance>
                    </Shape>
                </field>
            </ProtoInterface>
            <ProtoBody>
                <Transform translation="0 0 0">
                    <IS>
                        <connect nodeField="translation" protoField="ttranslation"/>
                    </IS>
                    <ProtoInstance name="nine">
                        <fieldValue name="ztranslation" value="0 0 0"/>
                        <IS>
                            <connect nodeField="myShape" protoField="myShape"/>
                        </IS>
                    </ProtoInstance>
                    <ProtoInstance name="nine">                     
                        <fieldValue name="ztranslation" value="0 0 2"/>
                        <IS>
                            <connect nodeField="myShape" protoField="myShape"/>
                        </IS>
                    </ProtoInstance>
                    <ProtoInstance name="nine">
                        <fieldValue name="ztranslation" value="0 0 -2"/>
                        <IS>
                            <connect nodeField="myShape" protoField="myShape"/>
                        </IS>
                    </ProtoInstance>
                </Transform>
            </ProtoBody>
        </ProtoDeclare>
        <ProtoInstance name="twentyseven">
            <fieldValue name="ttranslation" value="0 0 0"/>
            <fieldValue name="myShape">
                <Shape>
                    <Box size="1 1 1"/>
                    <Appearance>
                        <Material diffuseColor="0 1 0"/>
                    </Appearance>
                </Shape>
            </fieldValue>
        </ProtoInstance>
    </Scene>
</X3D>
coderextreme commented 8 years ago

I'll email you the file

create3000 commented 8 years ago

Have you emailed the file?

create3000 commented 8 years ago

Thank you for reporting this bug. Fix committed!