@prefix :        <https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/Visualization/TextureBackgroundCube.ttl#> .
@prefix owl:     <http://www.w3.org/2002/07/owl#> .
@prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
@prefix schema:  <http://schema.org/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .
@prefix x3d:     <https://www.web3d.org/specifications/x3d-4.0.xsd#> .
@prefix x3do:    <https://www.web3d.org/specifications/X3dOntology4.0#> .

:X3D a owl:NamedIndividual, x3do:X3D ;
  x3do:hasHead :head ;
  x3do:hasScene :Scene ;
  x3do:profile 'Immersive' ;
  x3do:version '3.3' ;
  x3do:noNamespaceSchemaLocation 'https://www.web3d.org/specifications/x3d-3.3.xsd' .
:head a owl:NamedIndividual, x3do:head ;
  x3do:hasParent :X3D ;
  x3do:hasComponent :component_1_1 ;
  x3do:hasMeta :meta_1_2, :meta_1_3, :meta_1_4, :meta_1_5, :meta_1_6, :meta_1_7, :meta_1_8, :meta_1_9, :meta_1_10, :meta_1_11, :meta_1_12, :meta_1_13 .
:component_1_1 a owl:NamedIndividual, x3do:component ;
  x3do:hasParent :head ;
  x3do:level 3 ;
  x3do:name 'EnvironmentalEffects' .
:meta_1_2 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'TextureBackgroundCube.x3d' ;
  x3do:name 'title' .
:meta_1_3 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'TextureBackground containing ImageTexture nodes, with labeled side images and wide field-of-view (FOV) Viewpoints, suitable for scene-orientation testing. Includes transparency interpolator test and also LoadSensor Script console to log events of interest.' ;
  x3do:name 'description' .
:meta_1_4 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '1 May 2017' ;
  x3do:name 'created' .
:meta_1_5 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '18 December 2023' ;
  x3do:name 'modified' .
:meta_1_6 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Don Brutzman' ;
  x3do:name 'creator' .
:meta_1_7 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'BackgroundCube.x3d.' ;
  x3do:name 'reference' .
:meta_1_8 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '../GeometricShapes/CubeWithLabeledSides.x3d' ;
  x3do:name 'reference' .
:meta_1_9 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '../Animation/CubeWithLabeledSidesViewpointSequencer.x3d' ;
  x3do:name 'reference' .
:meta_1_10 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '../Animation/CubeWithLabeledSidesViewpointSequencer.png' ;
  x3do:name 'Image' .
:meta_1_11 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/Visualization/TextureBackgroundCube.x3d' ;
  x3do:name 'identifier' .
:meta_1_12 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://www.web3d.org/x3d/content/examples/license.html' ;
  x3do:name 'license' .
:meta_1_13 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'X3D-Edit 4.0, https://www.web3d.org/x3d/tools/X3D-Edit' ;
  x3do:name 'generator' .
:meta dcterms:title "TextureBackgroundCube.x3d" .
:meta dcterms:description "TextureBackground containing ImageTexture nodes, with labeled side images and wide field-of-view (FOV) Viewpoints, suitable for scene-orientation testing. Includes transparency interpolator test and also LoadSensor Script console to log events of interest." .
:meta dcterms:created "1 May 2017" .
:meta dcterms:modified "18 December 2023" .
:meta dcterms:creator "Don Brutzman" .
:meta dcterms:reference "BackgroundCube.x3d." .
:meta dcterms:reference "../GeometricShapes/CubeWithLabeledSides.x3d" .
:meta dcterms:reference "../Animation/CubeWithLabeledSidesViewpointSequencer.x3d" .
:meta dcterms:Image "../Animation/CubeWithLabeledSidesViewpointSequencer.png" .
:meta dcterms:identifier "https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/Visualization/TextureBackgroundCube.x3d" .
:meta dcterms:license "https://www.web3d.org/x3d/content/examples/license.html" .
:meta dcterms:generator "X3D-Edit 4.0, https://www.web3d.org/x3d/tools/X3D-Edit" .
:Scene a owl:NamedIndividual, x3do:Scene ;
  x3do:hasParent :X3D ;
  x3do:hasChildren :WorldInfo_2_1, :TransparentBackground, :TransparencyAnimator, :Clock, :ImageLoadSensor, :LoadSensorReportScript, :Viewpoint_2_14, :Viewpoint_2_15, :Viewpoint_2_16, :Viewpoint_2_17, :Viewpoint_2_18, :Viewpoint_2_19 ;
  x3do:hasROUTE :ROUTE_2_4, :ROUTE_2_6, :ROUTE_2_9, :ROUTE_2_10, :ROUTE_2_11, :ROUTE_2_12, :ROUTE_2_13 .
