[x3d-public] X3D-Edit console [was: Re: Problem with Instant Reality 2.6.0, FreeWRL on Mac. Not quite sure what to do about schematron error.]
Don Brutzman
brutzman at nps.edu
Wed Nov 25 17:22:26 PST 2015
X3D-Edit got the same validation report for me, no stack trace. My X3D-Edit console follows.
Your java version looks a bit old, it is up to 1.8.0_66 now. Shouldn't be a showstoper tho.
Xj3D is not happy with shader nodes, that might be it on your system.
--------- Commence validation checks for bubbles.x3d ---------
Performing well-formed XML check...
Checking file:/C:/Users/don/Desktop/bubbles.x3d...
Well-formed XML check: pass
Performing DOCTYPE check...
[X3dDoctypeChecker] success: valid XML declaration found; success: final X3D 3.3 DOCTYPE found.
Performing DTD validation...
Checking file:/C:/Users/don/Desktop/bubbles.x3d...
XML DTD validation: pass
Performing X3D schema validation...
Checking file:/C:/Users/don/Desktop/bubbles.x3d...
Referenced entity at "nbres:/org/web3d/x3d/externals/schemas/x3d-3.3-Web3dExtensionsPublic.xsd".
XML schema validation: pass
Performing X3D regular expression (regex) values check...
Performing X3dToClassicVrml.xslt conversion check...
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]
--------- Validation checks complete for bubbles.x3d ---------
On 11/25/2015 6:12 AM, John Carlson wrote:
> If I start X3D-Edit and run the validator against the attached file, I get the stack trace.
>
> John
>
>> On Nov 25, 2015, at 8:10 AM, John Carlson <yottzumm at gmail.com <mailto:yottzumm at gmail.com>> wrote:
>>
>> I also found this in my X3D-Edit console. I am not sure what caused it:
>>
>> X3D-Edit for Extensible 3D (X3D) Graphics scenes
>> https://savage.nps.edu/X3D-Edit
>> Java version 1.8.0_25
>> Message: Device found: Mouse-0
>> Message: Device found: Keyboard-0
>> org.web3d.vrml.renderer.common.nodes.shape.useMipMaps set to: true
>> org.web3d.vrml.renderer.common.nodes.shape.anisotropicDegree set to: 16
>> Nov 25 08:04:39 java[3136] <Warning>: void CGSUpdateManager::log() const: conn 0x1aa17 token 0x2dfffffffffddf3
>> Nov 25 08:04:39 java[3136] <Warning>: Backtrace (at 19537.6):
>> Nov 25 08:04:39 java[3136] <Warning>: void CGSUpdateManager::log() const: 0 CoreGraphics 0x00007fff918007c0 CGSDisableUpdateToken + 155
>> Nov 25 08:04:39 java[3136] <Warning>: void CGSUpdateManager::log() const: 1 AppKit 0x00007fff8db5831f ___disable_updates_sync_block_invoke_2 + 17
>> Nov 25 08:04:39 java[3136] <Warning>: void CGSUpdateManager::log() const: 2 libdispatch.dylib 0x00007fff9c95e3c3 _dispatch_client_callout + 8
>> Nov 25 08:04:39 java[3136] <Warning>: void CGSUpdateManager::log() const: 3 libdispatch.dylib 0x00007fff9c95f9aa _dispatch_barrier_sync_f_invoke + 74
>> Nov 25 08:04:39 java[3136] <Warning>: void CGSUpdateManager::log() const: 4 AppKit 0x00007fff8db581ed NSCGSDisableUpdates + 1162
>> Nov 25 08:04:39 java[3136] <Warning>: void CGSUpdateManager::log() const: 5 AppKit 0x00007fff8db57c6e NSCGSTransactionRunPreCommitActionsForOrder_ + 156
>> Nov 25 08:04:39 java[3136] <Warning>: void CGSUpdateManager::log() const: 6 AppKit 0x00007fff8db57bb5 NSCGSTransactionRunPreCommitActions_ + 21
>> Nov 25 08:04:39 java[3136] <Warning>: void CGSUpdateManager::log() const: 7 AppKit 0x00007fff8e300596 -[_NSCGSTransaction synchronize] + 42
>> Nov 25 08:04:39 java[3136] <Warning>: void CGSUpdateManager::log() const: 8 AppKit 0x00007fff8e300709 NSCGSTransactionSynchronize + 76
>> Nov 25 08:04:39 java[3136] <Warning>: void CGSUpdateManager::log() const: 9 AppKit 0x00007fff8e0ec8d1 -[NSSurface syncSurfaceWantsExtendedDynamicRange] + 150
>> Nov 25 08:04:39 java[3136] <Warning>: void CGSUpdateManager::log() const: 10 AppKit 0x00007fff8dc2abb5 -[NSSurface _createSurface] + 677
>> Nov 25 08:04:39 java[3136] <Warning>: void CGSUpdateManager::log() const: 11 AppKit 0x00007fff8dc2a510 -[NSSurface setFrame:] + 785
>> Nov 25 08:04:39 java[3136] <Warning>: void CGSUpdateManager::log() const: 12 AppKit 0x00007fff8dc29e1a -[NSSurface syncToViewUnconditionally] + 174
>> Nov 25 08:04:39 java[3136] <Warning>: void CGSUpdateManager::log() const: 13 AppKit 0x00007fff8dc29ac8 -[NSSurface orderSurface:relativeTo:] + 101
>> Nov 25 08:04:39 java[3136] <Warning>: void CGSUpdateManager::log() const: 14 AppKit 0x00007fff8dd1db66 NSOpenGLContextAttachOnScreenViewSurface + 183
>> Nov 25 08:04:39 java[3136] <Warning>: void CGSUpdateManager::log() const: 15 AppKit 0x00007fff8e044633 __27-[NSOpenGLContext setView:]_block_invoke + 192
>> Nov 25 08:04:39 java[3136] <Warning>: void CGSUpdateManager::log() const: 16 AppKit 0x00007fff8db46f05 NSPerformVisuallyAtomicChange + 147
>> Nov 25 08:04:39 java[3136] <Warning>: void CGSUpdateManager::log() const: 17 AppKit 0x00007fff8dd0a92d -[NSOpenGLContext setView:] + 119
>> Nov 25 08:04:39 java[3136] <Warning>: void CGSUpdateManager::log() const: 18 libjogl_desktop.jnilib 0x00000001290b7dc0 createContext + 400
>> Nov 25 08:04:39 java[3136] <Warning>: void CGSUpdateManager::log() const: 19 libjogl_desktop.jnilib 0x000000012911dab5 Java_jogamp_opengl_macosx_cgl_CGL_createContext0__JJZJZLjava_lang_Object_2I + 149
>> Nov 25 08:04:39 java[3136] <Warning>: void CGSUpdateManager::log() const: 20 ??? 0x000000010f531694 0x0 + 4552070804
>> Nov 25 08:04:39 java[3136] <Warning>: void CGSUpdateManager::log() const: 21 ??? 0x000000010f5234a0 0x0 + 4552012960
>> Nov 25 08:04:39 java[3136] <Warning>: void CGSUpdateManager::log() const: 22 ??? 0x000000010f5234a0 0x0 + 4552012960
>>
>>> On Nov 25, 2015, at 7:39 AM, John Carlson <yottzumm at gmail.com <mailto:yottzumm at gmail.com>> wrote:
>>>
>>> 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:
>>> LOGAvalonInit: 16/351, V2.6.0 build: R-28726 Sep 30 2015 Mac OS X x86_64
>>> LOGAvalonCDF parsing (0.122472s): 624 Node-Types defined
>>> LOGOpenSGGL Vendor/Renderer: Intel Inc./Intel HD Graphics 4000 OpenGL Engine
>>> WARNINGOpenSGPNG: iCCP: known incorrect sRGB profile
>>> LOGOpenSGImageDump: RGB; 512/512/1; #mm: 1, #side: 1, #frame: 1, frameDelay 0, dataType IMAGEDATA_TYPE UCHAR8, size: 786432
>>> LOGOpenSGImageDump: 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>
>>
>
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
More information about the x3d-public
mailing list