[x3d-public] Online X3D File Format Converter Powered by X_ITE

Michalis Kamburelis michalis.kambi at gmail.com
Thu Feb 23 09:11:42 PST 2023


Cool!

I tested on 2 SVG files ( A.
https://github.com/castle-engine/castle-engine/blob/master/tools/castle-editor/gfx/gizmos/light/light_point.svg
, B. https://github.com/castle-engine/castle-engine/blob/master/doc/pasdoc/logo/castle_game_engine_icon.svg
). Fantastic, I can read resulting files in CGE and view3dscene, I
have real 3D geometry from SVG!

Notes:

1. On test B (CGE logo), the rendering is not perfect, and there's
Z-fighting if I rotate it slightly in 3D. From what I saw in the X3D
source, that's because everything is on Z = 0.

    Do you think it's sensible to introduce some "Z += epsilon" shift,
when generating X3D, to counter this?

    In CGE/view3dscene, we had similar situation for Spine (2D
animations) and Tiled (2D maps) input files. When converting to X3D,
we indeed just added Z += epsilon for each layer, to avoid the
problem.

2. I see the models use NavigationInfo.type =
"PLANE_create3000.github.io" and "PLANE". I don't see this documented
on https://create3000.github.io/x_ite/components/navigation/navigationinfo
. Is it something like a dedicated 2D navigation? If yes, we have also
a dedicated 2D navigation in CGE, so I could likely add in CGE to
handle "PLANE_create3000.github.io" / "PLANE" types.

Thank you very much for this. And sorry for focusing so much on SVG :)
I know what you did is much more general, I just focused on SVG->X3D
as for my use-cases this is the biggest game-changer. I will post
about this on CGE news ( https://castle-engine.io/wp/ ) this weekend.

Regards,
Michalis



czw., 23 lut 2023 o 15:39 Holger Seelig <holger.seelig at yahoo.de> napisał(a):
>
> The converter is now online and can be found at:
>
> https://create3000.github.io/x_ite/laboratory/x3d-file-converter
>
> @Michalis Yes SVG is converted into vectors and thus can be scaled as you like.
>
> Best regrads,
> Holger
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: castle_game_engine_icon_0.png
Type: image/png
Size: 52512 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20230223/2c0c98ec/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: light_point_0.png
Type: image/png
Size: 37363 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20230223/2c0c98ec/attachment-0003.png>


More information about the x3d-public mailing list