[x3d-public] Element stripped by X3dToJson.xslt

John Carlson yottzumm at gmail.com
Sat Nov 21 04:15:45 PST 2020


Does anyone know a MINGW  command line program which monitors a subcommand
 for how long it’s taking, and stops the process if it’s taking too long?

John

On Sat, Nov 21, 2020 at 2:51 AM John Carlson <yottzumm at gmail.com> wrote:

> Yes, I am aware of that.   I can't use xml2all.js for all files,
> particularly the Joe*.x3d files, because my code doesn't exit.  So I'm
> relying on X3dToJson.xslt to translate Joe*.x3d files to JSON.   So I may
> have to use xml2all.js for most of the files so that the Environment
> element is carried over (it's only in one file now), and X3dToJson.xslt for
> particularly difficult files, like Joe*.x3d.  I'm looking for a solution
> that works in all cases.  Help!
>
> I will work with the debugger to try to fix DOM2JSONSerializer.js, but
> I've got HAnim JSON that I've been trying to work on.
>
> The good news is, the Environment tag works well in X3DOM.
>
> John
>
> On Sat, Nov 21, 2020 at 1:55 AM Don Brutzman <brutzman at nps.edu> wrote:
>
>> Hi John.  The stylesheet doesn't support this conversion because
>> Environment is not a standard X3D node.
>>
>> * X3D4 Architecture, Annex Z (normative) Version content
>>
>> https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-WD2/Part01/versionContent.html
>>
>>
>> On 11/20/2020 4:26 AM, John Carlson wrote:
>> >
>> > Successful test of:
>> >
>> > <Environment gammaCorrectionDefault="none"></Environment>
>> >
>> > converted to JSON.
>> >
>> > See attached image!
>> >
>> > Bye!
>> >
>> > John
>> >
>> > image.png
>> >
>> > On Fri, Nov 20, 2020 at 6:19 AM John Carlson <yottzumm at gmail.com
>> <mailto:yottzumm at gmail.com>> wrote:
>> >
>> >     Environment may be automatically converted over to JSON using
>> X3DJSONLD:
>> >
>> >     $ node ../node/xml2all.js ../data/ball.x3d
>> >
>> >     Now for test!
>> >
>> >     On Fri, Nov 20, 2020 at 6:16 AM John Carlson <yottzumm at gmail.com
>> <mailto:yottzumm at gmail.com>> wrote:
>> >
>> >         This element is stripped from JSON when processing with
>> X3dToJson.xslt
>> >
>> >         <Environment gammaCorrectionDefault="none"></Environment>
>> >
>> >         Thus there is no way to achieve similar effects between X3DOM
>> and X_ITE in an automated fashion with stylesheets.
>> >
>> >         John
>> >
>>
>> all the best, Don
>> --
>> Don Brutzman  Naval Postgraduate School, Code USW/Br
>> brutzman at nps.edu
>> Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA
>>  +1.831.656.2149
>> X3D graphics, virtual worlds, navy robotics
>> http://faculty.nps.edu/brutzman
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20201121/aaed778f/attachment-0001.html>


More information about the x3d-public mailing list