-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
small VRC improvements; add selector offset; query distance; new exam…
…ples including remote control app
- Loading branch information
Showing
33 changed files
with
831 additions
and
158 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
154 changes: 154 additions & 0 deletions
154
data/collections/samples/models/chrysippus/50k_delighted-4k-basis.gltf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,154 @@ | ||
{ | ||
"asset" : { | ||
"copyright" : "CC-BY-NC E.Demetrescu", | ||
"generator" : "Khronos glTF Blender I/O v1.6.16", | ||
"version" : "2.0" | ||
}, | ||
"extensionsUsed" : [ | ||
"KHR_draco_mesh_compression" | ||
], | ||
"extensionsRequired" : [ | ||
"KHR_draco_mesh_compression" | ||
], | ||
"scene" : 0, | ||
"scenes" : [ | ||
{ | ||
"name" : "Scene", | ||
"nodes" : [ | ||
0 | ||
] | ||
} | ||
], | ||
"nodes" : [ | ||
{ | ||
"mesh" : 0, | ||
"name" : "50k_delighted" | ||
} | ||
], | ||
"materials" : [ | ||
{ | ||
"doubleSided" : true, | ||
"name" : "50k_delighted", | ||
"normalTexture" : { | ||
"index" : 0 | ||
}, | ||
"pbrMetallicRoughness" : { | ||
"baseColorTexture" : { | ||
"index" : 1 | ||
}, | ||
"metallicRoughnessTexture" : { | ||
"index" : 2 | ||
}, | ||
|
||
"roughnessFactor": 1.0, | ||
"metallicFactor": 1.0 | ||
} | ||
} | ||
], | ||
"meshes" : [ | ||
{ | ||
"name" : "50k_delighted", | ||
"primitives" : [ | ||
{ | ||
"attributes" : { | ||
"POSITION" : 0, | ||
"NORMAL" : 1, | ||
"TEXCOORD_0" : 2 | ||
}, | ||
"extensions" : { | ||
"KHR_draco_mesh_compression" : { | ||
"bufferView" : 0, | ||
"attributes" : { | ||
"POSITION" : 0, | ||
"NORMAL" : 1, | ||
"TEXCOORD_0" : 2 | ||
} | ||
} | ||
}, | ||
"indices" : 3, | ||
"material" : 0, | ||
"mode" : 4 | ||
} | ||
] | ||
} | ||
], | ||
"textures" : [ | ||
{ | ||
"sampler" : 0, | ||
"source" : 0 | ||
}, | ||
{ | ||
"sampler" : 0, | ||
"source" : 1 | ||
}, | ||
{ | ||
"sampler" : 0, | ||
"source" : 2 | ||
} | ||
], | ||
"images" : [ | ||
{ | ||
"name" : "CH_Nor", | ||
"uri" : "4k/CH_Nor.basis" | ||
}, | ||
{ | ||
"name" : "CH_albedo", | ||
"uri" : "4k/CH_albedo.basis" | ||
}, | ||
{ | ||
"name" : "CH_Met-CH_Rough", | ||
"uri" : "4k/CH_Met-CH_Rough.basis" | ||
} | ||
], | ||
"accessors" : [ | ||
{ | ||
"componentType" : 5126, | ||
"count" : 26044, | ||
"max" : [ | ||
-0.247078999876976, | ||
0.07961300015449524, | ||
0.06736399978399277 | ||
], | ||
"min" : [ | ||
-0.33241501450538635, | ||
-0.06719200313091278, | ||
-0.026221999898552895 | ||
], | ||
"type" : "VEC3" | ||
}, | ||
{ | ||
"componentType" : 5126, | ||
"count" : 26044, | ||
"type" : "VEC3" | ||
}, | ||
{ | ||
"componentType" : 5126, | ||
"count" : 26044, | ||
"type" : "VEC2" | ||
}, | ||
{ | ||
"componentType" : 5123, | ||
"count" : 150000, | ||
"type" : "SCALAR" | ||
} | ||
], | ||
"bufferViews" : [ | ||
{ | ||
"buffer" : 0, | ||
"byteLength" : 181946, | ||
"byteOffset" : 0 | ||
} | ||
], | ||
"samplers" : [ | ||
{ | ||
"magFilter" : 9729, | ||
"minFilter" : 9987 | ||
} | ||
], | ||
"buffers" : [ | ||
{ | ||
"byteLength" : 181948, | ||
"uri" : "50k_delighted.bin" | ||
} | ||
] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" /> | ||
<meta name="apple-mobile-web-app-capable" content="yes"> | ||
<meta name="mobile-web-app-capable" content="yes"> | ||
<link rel="icon" href="/res/aton-logo.png" sizes="512x512" type="image/png"> | ||
|
||
<!-- Add iOS meta tags and icons --> | ||
<meta name="apple-mobile-web-app-capable" content="yes"> | ||
<meta name="apple-mobile-web-app-status-bar-style" content="black"> | ||
<meta name="apple-mobile-web-app-title" content="ATON Sample"> | ||
<link rel="apple-touch-icon" href="/res/aton-logo.png"> | ||
<meta name="description" content="ATON Sample"> | ||
<!-- Add meta theme-color --> | ||
<meta name="theme-color" content="#000000" /> | ||
|
||
<title>ATON App sample</title> | ||
<link rel="stylesheet" type="text/css" href="/res/css/aton.css"> | ||
|
||
<script type="text/javascript" src="/vendors/vendors.min.js"></script> | ||
|
||
<script type="text/javascript" src="/dist/THREE.bundle.js"></script> | ||
<script type="module" src="/src/ATON.js"></script> | ||
<script> | ||
window.onload = ()=>{ | ||
// Realize our App | ||
let myApp = ATON.App.realize(); | ||
|
||
// Setup: this is executed once (App initialization) | ||
// This may include UI setup (HTML), events handling, etc. | ||
myApp.setup = ()=>{ | ||
ATON.FE.realize(); // Realize the base front-end | ||
ATON.FE.addBasicLoaderEvents(); // Add basic front-end events (loading spinner, automatic home, ...) | ||
|
||
// Create and load a sample 3D model | ||
ATON.createSceneNode("acube").load("samples/models/atoncube.gltf").attachToRoot(); | ||
|
||
// Set sample panorama | ||
ATON.setMainPanorama("samples/pano/bg-welcome.jpg"); | ||
|
||
// Setup a lightprobe centered in the 3D model | ||
ATON.addLightProbe( new ATON.LightProbe().setPosition(0,0,0).setNear(1.0) ); | ||
}; | ||
|
||
// Update: this is executed continuously | ||
myApp.update = ()=>{ | ||
let t = ATON.getElapsedTime(); | ||
|
||
let N = ATON.getSceneNode("acube"); | ||
if (N){ | ||
N.scale.y = 1.2 + (Math.cos(t) * 0.5); // stretch the node along y axis depending on current time | ||
} | ||
}; | ||
|
||
// Ok, let's run our App! | ||
myApp.run(); | ||
}; | ||
</script> | ||
</head> | ||
|
||
<body oncontextmenu="return false;"> | ||
<!-- Top Toolbar --> | ||
<div id="idTopToolbar" class="atonToolbar atonToolbar-top-left"></div> | ||
|
||
<!-- Bottom Toolbar --> | ||
<div id="idBottomToolbar" class="atonToolbar atonToolbar-bottom"></div> | ||
|
||
<!-- Main Popup --> | ||
<div id="idPopup" class="atonPopupContainer" style="display:none;"></div> | ||
|
||
<!-- Loader --> | ||
<div id="idLoader" class="atonCenterLoader" style="display:none;"></div> | ||
|
||
<!-- Powered by --> | ||
<div id='idPoweredBy' class="atonToolbar atonToolbar-bottom poweredBy" > | ||
Powered by <a href="http://osiris.itabc.cnr.it/scenebaker/index.php/projects/aton/" target="_blank">ATON</a> | ||
</div> | ||
</body> |
Oops, something went wrong.