[x3d-public] Think X3DJSAIL produces containerField -children instead of -material.

John Carlson yottzumm at gmail.com
Sat Jun 3 02:35:25 PDT 2017


See Java and *.new.json for ProtoInstance EmissiveMaterial and look at the containerFields around it.

The Java uses setMaterial, but -children is the product.

Note the difference in the JSON on the path:

@5 /X3D/Scene/-children/11/Transform/-children/0/Shape/-appearance/Appearance/-material
< {"ProtoInstance":{"@name":"EmissiveMaterial","fieldValue":[{"@name":"onlyColor","@value":[0.2,0.6,0.6]}]}}
@7 /X3D/Scene/-children/11/Transform/-children/0/Shape/-appearance/Appearance/-children
> [{"ProtoInstance":{"@name":"EmissiveMaterial","fieldValue":[{"@name":"onlyColor","@value":[0.2,0.6,0.6]}]}}]

John

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170603/944029af/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: X3dHeaderPrototypeSyntaxExamples.json
Type: application/json
Size: 14185 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170603/944029af/attachment-0002.json>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: X3dHeaderPrototypeSyntaxExamples.new.json
Type: application/json
Size: 14216 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170603/944029af/attachment-0003.json>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: X3dHeaderPrototypeSyntaxExamples.java
Type: application/octet-stream
Size: 13677 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170603/944029af/attachment-0001.obj>


More information about the x3d-public mailing list