[x3d-public] Finding more than one use of a DEF in VRML

Michalis Kamburelis michalis.kambi at gmail.com
Thu Mar 26 04:09:15 PDT 2020


As I mentioned in the other thread, multiple DEF with the same name
are just allowed by the X3D specification. Last one "wins" (obscuring
the others with the same name). Maybe they should be disallowed or
discouraged, it's another discussion. But right now they are allowed
and proper VRML / X3D reader should understand them.

As to why my exporter created them -- I need to see the relevant input
file to answer it. There should be a good reason for it :)

Regards,
Michalis

czw., 26 mar 2020 o 06:30 John Carlson <yottzumm at gmail.com> napisał(a):
>
> DEF/USE is how multiparent nodes are achieved, but all DEF and USE with the same value are the same node, except for a few special cases.
>
> This is what one reason why HTML DOM is a poor choice...the nodes have only one parent.
>
> Or I’m still battling windmills?
>
> John
>
> On Wed, Mar 25, 2020 at 10:16 PM GPU Group <gpugroup at gmail.com> wrote:
>>
>> double defining:
>> - this stymied me too, until I realized the DEF/USE are just for the parser, and its the sequence that counts although different for different browsers.
>> - if you redef 3 times, then USE, what will you get?
>> - that depends on the web3d browser, with some sticking to the first DEF, some the last DEF.
>>
>> On Wed, Mar 25, 2020 at 9:01 PM John Carlson <yottzumm at gmail.com> wrote:
>>>
>>> If one DEF specified a shape and another DEF with the same value with a different shape, wouldn't the 2 browsers show different shapes if they picked different DEFs?
>>>
>>> I don't think double DEFs should be allowed within the same namespace.
>>>
>>> John
>>>
>>> On Wed, Mar 25, 2020 at 9:12 PM GPU Group <gpugroup at gmail.com> wrote:
>>>>
>>>> Chisel? "it was simply put in the public domain by Trapezium when they folded many years ago. They didn¹t specify any license" - Louka
>>>> http://dug9.users.sourceforge.net/web3d/temp/chisel-src.zip
>>>> But I suspect double-deffing isn't illegal. I think I've been through it, and different browsers honored the first or last definition.
>>>> -Doug
>>>>
>>>> On Wed, Mar 25, 2020 at 7:43 PM John Carlson <yottzumm at gmail.com> wrote:
>>>>>
>>>>> That is, more than one DEF with the same value.
>>>>>
>>>>> I realize that separate PROTOs may have the same DEF due to namespaces.   Unfortunately writing a Unix script to find this takes massive brain power.
>>>>>
>>>>> John
>>>>>
>>>>> On Wed, Mar 25, 2020 at 8:37 PM John Carlson <yottzumm at gmail.com> wrote:
>>>>>>
>>>>>> I’m not particular looking for a vrml parser unless it catches double use of a DEF.
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> John
>>>>>>
>>>>>> I’m thinking my next project might be a VRML validator if there isn’t one handy?  Anyone?
>>>>>>
>>>>>> I know I can translate VRML to XML.
>>>>>>
>>>>>> John
>>>>>>
>>>>>> On Wed, Mar 25, 2020 at 3:38 PM John Carlson <yottzumm at gmail.com> wrote:
>>>>>>>
>>>>>>> Say, where is a VRML Validator? !!!!
>>>>>>>
>>>>>>> On Wed, Mar 25, 2020 at 3:33 PM John Carlson <yottzumm at gmail.com> wrote:
>>>>>>>>
>>>>>>>> I will download X3D-Edit and do some validation on the files, or go to the validation site @ savage
>>>>>
>>>>> _______________________________________________
>>>>> x3d-public mailing list
>>>>> x3d-public at web3d.org
>>>>> http://web3d.org/mailman/listinfo/x3d-public_web3d.org
>>>>
>>>> _______________________________________________
>>>> x3d-public mailing list
>>>> x3d-public at web3d.org
>>>> http://web3d.org/mailman/listinfo/x3d-public_web3d.org
>
> _______________________________________________
> 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