UNPKG

webgl-3d-animation

Version:

Interactive 3D animation using WebGL showing a 2D predator prey ecology on a grid which is real-time mapped onto the surface of a 3D torus. node.js server side gives access to WAV format files which are rendered using Web Audio API

108 lines (89 loc) 2.67 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>WebGL Fluid Experiment</title> <meta id="viewport" name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <meta name="apple-mobile-web-app-capable" content="yes"> <script type="text/javascript" src="./GLFluid.js"></script> <script> window.addEventListener ("touchmove", function (event) { event.preventDefault (); }, false); if (typeof window.devicePixelRatio != 'undefined' && window.devicePixelRatio > 2) { var meta = document.getElementById ("viewport"); meta.setAttribute ('content', 'width=device-width, initial-scale=' + (2 / window.devicePixelRatio) + ', user-scalable=no'); } </script> <style> html,body { margin: 0; padding: 0; height: 100%; overflow: hidden; } #content { background: #000000; width: 100%; height: 100%; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; cursor: pointer; } </style> <!-- Icon Font --> <link rel="stylesheet" type="text/css" href="iconfont.css"> <!-- Open Graph Meta --> <meta property="og:title" content="WebGL Fluid Experiment" /> <meta property="og:type" content="website" /> <meta property="og:url" content="http://haxiomic.github.io/GPU-Fluid-Experiments/html5/" /> <meta property="og:image" content="http://haxiomic.github.io/GPU-Fluid-Experiments/html5/glfluid.jpg" /> <!-- / --> <!-- Additional dat.GUI styling --> <style> /* green left border for selects */ .dg .cr.object{ border-left: 3px solid #5CB36D; } /* disabled row style */ .dg .cr.disabled{ border-left-color: #353535 !important; } .dg .cr input[disabled]{ background: none !important; color: #8C8C8C !important; } /* new row type: link */ .dg .cr.link, .dg .cr.link .property-name, .dg .cr.link *{ cursor: pointer; } .dg .cr.link:hover{ background: #111; } .dg .cr.footer, .dg .cr.footer .property-name, .dg .cr.footer *{ font-size: 110%; } /* new row type: footer */ .dg .cr.footer{ color: #939699; transition: color 0.2s; } .dg .cr.footer:hover{ color: #2FA1D6; transition: color 0.2s; } /* row icon */ .dg .cr [class^="icon-"], [class*=" icon-"]{ font-size: 150%; float: right; text-align: center; width: 27px; } </style> <script type="text/javascript" src="./dat.gui.min.js"></script> </head> <body> <div id="content"></div> <script type="text/javascript"> lime.embed ("content", 0, 0, "FFFFFF"); </script> </body> </html>