instantreality forum
news: Welcome to the instantreality forums!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
January 19, 2018, 06:05:28 pm


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: ComposedCubeMap to Sphere not working in 2.6.0  (Read 892 times)
coderextreme
Newbie
*
Posts: 3


View Profile
« on: November 25, 2015, 02:33:42 pm »

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

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>
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.15 | SMF © 2011, Simple Machines