コード例 #1
0
    "https://coderextreme.net/X3DJSONLD/src/main/resources/images/bTP.png"
])

Scene9.addChildren(Background12)
Transform13 = x3dpsail.Transform()
Shape14 = x3dpsail.Shape()
Sphere15 = x3dpsail.Sphere()

Shape14.setGeometry(Sphere15)
Appearance16 = x3dpsail.Appearance()
Material17 = x3dpsail.Material()
Material17.setDiffuseColor([0.7, 0.7, 0.7])
Material17.setSpecularColor([0.5, 0.5, 0.5])

Appearance16.setMaterial(Material17)
ComposedCubeMapTexture18 = x3dpsail.ComposedCubeMapTexture()
ComposedCubeMapTexture18.setDEF("texture")
ImageTexture19 = x3dpsail.ImageTexture()
ImageTexture19.setUrl([
    "resources/images/bBK.png",
    "https://coderextreme.net/X3DJSONLD/src/main/resources/images/bBK.png"
])

ComposedCubeMapTexture18.setBack(ImageTexture19)
ImageTexture20 = x3dpsail.ImageTexture()
ImageTexture20.setUrl([
    "resources/images/bBT.png",
    "https://coderextreme.net/X3DJSONLD/src/main/resources/images/bBT.png"
])

