<div dir="auto">Sorry, file is here:</div><div dir="auto"><br></div><div dir="auto"><div><a href="https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/data/rubik2x2x2.x3d">https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/data/rubik2x2x2.x3d</a></div><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 1, 2021 at 8:46 PM John Carlson <<a href="mailto:yottzumm@gmail.com">yottzumm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div dir="auto">Wondering if I should toss this attached example .x3d out as invalid, and starting over again with no Protos.</div><div dir="auto"><br></div><div dir="auto">Can anyone else confirm that it only renders properly in FreeWRL?</div><div dir="auto"><br></div><div dir="auto">According to me, it should show 4 colored prisms (two boxes per prism).</div><div dir="auto"><br></div><div dir="auto">If the sample is acceptable, what do we need to do to get validators and browsers to accept the file and draw it properly?</div><div dir="auto"><br></div><div dir="auto"><span style="border-color:rgb(0,0,0);color:rgb(0,0,0)">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.</span><br></div><div dir="auto"><br></div><div dir="auto">Thanks!</div><div dir="auto"><br></div><div dir="auto">John</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">---------- Forwarded message ---------<br>From: <strong class="gmail_sendername" dir="auto">John Carlson</strong> <span dir="auto"><<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>></span><br>Date: Sat, Aug 28, 2021 at 4:50 PM<br>Subject: Re: fieldValue.setIS()? Is this valid X3D?<br>To: X3D Graphics public mailing list <<a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a>>, Don Brutzman <<a href="mailto:brutzman@nps.edu" target="_blank">brutzman@nps.edu</a>><br></div><br><br>Here's what Don's Java compiler errors look like, but I've modified the <br>
rubik2x2x2.x3d  See attached.<br>
<br>
I'm not going to revert for now, because this rubik's cube is difficult <br>
to deal with. I did not have problems with the other rubik's that I know <br>
of in many browsers, but this one has a connect on a fieldValue <br>
(children) being an IS statement.<br>
<br>
FreeWRL is the only browser I've tested (I tested view3dscene and <br>
X3DJSONLD recently), which doesn't show a solid white (red before <br>
modifications). Instead, FreeWRL show the 4 colored prisms.<br>
<br>
The X3D validator throws a lot of errors/warnings.  I will likely not <br>
check this X3D XML file in.<br>
<br>
Anyway, interesting attempt on my part.</div><div class="gmail_quote" dir="auto"><br></div><div class="gmail_quote" dir="auto">I do have an example with the value attribute removed from the fieldValue, if not this one.</div></div><div><div class="gmail_quote" dir="auto"><br>
<br>
John<br>
<br>
/net/x3djsonld/data/rubik2x2x2.java:104: error: incompatible types: IS <br>
cannot be converted to X3DNode<br>
                 .addConnect(new <br>
connect().setNodeField("diffuseColor").setProtoField("diffuseColor")))))<br>
                            ^<br>
./net/x3djsonld/data/rubik2x2x2.java:109: error: incompatible types: IS <br>
cannot be converted to X3DNode<br>
                 .addConnect(new <br>
connect().setNodeField("diffuseColor").setProtoField("diffuseColor"))))))))<br>
                            ^<br>
./net/x3djsonld/data/rubik2x2x2.java:123: error: incompatible types: IS <br>
cannot be converted to X3DNode<br>
                 .addConnect(new <br>
connect().setNodeField("diffuseColor").setProtoField("x1diffuseColor")))))<br>
                            ^<br>
./net/x3djsonld/data/rubik2x2x2.java:128: error: incompatible types: IS <br>
cannot be converted to X3DNode<br>
                 .addConnect(new <br>
connect().setNodeField("diffuseColor").setProtoField("x2diffuseColor"))))))))<br>
                            ^<br>
Note: Some messages have been simplified; recompile with -Xdiags:verbose <br>
to get full output<br>
4 errors<br>
<br>
On 8/28/21 4:14 PM, John Carlson wrote:<br>
> Note that my Java version of rubik2x2x2.java throws the following.  I <br>
> will look at Don's version to see what it generates. My version is <br>
> attached.<br>
><br>
> rubik2x2x2.java:112: error: cannot find symbol<br>
>                   .setIS(new IS()<br>
>                   ^<br>
>   symbol:   method setIS(IS)<br>
>   location: class fieldValue<br>
> rubik2x2x2.java:118: error: cannot find symbol<br>
>                   .setIS(new IS()<br>
>                   ^<br>
>   symbol:   method setIS(IS)<br>
>   location: class fieldValue<br>
> rubik2x2x2.java:124: error: cannot find symbol<br>
>                   .setIS(new IS()<br>
>                   ^<br>
>   symbol:   method setIS(IS)<br>
>   location: class fieldValue<br>
> rubik2x2x2.java:130: error: cannot find symbol<br>
>                   .setIS(new IS()<br>
>                   ^<br>
>   symbol:   method setIS(IS)<br>
>   location: class fieldValue<br>
> 4 errors<br>
><br>
</div></div>
</blockquote></div></div>