Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Hi Everyone, I am looking for a generic VRML Parser and Writer for a project of mine

Discussion in 'General Discussion' started by Shabih554, Dec 14, 2019.

  1. Shabih554

    Shabih554

    Joined:
    May 15, 2017
    Posts:
    11
    I have been searching all over for a VRML parser that is compatible with unity, I have tried multiple c# projects and translated them to unity but every one lags in some aspect. Are there any packages for unity that can help in with this or any Projects?
     
  2. Murgilod

    Murgilod

    Joined:
    Nov 12, 2013
    Posts:
    9,806
    Probably not, considering how VRML hasn't been a thing since the late 90s.
     
  3. Shabih554

    Shabih554

    Joined:
    May 15, 2017
    Posts:
    11
    Not really. VRML is still being updated tho. There are plenty of VRML models both in x3d and wrl.
    Its being used in CAD.
     
  4. Murgilod

    Murgilod

    Joined:
    Nov 12, 2013
    Posts:
    9,806
    Most CAD software I've dealt with has long, long since replaced VRML with X3D. VRML is barely supported by a lot of major CAD software thanks to things like X3D, COLLADA or STL if it's for 3D printing.
     
  5. Shabih554

    Shabih554

    Joined:
    May 15, 2017
    Posts:
    11
    Well X3D is VRML version 3.3 i i think, but yes i do need a generic parser that can read both X3D and WRL files. I.e one that can read files written in both XML and the standard format
     
    fis likes this.
  6. fis

    fis

    Joined:
    Sep 16, 2009
    Posts:
    25
    +1, I need such parser too!!
     
  7. MadeFromPolygons

    MadeFromPolygons

    Joined:
    Oct 5, 2013
    Posts:
    3,886
    Yes they will lag because your trying to get some old 90s tech to work in a modern engine. VRML hasnt been used in almost a decade, everything that did use it swapped to X3D. The last company I worked for had some legacy VRML stuff around and I did work on writing a parser for unity for it but came to the conclusion that the performance issues are to do with the file format. Its just not meant to be used in a modern setting.

    Also if you run old VRML programs you will see that they run like crap because it was always garbage performance anyway.

    Why do you need VRML? Is this for a commercial project? Can whoever supplied the source files not convert or export in a format that is from the last 10 years rather than something from late 90s?

    See above answer, I doubt you will find one that has better perf than OP already was able to do. You will just have to write your own parser like most people have had to do, because an official one does not and will not exist. Generally no-one is still developing for VRML in industry except to maintain legacy applications
     
  8. fis

    fis

    Joined:
    Sep 16, 2009
    Posts:
    25
    We have found WRML as the most compact text 3d format which is supported by the most of 3d editors. We use it in our web service (rendertovr.com). At first we thought about OBJ but it didn't support cameras.
    With the help of unity we want to make standalone app for testing our scenes before upload to server.
     
    Aliceincode likes this.
  9. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    20,193
    Of course it's compact. It's from an era when 56K modems were the norm and is missing just about everything you'd want in a modern format. Compactness shouldn't even be a consideration though because you can just compress the data and decompress it in the scene viewer. For that matter your browser should be requesting compressed data already.

    https://en.wikipedia.org/wiki/HTTP_compression

    Instead of trying to use a dinosaur of a format you should be using a modern format like glTF. Which just so happens to have support for those very same editors.

    https://www.khronos.org/gltf/

    Speaking of formats that need to die already. Wavefront's OBJ is from the 1980s and frankly it should never have been used past that decade. Only advantage it has is it's trivial to implement but it's not like creating a custom exporter is difficult to begin with.
     
    Last edited: Mar 7, 2020
  10. fis

    fis

    Joined:
    Sep 16, 2009
    Posts:
    25
    3ds max has not built-in exporter for gLTF and x3d. This is the main reason why WRML still in use.
    Regarding compression - WRML+ gzip compression == even smaller file :)
     
  11. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    20,193
    Yes, by one or two percent of the market that has this stubborn belief that the formats have a chance at achieving any degree of popularity and becoming the new norm. Formats like gLTF and x3d have as much of a chance of becoming popular and getting adopted by everyone as Linux has of achieving "Year of the Linux Desktop".