Exemplo n.º 1
0
                .setTop(x3dpsail.ImageTexture().setDEF(x3dpsail.SFString("topShader")).setUrl(x3dpsail.MFString(["../resources/images/all_probes/beach_cross/beach_top.png","https://coderextreme.net/X3DJSONLD/images/all_probes/beach_cross/beach_top.png"]))))
              .addShaders(x3dpsail.ComposedShader().setDEF(x3dpsail.SFString("x3dom")).setLanguage(x3dpsail.SFString("GLSL"))
                .addField(x3dpsail.field().setName(x3dpsail.SFString("cube")).setType(x3dpsail.SFString("SFInt32")).setAccessType(x3dpsail.SFString("inputOutput")).setValue(x3dpsail.SFString("0")))
                .addField(x3dpsail.field().setName(x3dpsail.SFString("chromaticDispertion")).setAccessType(x3dpsail.SFString("initializeOnly")).setType(x3dpsail.SFString("SFVec3f")).setValue(x3dpsail.SFString("0.98 1 1.033")))
                .addField(x3dpsail.field().setName(x3dpsail.SFString("bias")).setType(x3dpsail.SFString("SFFloat")).setAccessType(x3dpsail.SFString("inputOutput")).setValue(x3dpsail.SFString("0.5")))
                .addField(x3dpsail.field().setName(x3dpsail.SFString("scale")).setType(x3dpsail.SFString("SFFloat")).setAccessType(x3dpsail.SFString("inputOutput")).setValue(x3dpsail.SFString("0.5")))
                .addField(x3dpsail.field().setName(x3dpsail.SFString("power")).setType(x3dpsail.SFString("SFFloat")).setAccessType(x3dpsail.SFString("inputOutput")).setValue(x3dpsail.SFString("2")))
                .addField(x3dpsail.field().setName(x3dpsail.SFString("a")).setType(x3dpsail.SFString("SFFloat")).setAccessType(x3dpsail.SFString("inputOutput")).setValue(x3dpsail.SFString("10")))
                .addField(x3dpsail.field().setName(x3dpsail.SFString("b")).setType(x3dpsail.SFString("SFFloat")).setAccessType(x3dpsail.SFString("inputOutput")).setValue(x3dpsail.SFString("1")))
                .addField(x3dpsail.field().setName(x3dpsail.SFString("c")).setType(x3dpsail.SFString("SFFloat")).setAccessType(x3dpsail.SFString("inputOutput")).setValue(x3dpsail.SFString("20")))
                .addField(x3dpsail.field().setName(x3dpsail.SFString("d")).setType(x3dpsail.SFString("SFFloat")).setAccessType(x3dpsail.SFString("inputOutput")).setValue(x3dpsail.SFString("20")))
                .addField(x3dpsail.field().setName(x3dpsail.SFString("tdelta")).setType(x3dpsail.SFString("SFFloat")).setAccessType(x3dpsail.SFString("inputOutput")).setValue(x3dpsail.SFString("0")))
                .addField(x3dpsail.field().setName(x3dpsail.SFString("pdelta")).setType(x3dpsail.SFString("SFFloat")).setAccessType(x3dpsail.SFString("inputOutput")).setValue(x3dpsail.SFString("0")))
                #field name='cube' type='SFNode' accessType=\"inputOutput\"> <ComposedCubeMapTexture USE=\"texture\"/> </field

                .addParts(x3dpsail.ShaderPart().setUrl(x3dpsail.MFString(["../shaders/x3dom_flowers_chromatic.vs","https://coderextreme.net/X3DJSONLD/shaders/x3dom_flowers_chromatic.vs"])).setType(x3dpsail.SFString("VERTEX")))
                .addParts(x3dpsail.ShaderPart().setUrl(x3dpsail.MFString(["../shaders/pc_bubbles.fs","https://coderextreme.net/X3DJSONLD/shaders/common.fs"])).setType(x3dpsail.SFString("FRAGMENT"))))
              .addShaders(x3dpsail.ComposedShader().setDEF(x3dpsail.SFString("cobweb")).setLanguage(x3dpsail.SFString("GLSL"))
                .addField(x3dpsail.field().setName(x3dpsail.SFString("cube")).setType(x3dpsail.SFString("SFNode")).setAccessType(x3dpsail.SFString("inputOutput"))
                  .addChild(x3dpsail.ComposedCubeMapTexture().setUSE(x3dpsail.SFString("texture"))))
                .addField(x3dpsail.field().setName(x3dpsail.SFString("chromaticDispertion")).setAccessType(x3dpsail.SFString("initializeOnly")).setType(x3dpsail.SFString("SFVec3f")).setValue(x3dpsail.SFString("0.98 1 1.033")))
                .addField(x3dpsail.field().setName(x3dpsail.SFString("bias")).setType(x3dpsail.SFString("SFFloat")).setAccessType(x3dpsail.SFString("inputOnly")).setValue(x3dpsail.SFString("0.5")))
                .addField(x3dpsail.field().setName(x3dpsail.SFString("scale")).setType(x3dpsail.SFString("SFFloat")).setAccessType(x3dpsail.SFString("inputOnly")).setValue(x3dpsail.SFString("0.5")))
                .addField(x3dpsail.field().setName(x3dpsail.SFString("power")).setType(x3dpsail.SFString("SFFloat")).setAccessType(x3dpsail.SFString("inputOnly")).setValue(x3dpsail.SFString("2")))
                .addField(x3dpsail.field().setName(x3dpsail.SFString("a")).setType(x3dpsail.SFString("SFFloat")).setAccessType(x3dpsail.SFString("inputOnly")).setValue(x3dpsail.SFString("10")))
                .addField(x3dpsail.field().setName(x3dpsail.SFString("b")).setType(x3dpsail.SFString("SFFloat")).setAccessType(x3dpsail.SFString("inputOnly")).setValue(x3dpsail.SFString("1")))
                .addField(x3dpsail.field().setName(x3dpsail.SFString("c")).setType(x3dpsail.SFString("SFFloat")).setAccessType(x3dpsail.SFString("inputOnly")).setValue(x3dpsail.SFString("20")))
                .addField(x3dpsail.field().setName(x3dpsail.SFString("d")).setType(x3dpsail.SFString("SFFloat")).setAccessType(x3dpsail.SFString("inputOnly")).setValue(x3dpsail.SFString("20")))
                .addField(x3dpsail.field().setName(x3dpsail.SFString("tdelta")).setType(x3dpsail.SFString("SFFloat")).setAccessType(x3dpsail.SFString("inputOnly")).setValue(x3dpsail.SFString("0")))
                .addField(x3dpsail.field().setName(x3dpsail.SFString("pdelta")).setType(x3dpsail.SFString("SFFloat")).setAccessType(x3dpsail.SFString("inputOnly")).setValue(x3dpsail.SFString("0")))
                .addParts(x3dpsail.ShaderPart().setUrl(x3dpsail.MFString(["../shaders/cobweb_flowers_chromatic.vs","https://coderextreme.net/X3DJSONLD/shaders/cobweb_flowers_chromatic.vs"])).setType(x3dpsail.SFString("VERTEX")))
Exemplo n.º 2
0
field36 = x3dpsail.field()
field36.setName("tdelta")
field36.setType("SFFloat")
field36.setAccessType("inputOutput")
field36.setValue("0.5")

ComposedShader26.addField(field36)
field37 = x3dpsail.field()
field37.setName("pdelta")
field37.setType("SFFloat")
field37.setAccessType("inputOutput")
field37.setValue("0.5")

ComposedShader26.addField(field37)
#<field name='cube' type='SFNode' accessType=\"inputOutput\"> <ComposedCubeMapTexture USE=\"texture\"/> </field>
ShaderPart38 = x3dpsail.ShaderPart()
ShaderPart38.setType("VERTEX")
IS39 = x3dpsail.IS()
connect40 = x3dpsail.connect()
connect40.setNodeField("url")
connect40.setProtoField("vertex")

IS39.addConnect(connect40)

ShaderPart38.setIS(IS39)

ComposedShader26.addParts(ShaderPart38)
ShaderPart41 = x3dpsail.ShaderPart()
ShaderPart41.setType("FRAGMENT")
IS42 = x3dpsail.IS()
connect43 = x3dpsail.connect()
Exemplo n.º 3
0
ComposedShader25.addField(field29)
field30 = x3dpsail.field()
field30.setName("scale")
field30.setAccessType("inputOutput")
field30.setType("SFFloat")
field30.setValue("0.5")

ComposedShader25.addField(field30)
field31 = x3dpsail.field()
field31.setName("power")
field31.setAccessType("inputOutput")
field31.setType("SFFloat")
field31.setValue("2")

ComposedShader25.addField(field31)
ShaderPart32 = x3dpsail.ShaderPart()
ShaderPart32.setUrl([
    "../shaders/x3dom.vs",
    "https://coderextreme.net/X3DJSONLD/shaders/x3dom.vs"
])
ShaderPart32.setType("VERTEX")

ComposedShader25.addParts(ShaderPart32)
ShaderPart33 = x3dpsail.ShaderPart()
ShaderPart33.setDEF("common")
ShaderPart33.setUrl([
    "../shaders/common.fs",
    "https://coderextreme.net/X3DJSONLD/shaders/common.fs"
])
ShaderPart33.setType("FRAGMENT")
Exemplo n.º 4
0
ComposedShader25.addField(field30)
field31 = x3dpsail.field()
field31.setName("scale")
field31.setType("SFFloat")
field31.setAccessType("inputOutput")
field31.setValue("0.5")

ComposedShader25.addField(field31)
field32 = x3dpsail.field()
field32.setName("power")
field32.setType("SFFloat")
field32.setAccessType("inputOutput")
field32.setValue("2")

ComposedShader25.addField(field32)
ShaderPart33 = x3dpsail.ShaderPart()
ShaderPart33.setUrl([
    "../shaders/common.vs",
    "https://coderextreme.net/X3DJSONLD/shaders/common.vs"
])
ShaderPart33.setType("VERTEX")

ComposedShader25.addParts(ShaderPart33)
ShaderPart34 = x3dpsail.ShaderPart()
ShaderPart34.setUrl([
    "../shaders/gl_flowers_chromatic.fs",
    "https://coderextreme.net/X3DJSONLD/shaders/gl_flowers_chromatic.fs"
])
ShaderPart34.setType("FRAGMENT")

ComposedShader25.addParts(ShaderPart34)
Exemplo n.º 5
0
ComposedShader23.addField(field26)
field27 = x3dpsail.field()
field27.setName("scale")
field27.setAccessType("inputOutput")
field27.setType("SFFloat")
field27.setValue("0.5")

ComposedShader23.addField(field27)
field28 = x3dpsail.field()
field28.setName("power")
field28.setAccessType("inputOutput")
field28.setType("SFFloat")
field28.setValue("2")

ComposedShader23.addField(field28)
ShaderPart29 = x3dpsail.ShaderPart()
ShaderPart29.setUrl([
    "../shaders/cobweb.vs",
    "https://coderextreme.net/X3DJSONLD/shaders/cobweb.vs"
])
ShaderPart29.setType("VERTEX")

ComposedShader23.addParts(ShaderPart29)
ShaderPart30 = x3dpsail.ShaderPart()
ShaderPart30.setUrl(
    ["../shaders/mix.fs", "https://coderextreme.net/X3DJSONLD/shaders/mix.fs"])
ShaderPart30.setType("FRAGMENT")

ComposedShader23.addParts(ShaderPart30)

Appearance14.addShaders(ComposedShader23)
Exemplo n.º 6
0
              .setTexture(x3dpsail.ComposedCubeMapTexture()
                .setBack(x3dpsail.ImageTexture().setDEF(x3dpsail.SFString("backShader")).setUrl(x3dpsail.MFString(["../resources/images/all_probes/beach_cross/beach_back.png","https://coderextreme.net/images/all_probes/beach_cross/beach_back.png"])))
                .setBottom(x3dpsail.ImageTexture().setDEF(x3dpsail.SFString("bottomShader")).setUrl(x3dpsail.MFString(["../resources/images/all_probes/beach_cross/beach_bottom.png","https://coderextreme.net/images/all_probes/beach_cross/beach_bottom.png"])))
                .setFront(x3dpsail.ImageTexture().setDEF(x3dpsail.SFString("frontShader")).setUrl(x3dpsail.MFString(["../resources/images/all_probes/beach_cross/beach_front.png","https://coderextreme.net/images/all_probes/beach_cross/beach_front.png"])))
                .setLeft(x3dpsail.ImageTexture().setDEF(x3dpsail.SFString("leftShader")).setUrl(x3dpsail.MFString(["../resources/images/all_probes/beach_cross/beach_left.png","https://coderextreme.net/images/all_probes/beach_cross/beach_left.png"])))
                .setRight(x3dpsail.ImageTexture().setDEF(x3dpsail.SFString("rightShader")).setUrl(x3dpsail.MFString(["../resources/images/all_probes/beach_cross/beach_right.png","https://coderextreme.net/images/all_probes/beach_cross/beach_right.png"])))
                .setTop(x3dpsail.ImageTexture().setDEF(x3dpsail.SFString("topShader")).setUrl(x3dpsail.MFString(["../resources/images/all_probes/beach_cross/beach_top.png","https://coderextreme.net/images/all_probes/beach_cross/beach_top.png"]))))
              .addShaders(x3dpsail.ComposedShader().setDEF(x3dpsail.SFString("cobweb")).setLanguage(x3dpsail.SFString("GLSL"))
                #http://hypertextbook.com/facts/2005/JustinChe.shtml

                .addField(x3dpsail.field().setName(x3dpsail.SFString("chromaticDispertion")).setAccessType(x3dpsail.SFString("inputOutput")).setType(x3dpsail.SFString("SFVec3f")).setValue(x3dpsail.SFString("0.98 1 1.033")))
                .addField(x3dpsail.field().setName(x3dpsail.SFString("cube")).setAccessType(x3dpsail.SFString("inputOutput")).setType(x3dpsail.SFString("SFInt32")).setValue(x3dpsail.SFString("0")))
                .addField(x3dpsail.field().setName(x3dpsail.SFString("bias")).setAccessType(x3dpsail.SFString("inputOutput")).setType(x3dpsail.SFString("SFFloat")).setValue(x3dpsail.SFString("0.5")))
                .addField(x3dpsail.field().setName(x3dpsail.SFString("scale")).setAccessType(x3dpsail.SFString("inputOutput")).setType(x3dpsail.SFString("SFFloat")).setValue(x3dpsail.SFString("0.5")))
                .addField(x3dpsail.field().setName(x3dpsail.SFString("power")).setAccessType(x3dpsail.SFString("inputOutput")).setType(x3dpsail.SFString("SFFloat")).setValue(x3dpsail.SFString("2")))
                .addParts(x3dpsail.ShaderPart().setUrl(x3dpsail.MFString(["../shaders/cobweb.vs","https://coderextreme.net/X3DJSONLD/shaders/cobweb.vs"])).setType(x3dpsail.SFString("VERTEX")))
                .addParts(x3dpsail.ShaderPart().setUrl(x3dpsail.MFString(["../shaders/mix.fs","https://coderextreme.net/X3DJSONLD/shaders/mix.fs"])).setType(x3dpsail.SFString("FRAGMENT"))))
              .addShaders(x3dpsail.ComposedShader().setDEF(x3dpsail.SFString("x3dom")).setLanguage(x3dpsail.SFString("GLSL"))
                #http://hypertextbook.com/facts/2005/JustinChe.shtml

                .addField(x3dpsail.field().setName(x3dpsail.SFString("chromaticDispertion")).setAccessType(x3dpsail.SFString("inputOutput")).setType(x3dpsail.SFString("SFVec3f")).setValue(x3dpsail.SFString("0.98 1 1.033")))
                .addField(x3dpsail.field().setName(x3dpsail.SFString("cube")).setAccessType(x3dpsail.SFString("inputOutput")).setType(x3dpsail.SFString("SFInt32")).setValue(x3dpsail.SFString("0")))
                .addField(x3dpsail.field().setName(x3dpsail.SFString("bias")).setAccessType(x3dpsail.SFString("inputOutput")).setType(x3dpsail.SFString("SFFloat")).setValue(x3dpsail.SFString("0.5")))
                .addField(x3dpsail.field().setName(x3dpsail.SFString("scale")).setAccessType(x3dpsail.SFString("inputOutput")).setType(x3dpsail.SFString("SFFloat")).setValue(x3dpsail.SFString("0.5")))
                .addField(x3dpsail.field().setName(x3dpsail.SFString("power")).setAccessType(x3dpsail.SFString("inputOutput")).setType(x3dpsail.SFString("SFFloat")).setValue(x3dpsail.SFString("2")))
                .addParts(x3dpsail.ShaderPart().setUrl(x3dpsail.MFString(["../shaders/x3dom.vs","https://coderextreme.net/X3DJSONLD/shaders/x3dom.vs"])).setType(x3dpsail.SFString("VERTEX")))
                .addParts(x3dpsail.ShaderPart().setUrl(x3dpsail.MFString(["../shaders/mix.fs","https://coderextreme.net/X3DJSONLD/shaders/mix.fs"])).setType(x3dpsail.SFString("FRAGMENT")))))
            .setGeometry(x3dpsail.Sphere().setRadius(x3dpsail.SFFloat(30))))
          .addChild(x3dpsail.Script().setDEF(x3dpsail.SFString("UrlSelector")).setDirectOutput(x3dpsail.SFBool(True))
            .addField(x3dpsail.field().setName(x3dpsail.SFString("frontUrls")).setType(x3dpsail.SFString("MFString")).setAccessType(x3dpsail.SFString("initializeOnly")).setValue(x3dpsail.SFString("\"../resources/images/all_probes/beach_cross/beach_front.png\" \"../resources/images/all_probes/building_cross/building_front.png\" \"../resources/images/all_probes/campus_cross/campus_front.png\" \"../resources/images/all_probes/galileo_cross/galileo_front.png\" \"../resources/images/all_probes/grace_cross/grace_front.png\" \"../resources/images/all_probes/kitchen_cross/kitchen_front.png\" \"../resources/images/all_probes/rnl_cross/rnl_front.png\" \"../resources/images/all_probes/stpeters_cross/stpeters_front.png\" \"../resources/images/all_probes/uffizi_cross/uffizi_front.png\"")))
            .addField(x3dpsail.field().setName(x3dpsail.SFString("backUrls")).setType(x3dpsail.SFString("MFString")).setAccessType(x3dpsail.SFString("initializeOnly")).setValue(x3dpsail.SFString("\"../resources/images/all_probes/beach_cross/beach_back.png\" \"../resources/images/all_probes/building_cross/building_back.png\" \"../resources/images/all_probes/campus_cross/campus_back.png\" \"../resources/images/all_probes/galileo_cross/galileo_back.png\" \"../resources/images/all_probes/grace_cross/grace_back.png\" \"../resources/images/all_probes/kitchen_cross/kitchen_back.png\" \"../resources/images/all_probes/rnl_cross/rnl_back.png\" \"../resources/images/all_probes/stpeters_cross/stpeters_back.png\" \"../resources/images/all_probes/uffizi_cross/uffizi_back.png\"")))
Exemplo n.º 7
0
                                 x3dpsail.SFString("inputOutput")).setType(
                                     x3dpsail.SFString("SFFloat")).setValue(
                                         x3dpsail.SFString("0.5"))).
     addField(x3dpsail.field().setName(
         x3dpsail.SFString("scale")).setAccessType(
             x3dpsail.SFString("inputOutput")).setType(
                 x3dpsail.SFString("SFFloat")).setValue(
                     x3dpsail.SFString("0.5"))).addField(
                         x3dpsail.field().setName(
                             x3dpsail.SFString("power")).setAccessType(
                                 x3dpsail.SFString("inputOutput")).setType(
                                     x3dpsail.SFString("SFFloat")).setValue(
                                         x3dpsail.SFString("2"))).
     addParts(x3dpsail.ShaderPart().setUrl(
         x3dpsail.MFString([
             "../shaders/cobweb.vs",
             "https://coderextreme.net/X3DJSONLD/shaders/cobweb.vs"
         ])).setType(x3dpsail.SFString("VERTEX"))).
     addParts(x3dpsail.ShaderPart().setUrl(
         x3dpsail.MFString([
             "../shaders/pc_bubbles.fs",
             "https://coderextreme.net/X3DJSONLD/shaders/pc_bubbles.fs"
         ])).setType(x3dpsail.SFString("FRAGMENT")))
 ).addShaders(x3dpsail.ComposedShader().setDEF(
     x3dpsail.SFString("x3dom")
 ).setLanguage(
     x3dpsail.SFString("GLSL")
 ).addField(
     x3dpsail
     .field()
     .setName(x3dpsail.SFString("cube"))
Exemplo n.º 8
0
ComposedShader27.addField(field31)
field32 = x3dpsail.field()
field32.setName("scale")
field32.setAccessType("inputOutput")
field32.setType("SFFloat")
field32.setValue("0.5")

ComposedShader27.addField(field32)
field33 = x3dpsail.field()
field33.setName("power")
field33.setAccessType("inputOutput")
field33.setType("SFFloat")
field33.setValue("2")

ComposedShader27.addField(field33)
ShaderPart34 = x3dpsail.ShaderPart()
ShaderPart34.setUrl([
    "../shaders/x3dom.vs",
    "https://coderextreme.net/X3DJSONLD/shaders/x3dom.vs"
])
ShaderPart34.setType("VERTEX")

ComposedShader27.addParts(ShaderPart34)
ShaderPart35 = x3dpsail.ShaderPart()
ShaderPart35.setDEF("common")
ShaderPart35.setUrl([
    "../shaders/common.fs",
    "https://coderextreme.net/X3DJSONLD/shaders/common.fs"
])
ShaderPart35.setType("FRAGMENT")