[x3d-public] Updated SimpleShader.x3d example

yottzumm at gmail.com yottzumm at gmail.com
Mon Apr 24 10:05:01 PDT 2017


Don, looked at sourceforge.   Won’t extra CDATA sections be interpreted as shader code? Don’t you want <!--→

?
Sent from Mail for Windows 10

From: Don Brutzman
Sent: Monday, April 24, 2017 12:56 PM
To: Holger Seelig; yottzumm at gmail.com
Cc: X3D Graphics public mailing list
Subject: Re: Updated SimpleShader.x3d example

cc: list

On 4/21/2017 11:48 AM, Holger Seelig wrote:
> 
> The example will now work with Cobweb. As the Appeareance »shaders« field can hold multiple shaders I added a second ComposedShader after the existing one for Cobweb.
> 
>  > http://www.web3d.org/x3d/content/examples/Basic/Shaders/SimpleShaderIndex.html
>  [...]> Am 18.04.2017 um 11:35 schrieb yottzumm at gmail.com:
>> [...]
>>
>> I don’t think this Cobweb version is working on the X3D examples website:
>>
>> http://www.web3d.org/x3d/content/examples/Basic/Shaders/SimpleShaderIndex.html
>>
>> I think it may have something to do with some gl_ shader variables not
>> being available.  Try replacing with x3d_ for cobweb, and declaring them
>> in the shader (I don’t think it will work otherwise, but I could be
>> wrong).  You will probably have to provide modified shader code in
>> addition to the normal glsl shader.  If providing an alternate URL for
>> cobweb will work, I would do it—I am unsure what would happen.  We may
>> have to provide an alternate URL for each X3D vendor.  Sigh!

Thanks for the improvements gentlemen.  I've tuned this up a bit further (naming conventions, c14n canonicalization) and checked it in.

Also "quoted" some of the MFString entries, where more than one string value was present, but we likely have more work to do there.  Not yet runnable by me.

X3D-Edit isn't handling ShaderPart url/script correctly, will work on that.

Latest shared version maintained online at:

http://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Basic/Shaders

https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Basic/Shaders/SimpleShader.x3d

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/20170424/aa31d387/attachment.html>


More information about the x3d-public mailing list