Hello. I’ve been noticing that the castle engine doesn’t seem to support protos in the X3D XML code format. My scene node contains the following:
<ProtoDeclare name='Cube'> <ProtoInterface/> <ProtoBody> <Box /> </ProtoBody> </ProtoDeclare> <Shape> <Appearance> <Material diffuseColor='1 1 1'/> </Appearance> <Cube /> </Shape>
When run in View3DScene, it produces this error message:
VRML/X3D: Unknown X3D node type "Cube" VRML/X3D Unknown X3D field name (indicated by containerField value) "" by node "Cube" inside node "inside node "Shape"
Note that protos do seem to be supported if VRML code is used.
Do you know what’s wrong? Does the castle engine use an alternative to the ProtoDeclare command?
Billy in Seattle