[x3d-public] This file does not compile in X3D Java SAI. Why not? ShouldIprovide equivalent X3D? ComposedShader fields.

yottzumm at gmail.com yottzumm at gmail.com
Wed Jan 4 13:07:39 PST 2017


The standard:

http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/shaders.html#ComposedShader

Says that ComposedShader’s support fields,

But the X3D Java SAI doesn’t support them?

There has been some discussion…
http://web3d.org/pipermail/x3d-public_web3d.org/2015-August/003569.html

ComposedShader X3D examples found in here, and files underneath.

https://github.com/coderextreme/X3DJSONLD

bubbles.x3d
flowers4.x3d
flowers7.x3d
geo.x3d
john.x3d
john2.x3d
mirror.x3d
mirror2.x3d
bub.xhtml
bumpy.html
flowers5.html
flowers6.html
geobubbles.html
mirror2.html
mirror3.html
sphere.html
sphere2.html
sphere3.html

Note that you may have to change the shader files to get them to work.  I have provided browser specific shaders in some files (x3dom.vs, cobweb.vs, instant.vs).  The shaders are dependent on variables in the specific browser, since there is NO STANDARD that I know of.  Growl.  See thread ending: http://web3d.org/pipermail/x3d-public_web3d.org/2016-March/004605.html  How does one form a working group in X3D to address shader variables?  Can we get Khronos involved?  Are shaders deprecated due to some forthcoming announcement of merge between XML3D and X3D?  Can I implement a prismatic bubble with ???? (something else besides shaders) in X3D?  In a way that works across browsers, and not only on the web?  Do I see the promise of X3D fading?  Yes!

John

Sent from Mail for Windows 10

From: yottzumm at gmail.com
Sent: Wednesday, January 4, 2017 12:06 PM
To: Don Brutzman; x3d-public at web3d.org; Roy Walmsley
Subject: RE: This file does not compile in X3D Java SAI. Why not? ShouldIprovide equivalent X3D?

Yep:

$ javac geo.java
geo.java:132: error: cannot find symbol
                ComposedShader0_0_8_0_2_4.addField(field0_0_8_0_2_4_0);
                                         ^
  symbol:   method addField(fieldObject)
  location: variable ComposedShader0_0_8_0_2_4 of type ComposedShaderObject
geo.java:138: error: cannot find symbol
                ComposedShader0_0_8_0_2_4.addField(field0_0_8_0_2_4_2);
                                         ^
  symbol:   method addField(fieldObject)
  location: variable ComposedShader0_0_8_0_2_4 of type ComposedShaderObject
geo.java:144: error: cannot find symbol
                ComposedShader0_0_8_0_2_4.addField(field0_0_8_0_2_4_4);
                                         ^
  symbol:   method addField(fieldObject)
  location: variable ComposedShader0_0_8_0_2_4 of type ComposedShaderObject
geo.java:150: error: cannot find symbol
                ComposedShader0_0_8_0_2_4.addField(field0_0_8_0_2_4_6);
                                         ^
  symbol:   method addField(fieldObject)
  location: variable ComposedShader0_0_8_0_2_4 of type ComposedShaderObject
geo.java:156: error: cannot find symbol
                ComposedShader0_0_8_0_2_4.addField(field0_0_8_0_2_4_8);
                                         ^
  symbol:   method addField(fieldObject)
  location: variable ComposedShader0_0_8_0_2_4 of type ComposedShaderObject
5 errors

Sent from Mail for Windows 10

From: Don Brutzman
Sent: Wednesday, January 4, 2017 1:29 AM
To: yottzumm at gmail.com; x3d-public at web3d.org; Roy Walmsley
Subject: Re: This file does not compile in X3D Java SAI. Why not? Should Iprovide equivalent X3D?

wondering do you have an error console?

On 12/31/2016 4:10 PM, yottzumm at gmail.com wrote:
> See attached.

also please note presence of "pipeline" methods for each setter (except for addChildren due to prior interface) which you may find preferable.

for example

                                X3D0.setScene(Scene0_0);
                                X3D0.setProfile("Immersive");
                                X3D0.setVersion("3.3");

can also be written

                                X3D0.setVersion("3.3").setProfile("Immersive").setScene(Scene0_0);

all the best, Don
-- 
Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman at nps.edu
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170104/38d80dfa/attachment-0001.html>


More information about the x3d-public mailing list