[x3d-public] Anyone interested in building an X3D import/export for Three.js?

John Carlson yottzumm at gmail.com
Tue Oct 11 14:50:19 PDT 2022


I have extended the three-x3d-loader (see original email) to load my JSON.
So I'm somewhat familiar with loaders.

I would rather be limited by what Three.js (if not open ended) has rather
than trying to support the full range of X3D.  That is, I probably won't
write exporters for all x3d encodings. Picking what encoding to use would
be important.

I do know we can convert to another format to export/import from/into
Three.js. I think we need to measure.

I agree that using the VRML parse structures and exporting from them would
be a good approach, but I just want to peek at a few other exporters.  I am
pretty sure that Three.JS does not support X3D exporters out of the box.

I have not done a lot of research into VRML, so I will accept looking into
the VRML Loader as a good 2nd task.

I'm not doing any coding until a design is arrived at.

I don't even know if Three.js has a common internal structure for all
encodings!

John

On Tue, Oct 11, 2022 at 4:26 PM Nicholas Polys <npolys at vt.edu> wrote:

> An alternative ,
> Perhaps if new to the
> Three.js internals , would be to examine the data structures that are
> populated from the current three
> J's vrml loader and  bolt in an xml parsing front end to pull those data
> structures from the
> X3d file
>
> Then expand node support ...
> ?
>
> This is fun and there are lots of little projects in x3dom and blender as
> well...
>
> On Tue, Oct 11, 2022, 4:51 PM John Carlson <yottzumm at gmail.com> wrote:
>
>> Ok!   I have 1-2 hours a day to work on it.
>> Nicholas,
>>
>> Here are my initial thoughts.
>>
>> 1.  Determine which object model to use.
>>
>> 2.  Possibly use a preprocessor/post-processor
>>
>> 3.  Which profile to target
>>
>> 4. Come up with a good design
>>
>> 5.  Investigate previous attempts, formats
>>
>> 6.   Develop an exporter, then an importer.  So far, I have only worked
>> on Three.js importers.  I do know not know if this will be green field
>> programming or not.
>>
>> My next step will be looking at three.js exporters.
>>
>>
>>
>> On Tue, Oct 11, 2022 at 8:41 AM Nicholas Polys <npolys at vt.edu> wrote:
>>
>>> Sure!
>>>
>>> On Tue, Oct 11, 2022, 6:23 AM John Carlson <yottzumm at gmail.com> wrote:
>>>
>>>> https://threejs.org/editor/
>>>>
>>>> https://threejs.org/examples/#webgl_loader_vrml
>>>>
>>>> https://github.com/coderextreme/three-x3d-loader
>>>>
>>> _______________________________________________
>>>> x3d-public mailing list
>>>> x3d-public at web3d.org
>>>> http://web3d.org/mailman/listinfo/x3d-public_web3d.org
>>>>
>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20221011/14a242a9/attachment.html>


More information about the x3d-public mailing list