:WorldInfo_2_1 a owl:NamedIndividual, x3do:WorldInfo ;
  x3do:hasParent :Scene ;
  x3do:title 'TextureBackgroundCube.x3d' .
:TransparentBackground a owl:NamedIndividual, x3do:TextureBackground ;
  x3do:hasParent :Scene ;
  x3do:hasBackTexture :backTexture ;
  x3do:hasBottomTexture :bottomTexture ;
  x3do:hasFrontTexture :frontTexture ;
  x3do:hasLeftTexture :leftTexture ;
  x3do:hasRightTexture :rightTexture ;
  x3do:hasTopTexture :topTexture ;
  x3do:DEF 'TransparentBackground' .
:backTexture a owl:NamedIndividual, x3do:ImageTexture ;
  x3do:hasParent :TransparentBackground ;
  x3do:DEF 'backTexture' ;
  x3do:url '"../GeometricShapes/images/back.png" "https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/images/back.png"' .
:bottomTexture a owl:NamedIndividual, x3do:ImageTexture ;
  x3do:hasParent :TransparentBackground ;
  x3do:DEF 'bottomTexture' ;
  x3do:url '"../GeometricShapes/images/bottom.png" "https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/images/bottom.png"' .
:frontTexture a owl:NamedIndividual, x3do:ImageTexture ;
  x3do:hasParent :TransparentBackground ;
  x3do:DEF 'frontTexture' ;
  x3do:url '"../GeometricShapes/images/front.png" "https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/images/front.png"' .
:leftTexture a owl:NamedIndividual, x3do:ImageTexture ;
  x3do:hasParent :TransparentBackground ;
  x3do:DEF 'leftTexture' ;
  x3do:url '"../GeometricShapes/images/left.png" "https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/images/left.png"' .
:rightTexture a owl:NamedIndividual, x3do:ImageTexture ;
  x3do:hasParent :TransparentBackground ;
  x3do:DEF 'rightTexture' ;
  x3do:url '"../GeometricShapes/images/right.png" "https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/images/right.png"' .
:topTexture a owl:NamedIndividual, x3do:ImageTexture ;
  x3do:hasParent :TransparentBackground ;
  x3do:DEF 'topTexture' ;
  x3do:url '"../GeometricShapes/images/top.png" "https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/images/top.png"' .
:TransparencyAnimator a owl:NamedIndividual, x3do:ScalarInterpolator ;
  x3do:hasParent :Scene ;
  x3do:DEF 'TransparencyAnimator' ;
  x3do:key ( 0 0.5 1 ) ;
  x3do:keyValue ( 0 1 0 ) .
:ROUTE_2_4 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'value_changed' ;
  x3do:fromNode 'TransparencyAnimator' ;
  x3do:toField 'transparency' ;
  x3do:toNode 'TransparentBackground' .
:Clock a owl:NamedIndividual, x3do:TimeSensor ;
  x3do:hasParent :Scene ;
  x3do:DEF 'Clock' ;
  x3do:cycleInterval '6' ;
  x3do:loop true .
:ROUTE_2_6 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'fraction_changed' ;
  x3do:fromNode 'Clock' ;
  x3do:toField 'set_fraction' ;
  x3do:toNode 'TransparencyAnimator' .
:ImageLoadSensor a owl:NamedIndividual, x3do:LoadSensor ;
  x3do:hasParent :Scene ;
  x3do:hasWatchList :backTexture-USE-1, :bottomTexture-USE-1, :frontTexture-USE-1, :leftTexture-USE-1, :rightTexture-USE-1, :topTexture-USE-1 ;
  x3do:DEF 'ImageLoadSensor' .
:backTexture-USE-1 a owl:NamedIndividual, x3do:ImageTexture ;
  x3do:hasParent :ImageLoadSensor ;
  owl:sameAs :backTexture . # DEF matching this USE
:bottomTexture-USE-1 a owl:NamedIndividual, x3do:ImageTexture ;
  x3do:hasParent :ImageLoadSensor ;
  owl:sameAs :bottomTexture . # DEF matching this USE
:frontTexture-USE-1 a owl:NamedIndividual, x3do:ImageTexture ;
  x3do:hasParent :ImageLoadSensor ;
  owl:sameAs :frontTexture . # DEF matching this USE
:leftTexture-USE-1 a owl:NamedIndividual, x3do:ImageTexture ;
  x3do:hasParent :ImageLoadSensor ;
  owl:sameAs :leftTexture . # DEF matching this USE
:rightTexture-USE-1 a owl:NamedIndividual, x3do:ImageTexture ;
  x3do:hasParent :ImageLoadSensor ;
  owl:sameAs :rightTexture . # DEF matching this USE