ComposedCubeMapTexture18.setBottom(ImageTexture20)
コード例 #2
0
        .addMeta(x3dpsail.meta().setName(x3dpsail.SFString("identifier")).setContent(x3dpsail.SFString("https://coderextreme.net/X3DJSONLD/flowers7.x3d")))
        .addMeta(x3dpsail.meta().setName(x3dpsail.SFString("description")).setContent(x3dpsail.SFString("a flower"))))
      .setScene(x3dpsail.Scene()
        .addChild(x3dpsail.NavigationInfo())
        #Images courtesy of Paul Debevec's Light Probe Image Gallery

        .addChild(x3dpsail.Background().setDEF(x3dpsail.SFString("background")).setBackUrl(x3dpsail.MFString(["../resources/images/all_probes/beach_cross/beach_back.png","https://coderextreme.net/X3DJSONLD/images/all_probes/beach_cross/beach_back.png"])).setBottomUrl(x3dpsail.MFString(["../resources/images/all_probes/beach_cross/beach_bottom.png","https://coderextreme.net/X3DJSONLD/images/all_probes/beach_cross/beach_bottom.png"])).setFrontUrl(x3dpsail.MFString(["../resources/images/all_probes/beach_cross/beach_front.png","https://coderextreme.net/X3DJSONLD/images/all_probes/beach_cross/beach_front.png"])).setLeftUrl(x3dpsail.MFString(["../resources/images/all_probes/beach_cross/beach_left.png","https://coderextreme.net/X3DJSONLD/images/all_probes/beach_cross/beach_left.png"])).setRightUrl(x3dpsail.MFString(["../resources/images/all_probes/beach_cross/beach_right.png","https://coderextreme.net/X3DJSONLD/images/all_probes/beach_cross/beach_right.png"])).setTopUrl(x3dpsail.MFString(["../resources/images/all_probes/beach_cross/beach_top.png","https://coderextreme.net/X3DJSONLD/images/all_probes/beach_cross/beach_top.png"])))
        .addChild(x3dpsail.Viewpoint().setPosition(x3dpsail.SFVec3f(0,0,40)).setDescription(x3dpsail.SFString("Transparent rose")))
        .addChild(x3dpsail.Transform().setDEF(x3dpsail.SFString("Rose01"))
          .addChild(x3dpsail.Shape()
            .setAppearance(x3dpsail.Appearance()
              .setMaterial(x3dpsail.Material().setDiffuseColor(x3dpsail.SFColor(0.7,0.7,0.7)).setSpecularColor(x3dpsail.SFColor(0.5,0.5,0.5)))
              .setTexture(x3dpsail.ComposedCubeMapTexture().setDEF(x3dpsail.SFString("texture"))
                .setBack(x3dpsail.ImageTexture().setDEF(x3dpsail.SFString("backShader")).setUrl(x3dpsail.MFString(["../resources/images/all_probes/beach_cross/beach_back.png","https://coderextreme.net/X3DJSONLD/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/X3DJSONLD/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/X3DJSONLD/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/X3DJSONLD/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/X3DJSONLD/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/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")))
コード例 #3
0
field13.setType("MFString")
field13.setValue("\"../shaders/pc_flowers.fs\"")

ProtoInterface11.addField(field13)

ProtoDeclare10.setProtoInterface(ProtoInterface11)
ProtoBody14 = x3dpsail.ProtoBody()
Transform15 = x3dpsail.Transform()
Transform15.setDEF("transform")
Shape16 = x3dpsail.Shape()
Appearance17 = x3dpsail.Appearance()
Material18 = x3dpsail.Material()
Material18.setDiffuseColor([0.7, 0.7, 0.7])

Appearance17.setMaterial(Material18)
ComposedCubeMapTexture19 = x3dpsail.ComposedCubeMapTexture()
ComposedCubeMapTexture19.setDEF("texture")
ImageTexture20 = x3dpsail.ImageTexture()
ImageTexture20.setUrl([
    "../resources/images/all_probes/stpeters_cross/stpeters_back.png",
    "https://coderextreme.net/X3DJSONLD/images/all_probes/stpeters_cross/stpeters_back.png"
])

ComposedCubeMapTexture19.setBack(ImageTexture20)
ImageTexture21 = x3dpsail.ImageTexture()
ImageTexture21.setUrl([
    "../resources/images/all_probes/stpeters_cross/stpeters_bottom.png",
    "https://coderextreme.net/X3DJSONLD/images/all_probes/stpeters_cross/stpeters_bottom.png"
])

ComposedCubeMapTexture19.setBottom(ImageTexture21)
コード例 #4
0
 ))).setTexture(x3dpsail.ComposedCubeMapTexture().setDEF(
     x3dpsail
     .SFString("texture")
 ).setBack(x3dpsail.ImageTexture().setUrl(
     x3dpsail
     .MFString([
         "../resources/images/all_probes/stpeters_cross/stpeters_back.png",
         "https://coderextreme.net/X3DJSONLD/images/all_probes/stpeters_cross/stpeters_back.png"
     ])
 )).setBottom(x3dpsail.ImageTexture().setUrl(
     x3dpsail.MFString([
         "../resources/images/all_probes/stpeters_cross/stpeters_bottom.png",
         "https://coderextreme.net/X3DJSONLD/images/all_probes/stpeters_cross/stpeters_bottom.png"
     ])
 )).setFront(x3dpsail.ImageTexture().setUrl(
     x3dpsail.MFString([
         "../resources/images/all_probes/stpeters_cross/stpeters_front.png",
         "https://coderextreme.net/X3DJSONLD/images/all_probes/stpeters_cross/stpeters_front.png"
     ])
 )).setLeft(x3dpsail.ImageTexture().setUrl(
     x3dpsail.MFString([
         "../resources/images/all_probes/stpeters_cross/stpeters_left.png",
         "https://coderextreme.net/X3DJSONLD/images/all_probes/stpeters_cross/stpeters_left.png"
     ])
 )).setRight(x3dpsail.ImageTexture().setUrl(
     x3dpsail.MFString([
         "../resources/images/all_probes/stpeters_cross/stpeters_right.png",
         "https://coderextreme.net/X3DJSONLD/images/all_probes/stpeters_cross/stpeters_right.png"
     ])
 )).setTop(x3dpsail.ImageTexture().setUrl(
     x3dpsail.MFString([
         "../resources/images/all_probes/stpeters_cross/stpeters_top.png",
         "https://coderextreme.net/X3DJSONLD/images/all_probes/stpeters_cross/stpeters_top.png"
     ]))))
コード例 #5
0
))).setTexture(x3dpsail.ComposedCubeMapTexture().setBack(x3dpsail.ImageTexture(
).setUrl(
    x3dpsail
    .MFString([
        "../resources/images/all_probes/uffizi_cross/uffizi_back.png",
        "https://coderextreme.net/X3DJSONLD/images/all_probes/uffizi_cross/uffizi_back.png"
    ])
)).setBottom(x3dpsail.ImageTexture().setUrl(
    x3dpsail.MFString([
        "../resources/images/all_probes/uffizi_cross/uffizi_bottom.png",
        "https://coderextreme.net/X3DJSONLD/images/all_probes/uffizi_cross/uffizi_bottom.png"
    ])
)).setFront(x3dpsail.ImageTexture().setUrl(
    x3dpsail.MFString([
        "../resources/images/all_probes/uffizi_cross/uffizi_front.png",
        "https://coderextreme.net/X3DJSONLD/images/all_probes/uffizi_cross/uffizi_front.png"
    ])
)).setLeft(x3dpsail.ImageTexture().setUrl(
    x3dpsail.MFString([
        "../resources/images/all_probes/uffizi_cross/uffizi_left.png",
        "https://coderextreme.net/X3DJSONLD/images/all_probes/uffizi_cross/uffizi_left.png"
    ])
)).setRight(x3dpsail.ImageTexture().setUrl(
    x3dpsail.MFString([
        "../resources/images/all_probes/uffizi_cross/uffizi_right.png",
        "https://coderextreme.net/X3DJSONLD/images/all_probes/uffizi_cross/uffizi_right.png"
    ])
)).setTop(x3dpsail.ImageTexture().setUrl(
    x3dpsail.MFString([
        "../resources/images/all_probes/uffizi_cross/uffizi_top.png",
        "https://coderextreme.net/X3DJSONLD/images/all_probes/uffizi_cross/uffizi_top.png"
    ])))).addShaders(
コード例 #6
0
ファイル: geo.future.py プロジェクト: nestentrie/pythonSAI
        .addMeta(x3dpsail.meta().setName(x3dpsail.SFString("description")).setContent(x3dpsail.SFString("a sphere"))))
      .setScene(x3dpsail.Scene()
        .addChild(x3dpsail.NavigationInfo().setType(x3dpsail.MFString(["ANY","EXAMINE","FLY","LOOKAT"])))
        .addChild(x3dpsail.Viewpoint().setDEF(x3dpsail.SFString("Tour")).setDescription(x3dpsail.SFString("Tour Views")))
        #Viewpoint position='0 0 4' description='sphere in road'/

        .addChild(x3dpsail.Background().setBackUrl(x3dpsail.MFString(["resources/images/bBK.png","https://coderextreme.net/X3DJSONLD/src/main/resources/images/bBK.png"])).setBottomUrl(x3dpsail.MFString(["resources/images/bBT.png","https://coderextreme.net/X3DJSONLD/src/main/resources/images/bBT.png"])).setFrontUrl(x3dpsail.MFString(["resources/images/bFR.png","https://coderextreme.net/X3DJSONLD/src/main/resources/images/bFR.png"])).setLeftUrl(x3dpsail.MFString(["resources/images/bLF.png","https://coderextreme.net/X3DJSONLD/src/main/resources/images/bLF.png"])).setRightUrl(x3dpsail.MFString(["resources/images/bRT.png","https://coderextreme.net/X3DJSONLD/src/main/resources/images/bRT.png"])).setTopUrl(x3dpsail.MFString(["resources/images/bTP.png","https://coderextreme.net/X3DJSONLD/src/main/resources/images/bTP.png"])))
        .addChild(x3dpsail.Transform()
          .addChild(x3dpsail.Shape()
            .setGeometry(x3dpsail.Sphere())
            .setAppearance(x3dpsail.Appearance()
              .setMaterial(x3dpsail.Material().setDiffuseColor(x3dpsail.SFColor(0.7,0.7,0.7)).setSpecularColor(x3dpsail.SFColor(0.5,0.5,0.5)))
              .setTexture(x3dpsail.ComposedCubeMapTexture().setDEF(x3dpsail.SFString("texture"))
                .setBack(x3dpsail.ImageTexture().setUrl(x3dpsail.MFString(["resources/images/bBK.png","https://coderextreme.net/X3DJSONLD/src/main/resources/images/bBK.png"])))
                .setBottom(x3dpsail.ImageTexture().setUrl(x3dpsail.MFString(["resources/images/bBT.png","https://coderextreme.net/X3DJSONLD/src/main/resources/images/bBT.png"])))
                .setFront(x3dpsail.ImageTexture().setUrl(x3dpsail.MFString(["resources/images/bFR.png","https://coderextreme.net/X3DJSONLD/src/main/resources/images/bFR.png"])))
                .setLeft(x3dpsail.ImageTexture().setUrl(x3dpsail.MFString(["resources/images/bLF.png","https://coderextreme.net/X3DJSONLD/src/main/resources/images/bLF.png"])))
                .setRight(x3dpsail.ImageTexture().setUrl(x3dpsail.MFString(["resources/images/bRT.png","https://coderextreme.net/X3DJSONLD/src/main/resources/images/bRT.png"])))
                .setTop(x3dpsail.ImageTexture().setUrl(x3dpsail.MFString(["resources/images/bTP.png","https://coderextreme.net/X3DJSONLD/src/main/resources/images/bTP.png"]))))
              .addShaders(x3dpsail.ComposedShader().setLanguage(x3dpsail.SFString("GLSL"))
                .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")).setType(x3dpsail.SFString("SFNode")).setAccessType(x3dpsail.SFString("inputOutput"))
                  .addChild(x3dpsail.ComposedCubeMapTexture().setUSE(x3dpsail.SFString("texture"))))
                .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().setDEF(x3dpsail.SFString("common")).setUrl(x3dpsail.MFString(["../shaders/common.fs","https://coderextreme.net/X3DJSONLD/shaders/common.fs"])).setType(x3dpsail.SFString("FRAGMENT"))))
              .addShaders(x3dpsail.ComposedShader().setLanguage(x3dpsail.SFString("GLSL"))
                .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("cube")).setType(x3dpsail.SFString("SFNode")).setAccessType(x3dpsail.SFString("initializeOnly"))
コード例 #7
0
ファイル: ball.py プロジェクト: nestentrie/pythonSAI
    "https://coderextreme.net/X3DJSONLD/images/all_probes/stpeters_cross/stpeters_top.png"
])

