[x3d-public] FreeWRL line 999 DEF/USE mismatch,
Joe D Williams
joedwil at earthlink.net
Mon Jan 22 20:25:41 PST 2024
Thanks John, except it does run in view3dscene and contact, maybe I ought to try some others.
Joe
-----Original Message-----
From: Extensible 3D (X3D) Graphics public discussion <x3d-public at web3d.org>
Sent: Jan 22, 2024 8:05 PM
To: Extensible 3D (X3D) Graphics public discussion <x3d-public at web3d.org>
Cc: John Carlson <yottzumm at gmail.com>
Subject: Re: [x3d-public] FreeWRL line 999 DEF/USE mismatch,
Joe, check the tag is Shape instead of Transform in the USEd elements.
DEF/USE attributes with the same value should have the same XML tag. Shape matches Shape and Transform matches Transform.
If another browser accepts this file, I would be surprised, perhaps a bug should be reported, but I don’t know how lenient the standard is. It’s like shoving a square peg in a round hole.
Don’t forget X3D-Edit Q&A!
!= means “not equals” in many programming languages. Perhaps unicode could be used, but I’m not sure of font or encoding (could be cp1252 or something). ! is also “not” in many programming languages, as an easy mnemonic. Probably the error message could be friendlier.
Sorry, two messages today!
John
On Mon, Jan 22, 2024 at 8:57 PM Joe D Williams via x3d-public <x3d-public at web3d.org (mailto:x3d-public at web3d.org)> wrote:
Hey FreeWRL, my little flower animation thing has error(s) I never get anywhere else.
Can you please help me figure this out?
Attached is zip of FlowerSet1010.x3d
(In the following, when xml, the [ is substituted for the < left angle because my mailer doesn't like anything looking like xml.
When I use FreewrL I get this in message window:
MidiInWinMM::initialize: no MIDI input devices currently available.
libfreewrl version 6.4.0
-h for commandline use
openGL version 4.6.0 NVIDIA 536.23
GLSL shader max version 4.60 NVIDIA 460
maximum texture size system/gpu: 32768 runtime/freewrl: 16384
processor architecture x64
maxiumum image texture units 32
depth bits 24
Warning,
line 999 DEF/USE mismatch, 'BorderFlower01', Transform != ShapeWarning,
.
. plus 18 reps
.
line 999 DEF/USE mismatch, 'BorderFlower01', Transform != ShapeWarning,
line 999 DEF/USE mismatch, 'BorderFlower01', Transform != Shape *ended
User Code related to this error seems to be as follows.
Here is DEF of BorderFlower01
[!-- Build Flower #3 and BorderFlower01 -->
[Transform DEF='BorderFlower01' scale='1 1 1'>
[Transform translation='0.5 0 0' >
[Shape USE='Stem1'/>
[/Transform>
... shortened by some petals added not shown
[Transform translation='0.5 0.01 0' scale='1 1.5 1'>
[Shape USE='FlowerCenter'/>
[/Transform>
[/Transform>
Now all three of the first flowers, including BorderFlower01, show up fine with animation working no problem.
Then I USE BorderFlower01 to build another set of one Special flower and 20 border flowers.
[Transform DEF='rFlowerSpecial' scale='2 2 2' rotation='0 0 1 0' translation='7 0.35 0'>
[Shape USE='BorderFlower01'/>
[/Transform>
[Transform DEF='rFlower01' rotation='0 0 1 0' translation='9.198902 0.25 -0.863062'>
[Shape USE='BorderFlower01'/>
[/Transform>
. . . plus 18 r and l flowers
[Transform DEF='lFlower10' rotation='0 0 1 0' translation='18.515152 0.25 30.003242'>
[Shape USE='BorderFlower01'/>
[/Transform>
When I run it I get error and I don't see why.
Thanks for looking.
Joe
_______________________________________________
x3d-public mailing list
x3d-public at web3d.org (mailto: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/20240123/6ba777a6/attachment.html>
More information about the x3d-public
mailing list