netbeansvrmlx3d

X3D Relative URL's


So I'm developing an X3D scene with NetBeans and the X3D plugins (Similar to X3D-Edit), after validating my file with the built in quality assurance validator I get the following error;

<Inline DEF='MyModel'/> url array address(es) missing 
online http/https references (url='"model.x3d"') 
[/X3D/Scene/Group/Transform[1]/Inline, info]

It seems to want an online URL to refer to the inline node. My question is, can I somehow use a relative URL instead of an online one? I have tried using the file:// protocol but i get another error when doing so;

<Inline DEF='MyModel'/> url array contains file:/ local address, 
not portable across Web servers (url='"file://model.x3d"') [/X3D/Scene/Group/Transform[2]/Inline, warning]

Solution

  • you cand find this in the VRML node reference:

    "The Inline node is a grouping node that reads its children data from a location in the World Wide Web"

    http://www.web3d.org/x3d/specifications/vrml/ISO-IEC-14772-VRML97/part1/nodesRef.html#Inline

    which means the inline url cannot point to a local file

    You can also read this: http://www.web3d.org/x3d/specifications/vrml/ISO-IEC-14772-VRML97/part1/concepts.html#4.5