Skip to content

Instantly share code, notes, and snippets.

View andreasplesch's full-sized avatar

Andreas Plesch andreasplesch

  • Earthstruct
  • Waltham, MA
View GitHub Profile
@andreasplesch
andreasplesch / NegativeScale.x3d
Created September 24, 2023 21:09
neg. scale test
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 4.0//EN" "http://www.web3d.org/specifications/x3d-4.0.dtd">
<X3D profile='Interchange' version='4.0' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='http://www.web3d.org/specifications/x3d-4.0.xsd'>
<head>
<component name='Text' level='1'/>
<meta name='created' content='Tue, 19 Sep 2023 18:19:25 GMT'/>
<meta name='comment' content='Rise and Shine'/>
<meta name='creator' content='Holger Seelig'/>
<meta name='generator' content='Sunrize X3D Editor V1.1.2, https://create3000.github.io/sunrize/'/>
<meta name='modified' content='Tue, 19 Sep 2023 19:38:18 GMT'/>
@andreasplesch
andreasplesch / Leif_091823.x3d
Last active September 21, 2023 20:35
a better Leif
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 4.0//EN" "https://www.web3d.org/specifications/x3d-4.0.dtd">
<X3D xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance" profile="Immersive" version="4.0" xsd:noNamespaceSchemaLocation="http://www.web3d.org/specifications/x3d-4.0.xsd">
<head>
<component level="2" name="HAnim"/>
<component level="3" name="Texturing"/>
<meta content="Leif.x3d" name="title"/>
<meta content="Humanoid model of a grandchild" name="description"/>
<meta content="Joint nodes cannot directly contain geomety, insert a child HAnimSegment first" name="error"/>
<meta content="originals/Leif73Final.x3dv" name="reference"/>
@andreasplesch
andreasplesch / TextureEncodingTest.x3d
Last active October 5, 2023 16:03
x3dom release with draco test
<X3D>
<Scene>
<PointLight location='0 0 10' intensity='5'/>
<Viewpoint position="0 0 20" centerOfRotation="0.5 0.5 0.5"/>
<Inline url='"https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/master/2.0/TextureEncodingTest/glTF/TextureEncodingTest.gltf"'/>
</Scene>
</X3D>
@andreasplesch
andreasplesch / JoeStarterTest.x3d
Last active September 10, 2023 03:52
auto start timer
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "https://www.web3d.org/specifications/x3d-3.0.dtd">
<X3D profile='Interactive' version='3.0' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.0.xsd'>
<head>
<meta content='cycletimeJoe.x3d' name='from by Joe'/>
</head>
<Scene>
<WorldInfo title='cycletimeJoe.x3d'/>
<Viewpoint/>
@andreasplesch
andreasplesch / CycleInterval.x3d
Last active August 16, 2023 18:56
dynamic cycleInterval test
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 4.0//EN" "http://www.web3d.org/specifications/x3d-4.0.dtd">
<X3D profile='Interchange' version='4.0' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='http://www.web3d.org/specifications/x3d-4.0.xsd'>
<head>
<component name='PointingDeviceSensor' level='1'/>
<component name='Scripting' level='1'/>
<meta name='created' content='Tue, 15 Aug 2023 18:05:37 GMT'/>
<meta name='comment' content='Rise and Shine'/>
<meta name='creator' content='Holger Seelig'/>
<meta name='generator' content='Sunrize X3D Editor V1.0.91, https://create3000.github.io/sunrize/'/>
<X3D id='x3d' showStat='false' showLog='false' x='0px' y='0px' width='1000' height='700' style='border:1px solid black'>
<Scene DEF='scene'>
<!-- X3D generated by the NIST STEP File Analyzer and Viewer 4.74 -->
<!-- COORDINATE AXIS -->
<Switch whichChoice='0' id='swAxes'>
<Group>
<Shape>
<Appearance>
<Material emissiveColor='1 0 0'/>
</Appearance>
@andreasplesch
andreasplesch / dodecahedron.x3d
Last active August 14, 2023 19:43
sphere eversion
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 4.0//EN" "http://www.web3d.org/specifications/x3d-4.0.dtd">
<X3D profile='Core' version='4.0' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='http://www.web3d.org/specifications/x3d-4.0.xsd'>
<head>
<component name='Core' level='2'/>
<component name='EnvironmentalEffects' level='4'/>
<component name='EnvironmentalSensor' level='3'/>
<component name='Geometry3D' level='4'/>
<component name='Grouping' level='3'/>
<component name='Interpolation' level='5'/>
@andreasplesch
andreasplesch / imaginary-harmonic-cutoff-figureOc_alpha.x3d
Last active July 27, 2023 15:20
Pisanty et al., 2020 imaginary-harmonic-cutoff.github.io/figureOc.x3d
This file has been truncated, but you can view the full file.
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE X3D PUBLIC 'ISO//Web3D//DTD X3D 3.0//EN' 'http://www.web3d.org/specifications/x3d-3.0.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'>
<head>
<meta name='creator'
content='Emilio Pisanty' />
<meta name='created'
content='Thu 26 Mar 2020 19:16:33' />
@andreasplesch
andreasplesch / interpolators.x3d
Last active July 16, 2023 14:37
interpolator test
<X3D>
<Scene>
<worldinfo info="&quot;generator:Khronos Blender glTF 2.0 I/O&quot; &quot;version:2.0&quot; " title=""></worldinfo>
<transform def="glTF_NODE_Cube" render="true" visible="true" bboxcenter="0,0,0" bboxsize="-1,-1,-1" bboxdisplay="false" bboxmargin="0.01" bboxcolor="1,1,0" center="0,0,0" translation="0,0,0" rotation="0,0,0,0" scale="1,1,1" scaleorientation="0,0,0,0" id="gltf__glTF_NODE_Cube">
<shape render="true" visible="true" bboxcenter="0,0,0" bboxsize="-1,-1,-1" bboxdisplay="false" bboxmargin="0.01" bboxcolor="1,1,0" ispickable="true" idoffset="0">
<appearance sorttype="opaque" alphaclipthreshold="0" sortkey="0">
<physicalmaterial def="glTF_MATERIAL_Material" basecolorfactor="0.800000011920929 0.800000011920929 0.800000011920929 1" metallicfactor="0" roughnessfactor="0.5" emissivefactor="0 0 0" alphamode="OPAQUE" alphacutoff="0.5" model="roughnessMetallic" diffusefactor="1,1,1,1" specularfactor="1,1,1" glossinessfactor="1" normalspace="TANGENT" normalbias="-1,
@andreasplesch
andreasplesch / BoxWithHoles183.x3d
Last active July 15, 2023 11:48
x3dom_issue1279
<X3D>
<Scene>
<Viewpoint description="defaultX3DView"/>
<Viewpoint position="-1.18765 -0.23318 3.09144" orientation="0.17376 -0.97635 0.12868 0.27417"
centerOfRotation="0 0 -1.25" description="obliqueThroughSquareCutout" />
<Viewpoint position="1.74165 0.07545 2.90619" orientation="-0.04242 0.99909 0.00430 0.39716" centerOfRotation="0 0 -1.25" description="obliqueThroughRoundCutout" />
<!--The next shape in red is created in order to later provide it with holes. To make this possible, the shape must be given a sortkey that is larger than the sortkey of the shapes that represent the hole. In addition, the shape must have at least a slight tranzparency.
transparency='0.01'
sortkey='2'
-->