Skip to content
Snippets Groups Projects
Select Git revision
  • 861f10951576a2ac8b1343e8e1762b7c51518a3b
  • master default protected
  • release
  • v2.2.0
  • v2.1.1
  • v2.1.0
  • v2.0.5
  • v2.0.2
  • v2.0.1
  • v2.0.0
  • v1.3.4
  • v1.5.0
  • v1.4.0
  • v1.3.3
  • v1.3.2
  • v1.3.1
  • v1.3
  • v1.2
  • v1.1
  • v1.0
  • 0.0.1
  • 0.0.2
22 results

README.md

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    x3dom_button.html 1.09 KiB
     <script type='text/javascript' src='https://www.x3dom.org/download/x3dom.js'> </script> 
         <link rel='stylesheet' type='text/css' href='https://www.x3dom.org/download/x3dom.css'></link>
         
         <h1>Using X3DOM for VisB</h1> 
         <p> 
           This illustrates how one can use VisB to manipulated 3D Objects
         </p> 
    	 <x3d width='500px' height='400px'> 
    	   <scene> 
    		<transform id="box_trans" translation='0 0 0'> 
    		<shape id="button"> 
    		   <appearance> 
    			 <material id="box_col" diffuseColor='1 0 0'></material> 
    		   </appearance> 
    		   <box></box> 
    		</shape> 
    		<transform translation='-3 0 0'> 
    		  <shape id = "button_TRUE"> 
    			 <appearance> 
    			   <material diffuseColor='0 1 0'></material> 
    			 </appearance> 
    			 <cone></cone> 
    		  </shape> 
    		</transform> 
    		<transform id="sphere_trans" translation='3 0 0'> 
    		  <shape id = "button_FALSE"> 
    			 <appearance> 
    			   <material id="sphere_col" diffuseColor='0 0 1'></material> 
    			 </appearance> 
    			 <sphere></sphere> 
    		  </shape> 
    		</transform> 
    	   </scene> 
    	</x3d> 
    <ul>
    <li>Message: <b><span id="hover_message"></span></b>
    </li>
    </ul>