[x3d-public] Convert to X3D (from glTF, OBJ, STL, Collada, ...) and change X3D encodings using online Castle Game Engine converter

Michalis Kamburelis michalis.kambi at gmail.com
Wed Sep 30 02:11:43 PDT 2020


- We indeed do not support glTF 1.0, only glTF 2.0.

- BrainStem.gltf should definitely work, it is just large. Since we
convert into text encodings (X3D classic or X3D XML), in a lot of
cases the resulting data is just huge and takes a while to write.

- I fixed including tovrmlx3d binary in package, it will appear
shortly in snapshots on https://castle-engine.io/view3dscene.php .

Regards,
Michalis

śr., 30 wrz 2020 o 06:09 John Carlson <yottzumm at gmail.com> napisał(a):
>
> I think this script might be fixed by `dirname ..`/`basename ...` (add a slash)
>
> Other emails may be similar.   Sorry!   This may impact zips. etc.
>
>
>
> On Tue, Sep 29, 2020 at 8:21 PM John Carlson <yottzumm at gmail.com> wrote:
>>
>> I don't see the tovrmlx3d in my 3.19.0 version, thanks.  Moved onto view3dscene with the --write option:
>>
>> $ for f in `find glTF-Sample-Models/ -name '*gltf'`
>> do
>>             echo $f
>>             ~/Downloads/view3dscene-3.19/view3dscene/view3dscene.exe $f --write --write-encoding=xml > `dirname $f``basename $f .gltf`.x3d
>> done
>> =========================================================================================
>> I started getting a popup window with an error, so I added the --write.  This was very good, but still popping up a small window which I had to dismiss.
>>
>> I discovered that glTF 1.0 files don't work!
>>
>> I have many files now converting from glTF 2.0 to xml encoding.  I will spot check, then upload the files to my website and send a final message.
>>
>> I encourage Don to fit this into any glTF conversions he currently has, probably with a few modifications for ant!
>>
>> I release the code into the public domain.
>>
>> John
>>
>> On Tue, Sep 29, 2020 at 8:11 PM Michalis Kamburelis <michalis.kambi at gmail.com> wrote:
>>>
>>> Yes it is:) If you want to convert in batch mode, from a command-line or shell script  etc. then you can use view3dscene command-line or a dedicated tool "tovrmlx3d" (distributed along with view3dscene) for it.
>>>
>>> Regards,
>>> Michalis
>>>
>>> W dniu śr., 30.09.2020 o 03:01 John Carlson <yottzumm at gmail.com> napisał(a):
>>>>
>>>> This appears to be the command documentation on Michaelis' command line conversions:
>>>>
>>>> https://castle-engine.io/view3dscene.php#section_converting
>>>>
>>>> On Tue, Sep 29, 2020 at 7:52 PM John Carlson <yottzumm at gmail.com> wrote:
>>>>>
>>>>> Okay, found this, convert.php from Michalis.   I will have to take look see to see if it's embeddable in a shell script.
>>>>>
>>>>> https://castle-engine.io/convert.php
>>>>>
>>>>> Thanks,
>>>>>
>>>>> John
>>>>>
>>>>> On Thu, Jan 9, 2020 at 4:57 PM Michalis Kamburelis <michalis.kambi at gmail.com> wrote:
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> I made an online converter on:
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>   https://castle-engine.io/convert.php
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> It allows to
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> - Convert from any format supported by Castle Game Engine (glTF, X3D,
>>>>>>
>>>>>>
>>>>>> VRML, Wavefront OBJ, STL, Collada, 3DS, MD3, Spine JSON, see
>>>>>>
>>>>>>
>>>>>> https://castle-engine.io/creating_data_model_formats.php ).
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> - ... into X3D, in XML or Classic (VRML) encoding.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> It's free to use for everyone.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Underneath, it uses tovrmlx3d (command-line application distributed
>>>>>>
>>>>>>
>>>>>> together with view3dscene, see
>>>>>>
>>>>>>
>>>>>> https://castle-engine.io/view3dscene.php#section_converting for docs,
>>>>>>
>>>>>>
>>>>>> and get the very latest version from
>>>>>>
>>>>>>
>>>>>> http://michalis.ii.uni.wroc.pl/view3dscene-snapshots/ ). If you would
>>>>>>
>>>>>>
>>>>>> like to integrate this conversion into your own pipeline (e.g. to run
>>>>>>
>>>>>>
>>>>>> some tests or conversions in batch mode), I recommend downloading and
>>>>>>
>>>>>>
>>>>>> using tovrmlx3d directly, it's a simple application :)
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> More information on the tool page https://castle-engine.io/convert.php .
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Please give it a shot :) All the comments are welcome!
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>>
>>>>>> Michalis
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>>
>>>>>>
>>>>>> x3d-public mailing list
>>>>>>
>>>>>>
>>>>>> x3d-public at web3d.org
>>>>>>
>>>>>>
>>>>>> http://web3d.org/mailman/listinfo/x3d-public_web3d.org
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>



More information about the x3d-public mailing list