[x3d-public] This code is producing the following error in X3DJSAIL
yottzumm at gmail.com
yottzumm at gmail.com
Tue Feb 21 17:40:11 PST 2017
.addField(new fieldObject()
.addChild(new TextureCoordinateObject()
.setUSE("KeyValueHolder")
)
.setName("keyValueHolderNode")
.setAccessType("initializeOnly")
.setType("SFNode")
)
www_web3d_org\x3d\content\examples\Basic\development\PositionInterpolator2dPrototype.java:249: error: incompatible types: TextureCoordinateObject cannot be converted to X3DChildNode
.setUSE("KeyValueHolder")
Also, this code
.addChild(new ProtoInstanceObject()
.addFieldValue(new fieldValueObject()
.setName("newHeight")
.setValue("3")
)
.addFieldValue(new fieldValueObject()
.setName("newRadius")
.setValue("4")
)
.addFieldValue(new fieldValueObject()
.addChild(new AppearanceObject()
.setMaterial(new MaterialObject()
.setDEF("CylinderMaterial")
.setDiffuseColor(new float[] {0f,1f,0f})
)
)
.setName("InitialAppearance")
)
.setName("NewShape")
)
Produces this error:
www_web3d_org\x3d\content\examples\Basic\development\ProtoInstanceExample.java:176: error: incompatible types: AppearanceObject cannot be converted to X3DChildNode
.setMaterial(new MaterialObject()
^
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170221/0ecb24b3/attachment.html>
More information about the x3d-public
mailing list