[x3d-public] Fill in what support there is for ShaderPart Tessellation control and Tessellation evaluation shaders

Gerallt Franke geralltf at gmail.com
Fri Jul 22 18:09:12 PDT 2016


Hey guys just wondering if there's any feedback on this one

I've read the specification on ShaderPart
<http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/shaders.html#ShaderPart>
and
noticed that the type attribute is restricted to ["VERTEX"|"FRAGMENT"]

however later read  "The type field indicates whether this object shall be
compiled as a vertex shader, fragment shader, or other future-defined
shader type."

So I guess any further additions to the type restriction shall be drafted
in a later spec

On Mon, Jul 18, 2016 at 9:52 PM, Gerallt Franke <geralltf at gmail.com> wrote:

> Hi could someone fill me in on what support there is for tessellation
> shaders?
>
>
> I understand that WebGL / OpenGL ES 2.0 does not support the advanced
> capabilities of OpenGL 4.x, X3DOM is very much in this space as it is
> JavaScript based, however for the sake of what may or may not be is there
> something in X3D 3.3 or 4.x specification?
>
> If X3D was embedded directly into every browser like SVG is, then surely
> OpenGL 4 or later could be accessed?
>
> An example of the behaviour I am looking for is this output:
>
> https://github.com/RealityDaemon/x3d-finely-sharpened/raw/master/screenshots/screenshot1.png
>
> Maybe Tessellation ShaderPart Type like this:
> <ShaderPart type='TESS_CONTROL' >#version 420 core...shader
> here</ShaderPart>
>
>
>
> See attached X3D Scene with example tessellation shaders or take a quick
> look below:
>
>
> Many thanks,
>
>
> Gerallt
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "
> http://www.web3d.org/specifications/x3d-3.3.dtd">
> <X3D profile='Interchange' version='3.3' xmlns:xsd='
> http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='
> http://www.web3d.org/specifications/x3d-3.3.xsd'>
>   <head>
>     <meta content='Icosahedron-tessellate.x3d' name='title'/>
>     <meta content='Icosahedron shape composed using IndexedTriangleSet or
> IndexedFaceSet node with tesselation shader for X3D spec consideration'
> name='description'/>
>     <meta content='Gerallt Franke' name='creator'/>
>     <meta content='18 June 2016' name='created'/>
>     <meta content='Recommended browser for viewing is
> x3d-finely-sharpened' name='X3DBrowser'/>
>     <meta content='GPLv3' name='License'/>
>   </head>
>   <Scene>
>     <Shape>
> <IndexedTriangleSet solid="false" index="2 1 0  3 2 0  4 3 0  5 4 0  1 5 0
>  11 6 7  11 7 8  11 8 9  11 9 10  11 10 6  1 2 6  2 3 7  3 4 8  4 5 9  5 1
> 10  2  7 6  3  8 7  4  9 8  5 10 9  1 6 10  "
> >
> <Coordinate point="0.000f 0.000f 1.000f, 0.894f 0.000f 0.447f, 0.276f
> 0.851f 0.447f, -0.724f 0.526f 0.447f, -0.724f -0.526f 0.447f, 0.276f
> -0.851f 0.447f, 0.724f 0.526f -0.447f, -0.276f 0.851f -0.447f, -0.894f
> 0.000f -0.447f, -0.276f -0.851f -0.447f, 0.724f -0.526f -0.447f, 0.000f
> 0.000f -1.000f " />
> </IndexedTriangleSet>
> <Appearance>
> <Material diffuseColor='0 1.0 1.0' />
> <ImageTexture url='"spectrum.jpg"'/>
> <ComposedShader language='GLSL'>
> <field accessType='inputOnly' name='TessLevelInner' type='SFFloat'
> value="3"/>
> <field accessType='inputOnly' name='TessLevelOuter' type='SFFloat'
> value="2" />
> <ShaderPart type='VERTEX' url='data:text/plain
> ..... ' />
>
> <ShaderPart type='TESS_CONTROL' url='data:text/plain
> ..... ' />
> <ShaderPart type='TESS_EVAL' url='data:text/plain
> ..... ' />
> <ShaderPart type='FRAGMENT' url='data:text/plain
> ..... ' />
> </ComposedShader>
> </Appearance>
>     </Shape>
>   </Scene>
> </X3D>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20160723/be250e94/attachment.html>


More information about the x3d-public mailing list