unityx3d
unityx3d copied to clipboard
X3D Exporter
X3D Exporter
The X3D Exporter by Tob is great - thanks!.
We're hoping to help with improvement of this important tool. It is in the "top ten" items of Web3D Consortium X3D Projects Wish List.
David Tan tested it on the following example. Exported results worked without modifications in InstantReality but not in any other X3D tool. Attached in next post please find
- Directions for installing plugin (see README for list of steps)
- Model source:
- Screenshots attached of model in Unity
- Screenshots of Unity interface invocation
- Screenshots attached of exported X3D model in InstantReality
Here are some issues with the X3D output:
- [x] Byte-order mark (BOM) as first character: not allowed.
- [x] Wondering why MultiTextureCoordinate is present if no texture is provided?
- [ ] Need proper X3D header: see X3D Scene Authoring Hints - Validation. Suggested:
<?xml version="1.0" encoding="UTF-8"?> <?!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "http://www.web3d.org/specifications/x3d-3.3.dtd"> <?X3D profile='Immersive' version='3.3' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='http://www.web3d.org/specifications/x3d-3.3.xsd'>
List of illegal X3D nodes (InstantReality extensions perhaps?) and potential X3D replacements:
- [x] SolidBackground to Background
- [x] TextureCoordinate2D as
- [x] 'TRUE' is not a valid value for SFBool, instead use 'true' in .x3d XML encoding
- [x] Similarly for 'FALSE'
- [x] CommonSurfaceShader - see X3D Programmable Shaders Component
All X3D scene export results can be checked online using the X3D Validator