Script Rete Free

Rete Texture Cloud Asset Example

Rete Texture Cloud Asset Example picture
Author
matas
Created
Jan 31, 2024, 11:28:25 AM
Last edit
Feb 1, 2024, 10:58:13 AM

Edit scriptPreview

Project

Texture Cloud Assets

In this project we demonstrate how to load Cloud image assets and create BabylonJS texture from them. Then we apply texture to material and add material on the mesh.

View full project
{
  "id": "rete-v2-json",
  "nodes": {
    "6d7b8b5c9e6128d5": {
      "id": "6d7b8b5c9e6128d5",
      "name": "bitbybit.babylon.scene.enableSkybox",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0
        },
        "skybox": "clearSky",
        "size": 1000,
        "blur": 0.1,
        "environmentIntensity": 0.7
      },
      "inputs": {},
      "position": [
        -1748.2235966056035,
        2287.137489931887
      ]
    },
    "7fe9ecc4d902bb63": {
      "id": "7fe9ecc4d902bb63",
      "name": "bitbybit.babylon.meshBuilder.createCube",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0
        },
        "size": 10,
        "sideOrientation": "frontside"
      },
      "inputs": {},
      "position": [
        -300.50075895410714,
        1381.1184066760088
      ]
    },
    "9ddbf040ab42dc73": {
      "id": "9ddbf040ab42dc73",
      "name": "bitbybit.babylon.texture.createSimple",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0
        },
        "name": "Custom Texture",
        "invertY": false,
        "invertZ": false,
        "wAng": 0,
        "uScale": 1,
        "vScale": 1,
        "uOffset": 0,
        "vOffset": 0,
        "samplingMode": "nearest"
      },
      "inputs": {
        "url": {
          "connections": [
            {
              "node": "baf99decb2e06c02",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        -1081.5717679169038,
        1344.3863333597362
      ]
    },
    "e0f0b07d6d5b5724": {
      "id": "e0f0b07d6d5b5724",
      "name": "bitbybit.asset.getFile",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0
        },
        "fileName": "dogs-small.jpeg"
      },
      "inputs": {},
      "position": [
        -1773.0021560939676,
        1402.082775509084
      ]
    },
    "baf99decb2e06c02": {
      "id": "baf99decb2e06c02",
      "name": "bitbybit.asset.createObjectURL",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0
        }
      },
      "inputs": {
        "file": {
          "connections": [
            {
              "node": "e0f0b07d6d5b5724",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        -1436.8880228129242,
        1422.8649941044107
      ]
    },
    "0bf77a6a7d739c0a": {
      "id": "0bf77a6a7d739c0a",
      "name": "bitbybit.babylon.material.pbrMetallicRoughness.create",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0
        },
        "name": "Custom Material",
        "baseColor": "#ffffff",
        "metallic": 0.1,
        "roughness": 0.9,
        "alpha": 1,
        "backFaceCulling": false,
        "zOffset": 0
      },
      "inputs": {},
      "position": [
        -1036.102771368627,
        1945.9499108262057
      ]
    },
    "7da83f21975db135": {
      "id": "7da83f21975db135",
      "name": "bitbybit.babylon.material.pbrMetallicRoughness.setBaseTexture",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0
        }
      },
      "inputs": {
        "material": {
          "connections": [
            {
              "node": "0bf77a6a7d739c0a",
              "output": "result",
              "data": {}
            }
          ]
        },
        "baseTexture": {
          "connections": [
            {
              "node": "9ddbf040ab42dc73",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        -592.5592186183312,
        1695.3932010285878
      ]
    },
    "d7db2177c13cb4b7": {
      "id": "d7db2177c13cb4b7",
      "name": "bitbybit.babylon.mesh.setMaterial",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0
        },
        "includeChildren": false
      },
      "inputs": {
        "babylonMesh": {
          "connections": [
            {
              "node": "7fe9ecc4d902bb63",
              "output": "result",
              "data": {}
            },
            {
              "node": "1ab53ac0739d2224",
              "output": "result",
              "data": {}
            }
          ]
        },
        "material": {
          "connections": [
            {
              "node": "0bf77a6a7d739c0a",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        204.0120779669482,
        1774.1086349259886
      ]
    },
    "b351b0e6dc2dd69f": {
      "id": "b351b0e6dc2dd69f",
      "name": "bitbybit.babylon.scene.drawDirectionalLight",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0
        },
        "intensity": 5,
        "diffuse": "#ffffff",
        "specular": "#ffffff",
        "shadowGeneratorMapSize": 1024,
        "enableShadows": true,
        "shadowDarkness": 0
      },
      "inputs": {},
      "position": [
        -1760.2286143997421,
        1782.0262668701857
      ]
    },
    "1ab53ac0739d2224": {
      "id": "1ab53ac0739d2224",
      "name": "bitbybit.babylon.meshBuilder.createSquarePlane",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0
        },
        "size": 40,
        "sideOrientation": "frontside"
      },
      "inputs": {},
      "position": [
        -359.8403886310585,
        1106.1257434662566
      ]
    },
    "8eff381776ba2e1e": {
      "id": "8eff381776ba2e1e",
      "name": "bitbybit.babylon.mesh.pitch",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0
        },
        "rotate": 90
      },
      "inputs": {
        "babylonMesh": {
          "connections": [
            {
              "node": "1ab53ac0739d2224",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        65.8469403574502,
        1122.5206909517049
      ]
    },
    "0e1ac976400925f9": {
      "id": "0e1ac976400925f9",
      "name": "bitbybit.babylon.mesh.moveUp",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0
        },
        "distance": 7
      },
      "inputs": {
        "babylonMesh": {
          "connections": [
            {
              "node": "7fe9ecc4d902bb63",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        89.26253471183789,
        1401.6229017560436
      ]
    }
  }
}

Plans and pricing

Choose your plan

Editor plans for 3D development, API keys for server-side CAD algorithms

EnterpriseB2BCustompricing

Custom software development, dedicated servers and CAD automation at scale.

Learn moreContact us

CAD automation and software
  • Custom software development
  • Cloud CAD automation pipelines
  • 3D configurators (STEP & GLTF)
  • Batch export jobs
  • Custom algorithms & deployment
Infrastructure and support
  • Custom compute allocation
  • Dedicated / VPS server tenants
  • Long-running computation jobs
  • Custom upload limits & overage
  • SLA & premium support

All prices exclude applicable taxesView all plan details

Contact

Talk to us

Tell us what you are building or what is blocking you, through whichever channel suits you.