<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello Michalis,<div><br></div><div><br></div><div>thx for the explanation. I know x3d is better, but I have to convert it, because the 3D printer only accepts wrl format.</div><div><br></div><div>I tried to convert it, but it looks quite complicated for me, even if I look at your description.</div><div>Here is a link to the file: <a href="http://www.bestaltmed.at/slicer/neucullfrontface.x3d.zip">www.bestaltmed.at/slicer/modelcullfrontface2.wrl.zip</a></div><div><br></div><div>Can you tell me please, which part I have to remove and how I should add the #VRML V2.0 utf8 to get a working wrl file?</div><div><br></div><div>I was looking inputonly,... but I did not found anything.</div><div><br></div><div>Thx,</div><div>Chris</div><div><br></div><div> <br><div><div>Am 20.07.2012 um 15:44 schrieb Michalis Kamburelis:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Chris wrote:<br><blockquote type="cite">Hello people,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I want to convert a x3d file to a wrl file.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Would somebody be so kind and explain me how that works?<br></blockquote><blockquote type="cite"><br></blockquote><br>Note that conversion from X3D to VRML inherently means loosing some things. VRML (2.0, and 1.0 even more so) is an older standard, and just cannot express many things that are possible in X3D. I would advise to use modern tools that can work with X3D. Converting your models from X3D to VRML is a little step backward...<br><br>That said, for simple models you can do it like this:<br><br>1. If your X3D file is in XML encoding (.x3d extension), convert it to X3D in classic encoding first (.x3dv extension). E.g. view3dscene allows to do this (<a href="http://castle-engine.sourceforge.net/view3dscene.php">http://castle-engine.sourceforge.net/view3dscene.php</a> , conversion can be done by menu items or command-line options <a href="http://castle-engine.sourceforge.net/view3dscene.php#section_converting">http://castle-engine.sourceforge.net/view3dscene.php#section_converting</a> ). And probably all other converters mentioned in a link from Roland, <a href="http://www.web3d.org/x3d/content/examples/X3dResources.html#Conversions">http://www.web3d.org/x3d/content/examples/X3dResources.html#Conversions</a> , as far as I know at least InstantReality can convert between encodings.<br><br>Save the resulting file under .wrl extension, and do the rest of conversion by opening the file in a text editor:<br><br>2. Replace the header, removing lines:<br><br>#X3D V3.2 utf8<br>PROFILE ...<br>COMPONENT ...<br>META ...<br><br>and adding instead<br><br>#VRML V2.0 utf8<br><br>3. Replace some keywords (X3D -> VRML 2.0):<br>inputOnly -> eventIn<br>outputOnly -> eventOut<br>inputOutput -> exposedField<br>initializeOnly -> field<br><br>That's it. This should work Ok for simple models, that use the basic nodes that exist in both VRML 2.0 and X3D. (Converting X3D to VRML 1.0 is more involved, but I guess you don't want this, as VRML 1.0 is really ancient.)<br><br>Hope this helps,<br>Michalis<br></div></blockquote></div><br></div></body></html>