[x3d-public] FreeWRL line 999 DEF/USE mismatch,

Joe D Williams joedwil at earthlink.net
Mon Jan 22 22:38:00 PST 2024


also runs right in https://create3000.github.io/x_ite/playground/
when I paste in the scene.  So contact, view3dscene, and x_ite, no complaint. 
I get the idea of DEF Transform then USE in Shape now and didn't even think about DEF a Transform and USE that in Shape when i wrote it.
maybe ok in these because it has a shape in the transform? 

The picture looks good for starting positions.  
How did you get it to run in FreeWRL?  
Scene actually runs about 1 minute and at about 50 seconds or so 20 of the flowers move out z to form a shape. So you have to wait to see the complete thing. 
Thanks,
Joe
-----Original Message-----
From: John Carlson <yottzumm at gmail.com>
Sent: Jan 22, 2024 10:18 PM
To: Joe D Williams <joedwil at earthlink.net>, GPU Group <gpugroup at gmail.com>
Subject: Re: [x3d-public] FreeWRL line 999 DEF/USE mismatch,

Further investigation on replacement scene reveals this (move camera around): 



On Tue, Jan 23, 2024 at 12:13 AM John Carlson <yottzumm at gmail.com (mailto:yottzumm at gmail.com)> wrote:
Joe, this version looks wrong in FreeWRL, but doesn't have errors?  Weird!  Compare with view3dscene. 
Probably worth a repost with a picture of how you want it to look?

John



On Mon, Jan 22, 2024 at 10:26 PM Joe D Williams <joedwil at earthlink.net (mailto:joedwil at earthlink.net)> wrote:
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 (mailto:x3d-public at web3d.org)>
Sent: Jan 22, 2024 8:05 PM
To: Extensible 3D (X3D) Graphics public discussion <x3d-public at web3d.org (mailto:x3d-public at web3d.org)>
Cc: John Carlson <yottzumm at gmail.com (mailto: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/4572fcab/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 50787 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20240123/4572fcab/attachment-0001.png>


More information about the x3d-public mailing list