).setRightUrl(
    x3dpsail.MFString([
        "../resources/images/all_probes/stpeters_cross/stpeters_right.png",
        "https://coderextreme.net/X3DJSONLD/images/all_probes/stpeters_cross/stpeters_right.png"
    ])
).setTopUrl(
    x3dpsail.MFString([
        "../resources/images/all_probes/stpeters_cross/stpeters_top.png",
        "https://coderextreme.net/X3DJSONLD/images/all_probes/stpeters_cross/stpeters_top.png"
    ]))).addChild(
        x3dpsail.Group().addChild(x3dpsail.ExternProtoDeclare().setName(
            x3dpsail.SFString("FlowerProto")).setUrl(
                x3dpsail.MFString(
                    ["../data/flowerproto.json#FlowerProto"])).addField(
                        x3dpsail.field().setName(
                            x3dpsail.SFString("vertex")).setAccessType(
                                x3dpsail.SFString("inputOutput")).setType(
                                    x3dpsail.SFString("MFString"))
                    ).addField(x3dpsail.field().setName(
                        x3dpsail.SFString("fragment")).setAccessType(
                            x3dpsail.SFString("inputOutput")).setType(
                                x3dpsail.SFString("MFString")))).
        addChild(x3dpsail.ProtoDeclare().setName(
            x3dpsail.SFString("flower")).setProtoBody(
                x3dpsail.ProtoBody().addChild(x3dpsail.Group().addChild(
                    x3dpsail.ProtoInstance().setName(
                        x3dpsail.SFString("FlowerProto")
                    ).addFieldValue(x3dpsail.fieldValue().setName(
                        x3dpsail.SFString("vertex")).setValue(
                            x3dpsail.SFString(
                                "\"../shaders/x3dom_flowers_chromatic.vs\"")
                        )).addFieldValue(x3dpsail.fieldValue().setName(
Beispiel #2
0
 setScene(x3dpsail.Scene().addChild(x3dpsail.ExternProtoDeclare(
 ).setName(x3dpsail.SFString("ViewPositionOrientation")).setUrl(
     x3dpsail.MFString([
         "../../Savage/Tools/Authoring/ViewPositionOrientationPrototype.x3d#ViewPositionOrientation",
         "https://savage.nps.edu/Savage/Tools/Authoring/ViewPositionOrientationPrototype.x3d#ViewPositionOrientation",
         "../../Savage/Tools/Authoring/ViewPositionOrientationPrototype.wrl#ViewPositionOrientation",
         "https://savage.nps.edu/Savage/Tools/Authoring/ViewPositionOrientationPrototype.wrl#ViewPositionOrientation"
     ])
 ).addField(
     x3dpsail.field().setName(x3dpsail.SFString("enabled"))
     .setAccessType(x3dpsail.SFString("inputOutput")
                    ).setType(x3dpsail.SFString("SFBool"))
 ).addField(x3dpsail.field().setName(x3dpsail.SFString(
     "traceEnabled"
 )).setAccessType(x3dpsail.SFString(
     "initializeOnly"
 )).setType(x3dpsail.SFString(
     "SFBool"
 ))).addField(x3dpsail.field().setName(x3dpsail.SFString(
     "set_traceEnabled"
 )).setAccessType(x3dpsail.SFString(
     "inputOnly"
 )).setType(x3dpsail.SFString(
     "SFBool"
 ))).addField(x3dpsail.field().setName(x3dpsail.SFString(
     "position_changed"
 )).setAccessType(x3dpsail.SFString(
     "outputOnly"
 )).setType(x3dpsail.SFString(
     "SFVec3f"
 ))).addField(
     x3dpsail
     .field()
     .setName(x3dpsail.SFString("orientation_changed"))
     .setAccessType(x3dpsail.SFString("outputOnly"))
     .setType(x3dpsail.SFString("SFRotation"))
 ).addField(
     x3dpsail
     .field()
     .setName(x3dpsail.SFString("outputViewpointString"))
     .setAccessType(x3dpsail.SFString("outputOnly"))
     .setType(x3dpsail.SFString("MFString"))
 )).addChild(x3dpsail.ProtoDeclare().setName(
Beispiel #3
0
Background9.setLeftUrl([
    "../resources/images/all_probes/stpeters_cross/stpeters_left.png",
    "https://coderextreme.net/X3DJSONLD/images/all_probes/stpeters_cross/stpeters_left.png"
])
Background9.setRightUrl([
    "../resources/images/all_probes/stpeters_cross/stpeters_right.png",
    "https://coderextreme.net/X3DJSONLD/images/all_probes/stpeters_cross/stpeters_right.png"
])
Background9.setTopUrl([
    "../resources/images/all_probes/stpeters_cross/stpeters_top.png",
    "https://coderextreme.net/X3DJSONLD/images/all_probes/stpeters_cross/stpeters_top.png"
])

Scene7.addChildren(Background9)
Group10 = x3dpsail.Group()
ExternProtoDeclare11 = x3dpsail.ExternProtoDeclare()
ExternProtoDeclare11.setName("FlowerProto")
ExternProtoDeclare11.setUrl(["../data/flowerproto.json#FlowerProto"])
field12 = x3dpsail.field()
field12.setName("vertex")
field12.setAccessType("inputOutput")
field12.setType("MFString")

ExternProtoDeclare11.addField(field12)
field13 = x3dpsail.field()
field13.setName("fragment")
field13.setAccessType("inputOutput")
field13.setType("MFString")

ExternProtoDeclare11.addField(field13)
 .addChild(x3dpsail.ExternProtoDeclare(
 ).setName(x3dpsail.SFString("HeadsUpDisplay")).setAppinfo(
     x3dpsail.SFString(
         "Heads-up display (HUD) keeps child geometry aligned on screen in a consistent location"
     )
 ).setUrl(
     x3dpsail.MFString([
         "HeadsUpDisplayPrototype.x3d#HeadsUpDisplay",
         "http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter14Prototypes/HeadsUpDisplayPrototype.x3d#HeadsUpDisplay",
         "HeadsUpDisplayPrototype.wrl#HeadsUpDisplay",
         "http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter14Prototypes/HeadsUpDisplayPrototype.wrl#HeadsUpDisplay"
     ])
 ).addField(x3dpsail.field().setName(
     x3dpsail.SFString("screenOffset")
 ).setAccessType(x3dpsail.SFString(
     "inputOutput"
 )).setAppinfo(
     x3dpsail
     .SFString(
         "offset position for HUD relative to current view location, default 0 0 -5"
     )
 ).setType(x3dpsail.SFString("SFVec3f"))).addField(x3dpsail.field(
 ).setName(x3dpsail.SFString("children")).setAccessType(
     x3dpsail.SFString("inputOutput")
 ).setAppinfo(x3dpsail.SFString(
     "X3D content positioned at HUD offset"
 )).setType(x3dpsail.SFString(
     "MFNode"
 ))).addField(x3dpsail.field().setName(
     x3dpsail
     .SFString("position_changed")
 ).setAccessType(x3dpsail.SFString(
     "outputOnly"
 )).setAppinfo(
     x3dpsail
     .SFString(
         "HUD position update (in world coordinates) relative to original location"
     )).setType(x3dpsail.SFString("SFVec3f"))).addField(x3dpsail.field(
     ).setName(x3dpsail.SFString("orientation_changed")).setAccessType(
         x3dpsail.SFString("outputOnly")).setAppinfo(
             x3dpsail.SFString(
                 "HUD orientation update relative to original location")
         ).setType(x3dpsail.SFString("SFRotation")))).