Holger Seelig
Holger Seelig
MF* fields are much like Arrays and have a corresponding SF* fields. Which can be assigned: ```js background.skyColor[0] = new X3D .SFColor (0.1, 0.2, 0.3); ``` https://create3000.github.io/x_ite/reference/field-services-and-objects/
I have updated the documentation to show a simple example, how to create nodes with JavaScript and add them to the scene-graph. https://create3000.github.io/x_ite/accessing-the-external-browser/#usage The first section shows the scene in...
You can continue to ask questions here if you like. I will be happy to help you.
You do not have to do anything special, just add the node to another field, and that's it. ```js const shapeNode1 = scene .createNode ("Shape"); const shapeNode2 = scene .createNode...
If you like, you can change this, probably with search & replace, and make a pull request, I would then merge it.
Prototype can only be created using declarative syntax, they are not made to be created per scripting. You would create a function which returns one or more nodes, which is...
InstancedShape is made for this task. Of course you can use Browser.createX3DFromString to load a data with a protoype. ```js const scene = await browser .createX3DFromString (`PROTO Foo [ #...
```js const scene = await browser .createX3DFromString (` COMPONENT X_ITE : 1 PROTO Foo [ # fields come here ] { # Body comes here }`); // Now create an...
If you do it in the parser, you must first load the components: ```js scene .addComponent (browser .getComponent (componentName)); this .loadComponents () .then (() => { this .resolve (scene); })...
No this is not possible. If you have only a few colors, you could create a InstancedShape node for every color, otherwise you can create one big geometry with all...