[X3D-Public] Shader programming and URLs in X3D

Peter Eschler peschler at googlemail.com
Thu May 14 05:23:29 PDT 2009


Hi,

On Wed, May 13, 2009 at 8:56 PM, John A. Stewart <alex.stewart at crc.ca> wrote:
> Hi All;
>
> I'm verifying the Shader support code in FreeWRL, and I have a question.
>
> The url field, can it contain the source, or does it always have to
> designate a file? eg, with scripting, one can have a url starting with
> "javascript ..." and it will be treated as source, not as a url.

InstantPlayer supports both approaches.
See the following example:
http://www.instantreality.org/tutorial/shader-programs/

Best regards,
Peter Eschler

> See 9.2.3 of 19775-1:2008 for "Scripting language protocols"
>
> So, what happens when the source of a shader is present in the X3D file? How
> do we determine if this is the source, or if it is to be treated as a
> url/urn?
>
> eg, can we have something like:
>        url " varying vec3 myvar; ..."
>
>
>
> I can't find any reference, but maybe I'm just not seeing the forest for the
> trees.
>
> Thanks;
>
> -----------------------------------------------------------
> John A. Stewart
> Team Leader: Networked Virtual Reality
> alex.stewart at crc.ca
>
> Network Systems and Technologies -
>        Systemes et technologies des reseaux
> Communications Research Centre Canada  |
>         Centre de recherches sur les communications Canada
>
> 3701 Carling Ave.  |  3701, avenue Carling
> PO Box 11490, Station H  |  CP 11490, succursale H
>         Ottawa ON K2H 8S2   |  Ottawa (Ontario) K2H 8S2
>
> http://www.crc.ca
>



More information about the X3D-Public mailing list