[x3d-public] X3dToPython.xslt warnings and errors produced from Holger's examples

John Carlson yottzumm at gmail.com
Fri Jul 1 14:35:38 PDT 2022


No "shadows" in Savage.  So unless Don has something in SavageDefense,
we'll have to roll our own example, or find someone else's (Holger's).

It looks like the attribute type for "shadows" the shadows field is not
being found in X3dToPython.xslt.

I'm wanting to do code coverage analysis again.

On Fri, Jul 1, 2022 at 4:23 PM John Carlson <yottzumm at gmail.com> wrote:

> Here are rereported issues.
>
> One can download the create3000 Library with:
>
> git clone https://github.com/create3000/Library
>
> Then use X3dToPython.xslt in Library/Tests/Components/ParticleSystems/.
>
> translating to python
> BEGIN ../Library/Tests/Components/ParticleSystems/Bubbles.x3d > py, ***
> Warning: X3dToPython.xslt attribute type not found for DirectionalLight
> field 'shadows'
> *** Error: tuple-size not found for type '' (type value missing)
> END ../Library/Tests/Components/ParticleSystems/Bubbles.x3d
>
> BEGIN ../Library/Tests/Components/ParticleSystems/Fire.x3d > py, ***
> Warning: X3dToPython.xslt attribute type not found for DirectionalLight
> field 'shadows'
> *** Error: tuple-size not found for type '' (type value missing)
> END ../Library/Tests/Components/ParticleSystems/Fire.x3d
>
> Since shadows is an SFBool, there is no tuple-size, perhaps?
>
> The above errors show that type is '', not SFBool.  I can't figure out the
> XSLT yet.
>
> I will look at the XML.
>
> Here's one example from Bubbles.x3d:
>
>         <MetadataSet DEF='Selection' containerField='value'
>             name='Selection'
>             reference='http://titania.create3000.de'>
>           <MetadataSet DEF='previous' containerField='value'
>               name='previous'
>               reference='http://titania.create3000.de'/>
>           <MetadataSet DEF='children' containerField='value'
>               name='children'
>               reference='http://titania.create3000.de'>
>             <DirectionalLight DEF='_1' containerField='value'
>                 direction='-0.372556 -3.8217e-05 -0.92801'
>                 shadows='true'
>                 shadowIntensity='0.518717'/>
>           </MetadataSet>
>         </MetadataSet>
>       </MetadataSet>
>
> Here's another from Fire.x3d:
>
>     <DirectionalLight DEF='_1'
>         direction='-0.531638 -0.672816 -0.51447'
>         shadows='true'
>         shadowIntensity='0.605'/>
>
> Hope this helps.  I'm bamboozled until I can find  a better XSLT
> debugger.  We're a bit over budget the last few months.
>
> Looks like everything is up-to-date.
>
> I'd like to make sure Fire.py works before proceeding to further debug
> x3djsonld.py, so I know I have a good example python to pull ideas from.
>
> There are no examples of DirectionalLight and attribute shadows in the X3D
> Examples on sourceforge.  Perhaps it's time to add an example?
>
> I'm presently downloading Savage.  Maybe we'll get lucky.
>
> Thanks!
>
> John
>
> On Fri, Jul 1, 2022 at 3:48 PM John Carlson <yottzumm at gmail.com> wrote:
>
>> Background for what I’m going to test. I’m in-line with your analysis of
>> this one issue.  I don’t recall if ‘shadows’ in DirectionalLight is still
>> an issue (see thread).  I’ve been able to address the gzip issue on my own
>> system.   There may be more issues to address.
>>
>> Here’s how i test in X3DJSONLD:
>>
>> X3DJSONLD/src/main/shell $ bash don.sh
>> ../Library/Tests/Components/ParticleSystems/*.x3d
>>
>> You may use a single .x3d file.
>>
>> I’m going to run downstairs to run the test.
>>
>> On Fri, Jul 1, 2022 at 9:16 AM Brutzman, Donald (Don) (CIV) <
>> brutzman at nps.edu> wrote:
>>
>>> Nor is particleElasticity (or the word “elasticity”) found in X3D4
>>> specification.  Thus not in any other validation tools.
>>>
>>>
>>>
>>>    -
>>>    https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-DIS/Part01/components/particleSystems.html
>>>
>>>
>>>
>>> And so, looking around, wondering what is being talked about.
>>> Presumably a browser-specific extension, building on the X in X3D.
>>>
>>>
>>>
>>> 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 https://
>>> faculty.nps.edu/brutzman
>>>
>>>
>>>
>>> *From:* x3d-public <x3d-public-bounces at web3d.org> *On Behalf Of *John
>>> Carlson
>>> *Sent:* Sunday, June 26, 2022 1:46 PM
>>> *To:* Holger Seelig <holger.seelig at yahoo.de>; X3D Graphics public
>>> mailing list <x3d-public at web3d.org>
>>> *Subject:* Re: [x3d-public] X3dToPython.xslt warnings and errors
>>> produced from Holger's examples
>>>
>>>
>>>
>>> Holger's example:
>>>
>>>
>>>
>>> translating to json
>>> BEGIN ../Library/Tests/Components/ParticleSystems/Waterfall.x3d > json,
>>> Warning: X3dToJson.xslt attribute type not found for ParticleSystem
>>> particleElasticity
>>> END ../Library/Tests/Components/ParticleSystems/Waterfall.x3d
>>>
>>>
>>>
>>> particleElasticity not found in X3DUOM
>>>
>>>
>>>
>>> So specific to Holger's use case, I guess.
>>>
>>>
>>>
>>>
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20220701/c406f499/attachment.html>


More information about the x3d-public mailing list