templates/freeworld3D/freeworld3D.html.twig line 1

Open in your IDE?
  1. {% extends 'layoutFreeworld3d.html.twig' %}
  2. {% block page_contents %}
  3.     {% for message in app.flashes('notice') %}
  4.         <div class="flash-notice">
  5.             <div class='notice'>{{ message }}</div>
  6.         </div>
  7.     {% endfor %}
  8.     {% for message in app.flashes('error') %}
  9.         <div class="flash-error">
  10.             <div class='error'>{{ message }}</div>
  11.         </div>
  12.     {% endfor %}
  13.         <!-- X3D  -->
  14.         <div style="width: 100vw; height: 90vh; display:block; right:0; left:0; box-sizing: border-box; position: absolute; left: 0; right: 0; background-color: Black;" id="x3d" class="x3d_container">
  15.                 <!-- menu -->
  16.                     <div style="position: absolute; left: 0px; width: 73px; height: 100%; display:block; border-right: 1px solid #2299C6; background-color: #222; opacity: 0.8; text-align:center; font-family: helvetica, sans-serif; font-weight: bold; font-size: 10px; color: Silver; padding-top:5px; z-index: 3;" id="x3d_menu">
  17.                     
  18.                     <div>X3D menu</div>
  19.                     <div style="margin-top:1px" id="x3d_menu_viewpoint_home">
  20.                         <button id="button_viewpoint_home" onclick="changeViewpoint('x3d_viewpoint_home')" style="font-family: helvetica, sans-serif; font-weight: normal; font-size: 10px; background-color: black; border: 1px solid #333; color: white;padding:2px;  background-image: url( '/images/x3dmenu_home.png' ); background-size: 65px 65px; height: 67px; width: 67px;" title="Home Viewpoint"></button>
  21.                     </div>                        
  22.                     <div style="margin-top:2px" id="x3d_menu_viewpoint_menu">
  23.                         <button id="button_viewpoint_menu" onclick="changeViewpoint('x3d_viewpoint_menu')" style="font-family: helvetica, sans-serif; font-weight: normal; font-size: 10px; background-color: black; border: 1px solid #333; color: white;padding:2px;  background-image: url( '/images/x3dmenu_menu.png' ); background-size: 65px 65px; height: 67px; width: 67px;" title="Menu Viewpoint"></button>
  24.                     </div>
  25.                         <span style="margin-top:3px;margin-right:1px" id="x3d_menu_fullscreen">
  26.                         <button id="button_fullscreen" style="font-family: helvetica, sans-serif; font-weight: normal; font-size: 10px; background-color: black; border: 1px solid #333; color: white;padding:2px; background-image: url( '/images/x3dmenu_fullscreen.png' ); background-size: 31px 31px; height: 33px; width: 33px;" title="full screen"></button>
  27.                     </span>
  28.                         <span style="margin-top:3px" id="x3d_menu_defaultscreen">
  29.                             <button id="button_defaultscreen" onclick="sceneResize('normal')" style="font-family: helvetica, sans-serif; font-weight: normal; font-size: 10px; background-color: black; border: 1px solid #333; color: white;padding:2px;  background-image: url( '/images/x3dmenu_defaultscreen.png' ); background-size: 31px 31px; height: 33px; width: 33px;" title="default screen"></button>
  30.                       </span>
  31.                       <!--
  32.                           <div style="margin-top:7px" id="x3d_menu_viewpoint_1">
  33.                             <button id="button_viewpoint_1" onclick="changeViewpoint('x3d_viewpoint_1')" style="font-family: helvetica, sans-serif; font-weight: normal; font-size: 10px; background-color: black; border: 1px solid #333; color: white;padding:2px;  background-image: url( '/images/x3dmenu_eye.png' ); background-size: 31px 31px; height: 33px; width: 33px;" title="viewpoint 1"></button>
  34.                       </div>
  35.                           <div style="margin-top:7px" id="x3d_menu_viewpoint_2">
  36.                             <button id="button_viewpoint_2" onclick="changeViewpoint('x3d_viewpoint_2')" style="font-family: helvetica, sans-serif; font-weight: normal; font-size: 10px; background-color: black; border: 1px solid #333; color: white;padding:2px;  background-image: url( '/images/x3dmenu_eye.png' ); background-size: 31px 31px; height: 33px; width: 33px;" title="viewpoint 2"></button>
  37.                       </div>
  38.                           <div style="margin-top:7px" id="x3d_menu_viewpoint_3">
  39.                             <button id="button_viewpoint_3" onclick="changeViewpoint('x3d_viewpoint_3')" style="font-family: helvetica, sans-serif; font-weight: normal; font-size: 10px; background-color: black; border: 1px solid #333; color: white;padding:2px;  background-image: url( '/images/x3dmenu_eye.png' ); background-size: 31px 31px; height: 33px; width: 33px;" title="viewpoint 3"></button>
  40.                       </div>    
  41.                       -->
  42.                   </div>
  43.     
  44.                   {% if app.request.get('navigationInfoType') is defined and app.request.get('navigationInfoType') != '' %}
  45.                     {% set navigationInfoType = app.request.get('navigationInfoType') %}
  46.                 {% else %}
  47.                     {% set navigationInfoType = "FLY" %}
  48.                 {% endif %}
  49.                 
  50.                 <x3d width='100%' height="90vh" id="x3d_section" style="height: 90vh; border-bottom: 2px solid #EA5B0C;background-color: #222;">
  51.                 <scene id="x3d_scene">
  52.                     <navigationInfo type='"{{ navigationInfoType }}"' id="navType"></navigationInfo>
  53.                     
  54.                     <viewpoint orientation='0 1 0 -0' position='0 3 12'  id='x3d_viewpoint_1'></viewpoint>
  55.                     <viewpoint orientation='0 1 0 0' position='0 3 3'  id='x3d_viewpoint_2'></viewpoint>
  56.                     <viewpoint orientation='0 1 0 0.5' position='-10 3 -13'  id='x3d_viewpoint_3'></viewpoint>
  57.                     <viewpoint orientation='0 1 0 -0' position='0 3 11'  id='x3d_viewpoint_home'></viewpoint>
  58.                     <viewpoint orientation='0 1 0 0' position='0 3 5'  id='x3d_viewpoint_menu'></viewpoint>
  59.                     
  60.                     <DirectionalLight ambientIntensity='0.835991' direction='0.584419 0.286636 0.75914'></DirectionalLight>
  61.                     <Background groundColor='0.2 0.2 0 0.3 0.3 0 0.5 0.5 0.3 0.1 0.3 0.4 0 0.2 0.4' skyAngle='0.04 0.05 0.1 1.309 1.570' skyColor='0.8 0.8 0.2 0.8 0.8 0.2 0.1 0.1 0.6 0.1 0.1 0.6 0.1 0.25 0.8 0.6 0.6 0.9'></Background>
  62.                     {% if freeWorld3D.preferredPosition is defined %}
  63.                         {% set preferredPosition = freeWorld3D.preferredPosition %}
  64.                     {% else %}
  65.                         {% set preferredPosition = '0 0 0' %}
  66.                     {% endif %}
  67.                     {% if freeWorld3D.preferredRotation is defined %}
  68.                         {% set preferredRotation = freeWorld3D.preferredRotation %}
  69.                     {% else %}
  70.                         {% set preferredRotation = '0 1 0 0' %}
  71.                     {% endif %}
  72.                     <!-- FreeWorld X3D -->
  73.                     <Transform DEF = 'FreeWorldX3D'
  74.                         translation = '{{ preferredPosition }}'
  75.                         scale = '1 1 1'
  76.                         rotation='{{ preferredRotation }}'>
  77.                         <Inline nameSpaceName="FreeWorld" mapDEFToID="true" url="{{ freeWorld3D.xmlFile|raw }}"></Inline>
  78.                     </Transform>
  79.                 </scene>
  80.               </x3d>
  81.     </div>
  82. {% endblock %}