Scene11.addChildren(Background14)
Transform15 = x3dpsail.Transform()
Shape16 = x3dpsail.Shape()
Sphere17 = x3dpsail.Sphere()

Shape16.setGeometry(Sphere17)
Appearance18 = x3dpsail.Appearance()
Material19 = x3dpsail.Material()
Material19.setDiffuseColor([0.7, 0.7, 0.7])
Material19.setSpecularColor([0.5, 0.5, 0.5])

Appearance18.setMaterial(Material19)
ComposedCubeMapTexture20 = x3dpsail.ComposedCubeMapTexture()
ComposedCubeMapTexture20.setDEF("texture")
ImageTexture21 = x3dpsail.ImageTexture()
ImageTexture21.setUrl([
    "../resources/images/all_probes/stpeters_cross/stpeters_back.png",
    "https://coderextreme.net/X3DJSONLD/images/all_probes/stpeters_cross/stpeters_back.png"
])

ComposedCubeMapTexture20.setBack(ImageTexture21)
ImageTexture22 = x3dpsail.ImageTexture()
ImageTexture22.setUrl([
    "../resources/images/all_probes/stpeters_cross/stpeters_bottom.png",
    "https://coderextreme.net/X3DJSONLD/images/all_probes/stpeters_cross/stpeters_bottom.png"
])

ComposedCubeMapTexture20.setBottom(ImageTexture22)