# Import .wrl or VRML 97 mesh

**URL:** <https://forum.babylonjs.com/t/import-wrl-or-vrml-97-mesh/7422>\
**Category:** Questions\
**Created:** [December 6, 2019, 9:29pm UTC](https://forum.babylonjs.com/t/import-wrl-or-vrml-97-mesh/7422 "2019-12-06T21:29:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Strix](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/strix/32/5500_2.png) [@Strix](https://forum.babylonjs.com/u/Strix)\
**Post date:** [December 6, 2019, 9:29pm UTC](https://forum.babylonjs.com/t/import-wrl-or-vrml-97-mesh/7422/1 "2019-12-06T21:29:36Z")

</div>

I have a VRML 97 file I’d like to import and display. Can I do this in BabylonJS?  
The code for what I’m doing is here:  
` var modelToLoad = "phase_1.wrl"; var modelURL = "models/"; if (currentMesh == null) { var mesh = BABYLON.SceneLoader.ImportMesh("", modelURL, modelToLoad, scene, function (newMeshes) { scene.removeMesh(currentMesh); currentMesh = null; currentMesh = newMeshes[0]; currentMesh.rotate(BABYLON.Axis.Z, -Math.PI, BABYLON.Space.LOCAL); currentMesh.translate(new BABYLON.Vector3(-1, -1, -1), 65, BABYLON.Space.LOCAL); }); }`

However I get this error

babylon.js:16 BJS - [14:15:31]: Unable to import meshes from models/phase\_1.wrl: importMesh of undefined from undefined version: undefined, exporter version: undefinedimportMesh has failed JSON parse

I did see this work: [VRML Loader - Need Help](https://forum.babylonjs.com/t/vrml-loader-need-help/1511) but I don’t know if I need to use her loader or if I just need BabylonJs API call.  
Thanks,  
~Shane

---

<div class="post-metadata">

**Author:** ![PirateJC](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/piratejc/32/1003_2.png) [@PirateJC](https://forum.babylonjs.com/u/PirateJC)\
**Post date:** [December 6, 2019, 10:08pm UTC](https://forum.babylonjs.com/t/import-wrl-or-vrml-97-mesh/7422/2 "2019-12-06T22:08:23Z")

</div>

Hey @Strix!

Babylon doesn’t naturally import or support VRML files ([Load from any file type - glTF, OBJ, STL, etc. - Babylon.js Documentation](https://doc.babylonjs.com/how_to/load_from_any_file_type)), so you’ll have to either use the custom importer from the previous VRML loader thread

OR find a different way to convert VRML Files to something Babylon supports like glTF or OBJ.

One option might be to use Blender to import the file and then export to glTF. Blender 2.8+ has a built in support for exporting .glTF files, AND supports importing VRML files from what I understand in [this thread](https://blenderartists.org/t/how-to-import-vrml-2-0-files/359911).

Hope this is helpful!!!