:topTexture-USE-1 a owl:NamedIndividual, x3do:ImageTexture ;
  x3do:hasParent :ImageLoadSensor ;
  owl:sameAs :topTexture . # DEF matching this USE
:LoadSensorReportScript a owl:NamedIndividual, x3do:Script ;
  x3do:hasParent :Scene ;
  x3do:hasField :field_2_8_1, :field_2_8_2, :field_2_8_3, :field_2_8_4, :field_2_8_5 ;
  x3do:DEF 'LoadSensorReportScript' ;
  x3do:sourceCode """
ecmascript:

function isActiveUpdate (eventValue)
{
   Browser.println('TextureBackgroundCube LoadSensorReportScript: isActiveUpdate=' + eventValue);
}

function isLoadedUpdate (eventValue)
{
   Browser.println('TextureBackgroundCube LoadSensorReportScript: isLoadedUpdate=' + eventValue);
}

function loadTimeUpdate (eventValue)
{
   Browser.println('TextureBackgroundCube LoadSensorReportScript: loadTimeUpdate=' + eventValue);
}

function progressUpdate (eventValue)
{
   Browser.println('TextureBackgroundCube LoadSensorReportScript: progressUpdate=' + eventValue);
}

function transparencyUpdate (eventValue)
{
// pretty busy interpolator
// Browser.println('TextureBackgroundCube LoadSensorReportScript: transparencyUpdate=' + eventValue);
}
""" .
:field_2_8_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :LoadSensorReportScript ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'isActiveUpdate' ;
  x3do:type 'SFBool' .
:field_2_8_2 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :LoadSensorReportScript ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'isLoadedUpdate' ;
  x3do:type 'SFBool' .
:field_2_8_3 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :LoadSensorReportScript ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'progressUpdate' ;
  x3do:type 'SFFloat' .
:field_2_8_4 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :LoadSensorReportScript ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'loadTimeUpdate' ;
  x3do:type 'SFTime' .
:field_2_8_5 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :LoadSensorReportScript ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'transparencyUpdate' ;
  x3do:type 'SFFloat' .
:ROUTE_2_9 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'isActive' ;
  x3do:fromNode 'ImageLoadSensor' ;
  x3do:toField 'isActiveUpdate' ;
  x3do:toNode 'LoadSensorReportScript' .
:ROUTE_2_10 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'isLoaded' ;
  x3do:fromNode 'ImageLoadSensor' ;
  x3do:toField 'isLoadedUpdate' ;
  x3do:toNode 'LoadSensorReportScript' .
:ROUTE_2_11 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'loadTime' ;
  x3do:fromNode 'ImageLoadSensor' ;
  x3do:toField 'loadTimeUpdate' ;
  x3do:toNode 'LoadSensorReportScript' .
:ROUTE_2_12 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'progress' ;
  x3do:fromNode 'ImageLoadSensor' ;
  x3do:toField 'progressUpdate' ;
  x3do:toNode 'LoadSensorReportScript' .
:ROUTE_2_13 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'value_changed' ;
  x3do:fromNode 'TransparencyAnimator' ;
  x3do:toField 'transparencyUpdate' ;
  x3do:toNode 'LoadSensorReportScript' .
:Viewpoint_2_14 a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :Scene ;
  x3do:description 'Front image of TextureBackground seen from origin' ;
  x3do:fieldOfView 1.570796 ;
  x3do:position ( 0 0 0 ) .
:Viewpoint_2_15 a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :Scene ;
  x3do:description 'Left image of TextureBackground seen from origin' ;
  x3do:fieldOfView 1.570796 ;
  x3do:orientation ( 0 1 0 -1.570796 ) ;
  x3do:position ( 0 0 0 ) .
:Viewpoint_2_16 a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :Scene ;
  x3do:description 'Top image of TextureBackground seen from origin' ;
  x3do:fieldOfView 1.570796 ;
  x3do:orientation ( 1 0 0 1.570796 ) ;
  x3do:position ( 0 0 0 ) .
:Viewpoint_2_17 a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :Scene ;
  x3do:description 'Back image of TextureBackground seen from origin' ;
  x3do:fieldOfView 1.570796 ;
  x3do:orientation ( 0 1 0 3.141593 ) ;
  x3do:position ( 0 0 0 ) .
:Viewpoint_2_18 a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :Scene ;
  x3do:description 'Right image of TextureBackground seen from origin' ;
  x3do:fieldOfView 1.570796 ;
  x3do:orientation ( 0 1 0 1.570796 ) ;
  x3do:position ( 0 0 0 ) .
:Viewpoint_2_19 a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :Scene ;
  x3do:description 'Bottom image of TextureBackground seen from origin' ;
  x3do:fieldOfView 1.570796 ;
  x3do:orientation ( 1 0 0 -1.570796 ) ;
  x3do:position ( 0 0 0 ) .
