[x3d-public] Updated SimpleShader.x3d example

Don Brutzman brutzman at nps.edu
Mon Apr 24 09:55:51 PDT 2017


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 --------------
A non-text attachment was scrubbed...
Name: SimpleShader.x3d
Type: model/x3d+xml
Size: 6649 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170424/9ee1a15b/attachment.x3d>


More information about the x3d-public mailing list