[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
Thu Mar 26 04:05:01 PDT 2020


Note about terminology:

- You wrote "V2.0 VRML file (but .x3dv)" -- note that you should store
VRML 2.0 files with .wrl extension.

- You wrote "V3.0 Classic VRML file", I understand it as "X3D 3.0 file
in classic (VRML) encoding" :)

In general, repeating the same DEF is allowed in VRML and X3D. The
last DEF "wins" (obscuring previous DEF definition of the same name).
Although I would discourage this practice, but specification allows
it.

Please send me the input file so I can look into it. In case of VRML
2.0 -> X3D 3.0 conversion, the input and output should match very
closely. There must be a reason why converter repeated many DEFs.

Regards,
Michalis

czw., 26 mar 2020 o 03:01 John Carlson <yottzumm at gmail.com> napisał(a):
>
> Michalis, I attempted to convert a V2.0 VRML file (but .x3dv) to a V3.0 Classic VRML file.
>
> When lightly scanning the file, I discovered the egregious use of the same value for various DEFs, up to 80 occurences in some cases.
>
> I suggest you look into this.  If you need files, let me know.  I will try conversion to wrl to XML next.
>
> grep DEF AnnexAD2.x3dv | sed 's/.*DEF/DEF/' |sed 's/\(DEF [^ ]*\) .*/\1/'|sort|uniq -c|sort
> [snip]
>      28 DEF hanim_r_index_middle
>      28 DEF hanim_r_middle_middle
>      28 DEF hanim_r_pinky_middle
>      28 DEF hanim_r_ring_middle
>      28 DEF hanim_r_thumb_distal
>      28 DEF hanim_skull
>      29 DEF hanim_l_gonion
>      29 DEF hanim_l_index_distal
>      29 DEF hanim_l_infraorbitale
>      29 DEF hanim_l_middle_distal
>      29 DEF hanim_l_pinky_distal
>      29 DEF hanim_l_ring_distal
>      29 DEF hanim_l_thumb_distal_tip
>      29 DEF hanim_l_tragion
>      29 DEF hanim_nuchale
>      29 DEF hanim_r_gonion
>      29 DEF hanim_r_index_distal
>      29 DEF hanim_r_infraorbitale
>      29 DEF hanim_r_middle_distal
>      29 DEF hanim_r_pinky_distal
>      29 DEF hanim_r_ring_distal
>      29 DEF hanim_r_thumb_distal_tip
>      29 DEF hanim_r_tragion
>      29 DEF hanim_sellion
>      29 DEF hanim_skull_tip
>      29 DEF hanim_supramenton
>      30 DEF hanim_l_dactylion
>      30 DEF hanim_l_index_distal_tip
>      30 DEF hanim_l_middle_distal_tip
>      30 DEF hanim_l_pinky_distal_tip
>      30 DEF hanim_l_ring_distal_tip
>      30 DEF hanim_r_dactylion
>      30 DEF hanim_r_index_distal_tip
>      30 DEF hanim_r_middle_distal_tip
>      30 DEF hanim_r_pinky_distal_tip
>      30 DEF hanim_r_ring_distal_tip
>      58 DEF hanim_l_eyeball
>      58 DEF hanim_r_eyeball
>      80 DEF hanim_l_index_proximal
>      80 DEF hanim_r_index_proximal
>
> Y
>
> 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