[x3d-public] Problem with Instant Reality 2.6.0, FreeWRL on Mac. Not quite sure what to do about schematron error.

John Carlson yottzumm at gmail.com
Wed Nov 25 05:39:25 PST 2015


Mac Mini, works fine in X3DOM, not FreeWRL or Instant Reality.  suspect images or version of GL/shader or X3D usage.

Sphere does not show up AFAICT.

Instant Reality Console says:
LOG	Avalon	 Init: 16/351, V2.6.0 build: R-28726 Sep 30 2015 Mac OS X x86_64
LOG	Avalon	 CDF parsing (0.122472s): 624 Node-Types defined
LOG	OpenSG	 GL Vendor/Renderer: Intel Inc./Intel HD Graphics 4000 OpenGL Engine
WARNING	OpenSG	 PNG: iCCP: known incorrect sRGB profile
LOG	OpenSG	 ImageDump: RGB; 512/512/1; #mm: 1, #side: 1, #frame: 1, frameDelay 0, dataType IMAGEDATA_TYPE UCHAR8, size: 786432
LOG	OpenSG	 ImageDump: RGB; 512/512/1; #mm: 1, #side: 6, #frame: 1, frameDelay 0, dataType IMAGEDATA_TYPE UCHAR8, size: 4718592

X3D-Edit checker produces:
Performing X3D Schematron check...
<ImageTexture DEF=''/> has parent ComposedCubeMapTexture node, but must be contained by Appearance, LoadSensor, MultiTexture or TextureBackground node (or else within field declaration or fieldValue initialization) [/X3D/Scene/Transform/Shape/Appearance/ComposedCubeMapTexture/ImageTexture[1], error]
<ImageTexture DEF=''/> has parent ComposedCubeMapTexture node, but must be contained by Appearance, LoadSensor, MultiTexture or TextureBackground node (or else within field declaration or fieldValue initialization) [/X3D/Scene/Transform/Shape/Appearance/ComposedCubeMapTexture/ImageTexture[2], error]
<ImageTexture DEF=''/> has parent ComposedCubeMapTexture node, but must be contained by Appearance, LoadSensor, MultiTexture or TextureBackground node (or else within field declaration or fieldValue initialization) [/X3D/Scene/Transform/Shape/Appearance/ComposedCubeMapTexture/ImageTexture[3], error]
<ImageTexture DEF=''/> has parent ComposedCubeMapTexture node, but must be contained by Appearance, LoadSensor, MultiTexture or TextureBackground node (or else within field declaration or fieldValue initialization) [/X3D/Scene/Transform/Shape/Appearance/ComposedCubeMapTexture/ImageTexture[4], error]
<ImageTexture DEF=''/> has parent ComposedCubeMapTexture node, but must be contained by Appearance, LoadSensor, MultiTexture or TextureBackground node (or else within field declaration or fieldValue initialization) [/X3D/Scene/Transform/Shape/Appearance/ComposedCubeMapTexture/ImageTexture[5], error]
<ImageTexture DEF=''/> has parent ComposedCubeMapTexture node, but must be contained by Appearance, LoadSensor, MultiTexture or TextureBackground node (or else within field declaration or fieldValue initialization) [/X3D/Scene/Transform/Shape/Appearance/ComposedCubeMapTexture/ImageTexture[6], error]

Code is:

<?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='Immersive' version='3.3' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='http://www.web3d.org/specifications/x3d-3.3.xsd'>
    <Scene>
        <Viewpoint position='0 0 4' description='sphere in road'/>
        <Background
            backUrl='"cubemap/bBK.png" "http://coderextreme.net/roses/x3dom/cubemap/bBK.png"'
            bottomUrl='"cubemap/bBT.png" "http://coderextreme.net/roses/x3dom/cubemap/bBT.png"'
            frontUrl='"cubemap/bFR.png" "http://coderextreme.net/roses/x3dom/cubemap/bFR.png"'
            leftUrl='"cubemap/bLF.png" "http://coderextreme.net/roses/x3dom/cubemap/bLF.png"' 
            rightUrl='"cubemap/bRT.png" "http://coderextreme.net/roses/x3dom/cubemap/bRT.png"'
            topUrl='"cubemap/bTP.png" "http://coderextreme.net/roses/x3dom/cubemap/bTP.png"' />
        <Transform DEF='Rose01' >
            <Shape>		
                <Sphere/>
                <Appearance DEF='_01_-_Default' >
                    <Material diffuseColor=".7 .7 .7" specularColor=".5 .5 .5" />
                    <ComposedCubeMapTexture>
                            <ImageTexture url='"cubemap/bBK.png" "http://coderextreme.net/roses/x3dom/cubemap/bBK.png"' containerField="back"/>
                            <ImageTexture url='"cubemap/bBT.png" "http://coderextreme.net/roses/x3dom/cubemap/bBT.png"' containerField="bottom"/>
                            <ImageTexture url='"cubemap/bFR.png" "http://coderextreme.net/roses/x3dom/cubemap/bFR.png"' containerField="front"/>
                            <ImageTexture url='"cubemap/bLF.png" "http://coderextreme.net/roses/x3dom/cubemap/bLF.png"' containerField="left"/>
                            <ImageTexture url='"cubemap/bRT.png" "http://coderextreme.net/roses/x3dom/cubemap/bRT.png"' containerField="right"/>
                            <ImageTexture url='"cubemap/bTP.png" "http://coderextreme.net/roses/x3dom/cubemap/bTP.png"' containerField="top"/>
                    </ComposedCubeMapTexture>
                
                    <ComposedShader DEF='ComposedShader' containerField='shaders' language='GLSL'>
                        <field accessType="inputOutput" name='cube' type='SFInt32' value='0'/>

                        <field accessType="inputOutput" name='chromaticDispertion' type='SFVec3f' value='0.98 1.0 1.033'/>
                        <field accessType="inputOutput" name='bias' type='SFFloat' value='0.5'/>
                        <field accessType="inputOutput" name='scale' type='SFFloat' value='0.5'/>
                        <field accessType="inputOutput" name='power' type='SFFloat' value='2.0'/>
                        <ShaderPart url='"bubbles.vs" "http://coderextreme.net/roses/x3dom/bubbles.vs"' containerField='parts' type='VERTEX'>
                        </ShaderPart>
                        <ShaderPart url='"bubbles.fs" "http://coderextreme.net/roses/x3dom/bubbles.fs"'  containerField='parts' type='FRAGMENT'>
                            
                        </ShaderPart>
                    </ComposedShader>
                </Appearance>
            </Shape>
        </Transform>
    </Scene>
</X3D>


More information about the x3d-public mailing list