[x3d-public] Fwd: fieldValue.setIS()? Is this valid X3D?

John Carlson yottzumm at gmail.com
Wed Sep 1 18:46:45 PDT 2021


Wondering if I should toss this attached example .x3d out as invalid, and
starting over again with no Protos.

Can anyone else confirm that it only renders properly in FreeWRL?

According to me, it should show 4 colored prisms (two boxes per prism).

If the sample is acceptable, what do we need to do to get validators and
browsers to accept the file and draw it properly?

I do have an example with the value attributes removed from the fieldValue,
if not this one.   I also override setIS with addChild as previously
discussed.

Thanks!

John

---------- Forwarded message ---------
From: John Carlson <yottzumm at gmail.com>
Date: Sat, Aug 28, 2021 at 4:50 PM
Subject: Re: fieldValue.setIS()? Is this valid X3D?
To: X3D Graphics public mailing list <x3d-public at web3d.org>, Don Brutzman <
brutzman at nps.edu>


Here's what Don's Java compiler errors look like, but I've modified the
rubik2x2x2.x3d  See attached.

I'm not going to revert for now, because this rubik's cube is difficult
to deal with. I did not have problems with the other rubik's that I know
of in many browsers, but this one has a connect on a fieldValue
(children) being an IS statement.

FreeWRL is the only browser I've tested (I tested view3dscene and
X3DJSONLD recently), which doesn't show a solid white (red before
modifications). Instead, FreeWRL show the 4 colored prisms.

The X3D validator throws a lot of errors/warnings.  I will likely not
check this X3D XML file in.

Anyway, interesting attempt on my part.

I do have an example with the value attribute removed from the fieldValue,
if not this one.

John

/net/x3djsonld/data/rubik2x2x2.java:104: error: incompatible types: IS
cannot be converted to X3DNode
                 .addConnect(new
connect().setNodeField("diffuseColor").setProtoField("diffuseColor")))))
                            ^
./net/x3djsonld/data/rubik2x2x2.java:109: error: incompatible types: IS
cannot be converted to X3DNode
                 .addConnect(new
connect().setNodeField("diffuseColor").setProtoField("diffuseColor"))))))))
                            ^
./net/x3djsonld/data/rubik2x2x2.java:123: error: incompatible types: IS
cannot be converted to X3DNode
                 .addConnect(new
connect().setNodeField("diffuseColor").setProtoField("x1diffuseColor")))))
                            ^
./net/x3djsonld/data/rubik2x2x2.java:128: error: incompatible types: IS
cannot be converted to X3DNode
                 .addConnect(new
connect().setNodeField("diffuseColor").setProtoField("x2diffuseColor"))))))))
                            ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose
to get full output
4 errors

On 8/28/21 4:14 PM, John Carlson wrote:
> Note that my Java version of rubik2x2x2.java throws the following.  I
> will look at Don's version to see what it generates. My version is
> attached.
>
> rubik2x2x2.java:112: error: cannot find symbol
>                   .setIS(new IS()
>                   ^
>   symbol:   method setIS(IS)
>   location: class fieldValue
> rubik2x2x2.java:118: error: cannot find symbol
>                   .setIS(new IS()
>                   ^
>   symbol:   method setIS(IS)
>   location: class fieldValue
> rubik2x2x2.java:124: error: cannot find symbol
>                   .setIS(new IS()
>                   ^
>   symbol:   method setIS(IS)
>   location: class fieldValue
> rubik2x2x2.java:130: error: cannot find symbol
>                   .setIS(new IS()
>                   ^
>   symbol:   method setIS(IS)
>   location: class fieldValue
> 4 errors
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20210901/6d32b78a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rubik.x3d
Type: application/octet-stream
Size: 4661 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20210901/6d32b78a/attachment.obj>


More information about the x3d-public mailing list