-
Notifications
You must be signed in to change notification settings - Fork 0
/
instance.php
39 lines (33 loc) · 1.71 KB
/
instance.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<html>
<body>
<script src="dist/three.js"></script>
<div style='width: 800px; height:600px;top:0px;bottom:0px' id='renderWindow'></div>
<script src="//jdataview.github.io/dist/jdataview.js"></script>
<!--<script src="//jdataview.github.io/dist/jbinary.js"></script>-->
<script src="dist/jquery-1.4.4-binary-ajax.js"></script>
<script src="dist/stats.min.js"></script>
<script src="dist/OrbitControls.js"></script>
<script src="dist/carload.js"></script>
<script>
carloadjsconfigure("renderWindow", 'rgb(230,245,255)', true);
//carloadjsconfigure("renderWindow", 'rgb(128,192,255)', true);
initSceneAndCamera();
initLightsAndControl();
//problems:
//var l = new paramsFile("./cars/BMW330i/parameters.txt"); //--matrix inverse problem, works (warning)
//var l = new paramsFile("./cars/rckallel2/parameters.txt"); //--error, trying to load inexistant stuffs
//var l = new paramsFile("./cars/microcasque/parameters.txt"); //--half transparency not supported yet
//var l = new paramsFile("./cars/ford_roadster_32/parameters.txt"); //-- trying to load NONE
var l = new paramsFile("./cars/<?php echo $_GET["name"] ?>/parameters.txt"); //--cross car test, pins and springs
//passed:
//var l = new paramsFile("./cars/Toyeca/parameters.txt");
//var l = new paramsFile("./cars/AE86D/parameters.txt"); //-
//var l = new paramsFile("./cars/Thorax/parameters.txt"); //-- cross car test : "ok"
//var l = new paramsFile("./cars/tc5/parameters.txt"); //--softcar example, "ok"
//var l = new paramsFile("./cars/futari/parameters.txt"); //car with unusual body test, "ok"
//var l = new paramsFile("./cars/wincar2/parameters.txt"); //car with spinner test, "ok"
//var l = new paramsFile("./cars/rckallel/parameters.txt"); //--works
animate();
</script>
</body>
</html>