Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
1b0d9ab
update token in k11
nxddsnc Oct 10, 2019
5e1993a
Add model-preview samples
nxddsnc Oct 12, 2019
3e4d93c
Revit case (#22)
cczutang Oct 15, 2019
38a52de
Add walking animation sample
nxddsnc Oct 18, 2019
df34f03
Add missing file
nxddsnc Oct 21, 2019
f6f70c7
Update walking animation sample
nxddsnc Oct 22, 2019
c9ce579
update walking animation sample
nxddsnc Oct 23, 2019
0bdf722
Update version of modelopai
nxddsnc Oct 23, 2019
d4e98f0
Add mobile detect and support mobile in smart city samples
nxddsnc Oct 23, 2019
428f269
remove test code
nxddsnc Oct 23, 2019
c60ff25
Improve mobile compatibility
nxddsnc Oct 23, 2019
91837de
Change touch pan speed
nxddsnc Oct 23, 2019
161cfce
Update escape-route (#23)
cczutang Oct 23, 2019
2bf9c32
Update sketch effect on mobile devices
nxddsnc Oct 23, 2019
c9e173b
Ajust glow intensity
nxddsnc Oct 24, 2019
0243f63
Merge branch 'develop' of https://github.com/modelo/API_samples into …
nxddsnc Oct 24, 2019
611f988
Ajust glow intensity
nxddsnc Oct 24, 2019
ab58ea8
Add dam-effect sample
nxddsnc Oct 31, 2019
45874af
Update url of modeloapi.js
nxddsnc Nov 7, 2019
0b7ee38
Add 2D-3D sample
nxddsnc Nov 8, 2019
8fce0b6
Add missing script
nxddsnc Nov 12, 2019
3c6aa76
Use webgl 1.0 in highlight on mobile
nxddsnc Nov 13, 2019
1bd109a
Fix typo
nxddsnc Nov 14, 2019
6f86dfa
Change url
nxddsnc Nov 14, 2019
0e4ad29
Add change-elements-material and depth-of field
nxddsnc Nov 15, 2019
7656b0d
change modeloapi url
nxddsnc Nov 15, 2019
6bc8e21
download svg from attachments (#25)
joshua7v Nov 27, 2019
ab2202a
update 2d-graph-interaction
suqidan Nov 27, 2019
59dbc87
Merge branch 'develop' of https://github.com/modelo/API_samples into …
suqidan Nov 27, 2019
ffee10d
add texture
suqidan Nov 29, 2019
6c400bf
add visibility to color
suqidan Dec 4, 2019
52ed025
test
suqidan Dec 5, 2019
7a49f35
add show function
suqidan Dec 5, 2019
d22ba7d
Remove set-elements-visibility
nxddsnc Dec 5, 2019
2b18d87
Rename sample
nxddsnc Dec 5, 2019
0753eb5
remove multi model viewer
nxddsnc Dec 5, 2019
2c8072f
remove unfinished samples
nxddsnc Dec 6, 2019
52dc136
Fix conflicts
nxddsnc Dec 6, 2019
bfa40a9
remove duplicated sample
nxddsnc Dec 6, 2019
5fb9571
remove duplicated sample
nxddsnc Dec 6, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,6 @@ <h1>Modelo API Samples</h1>
"View": [
//"local-model",
"model-viewer",
"multi-model-viewer",
"model-compare-viewer",
"360-image-viewer",
"360-multiple-images",
Expand All @@ -224,8 +223,7 @@ <h1>Modelo API Samples</h1>
"dump-screen",
"guid",
"camera-manipulation",
"set-elements-color",
"set-elements-visiblity",
"set-elements-color-and-visibility",
"change-elements-material",
"switch-camera-type",
"html-labels",
Expand Down
69 changes: 0 additions & 69 deletions samples/multi-model-viewer/index.html

This file was deleted.

47 changes: 0 additions & 47 deletions samples/multi-model-viewer/index.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@
<button type="button" class="ui button red" id="red">Red</button>
<button type="button" class="ui button green" id="green">Green</button>
<button type="button" class="ui button blue" id="blue">Blue</button>
<button type="button" class="ui button white" id="hide">Hide</button>
<button type="button" class="ui button white" id="show">Show</button>
</div>
<div class="wrapper-right">
<label id="progress">Loading: 0</label>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var modelId = "q8ZjpB8a";
var appToken = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTUzLCJ1c2VybmFtZSI6Ik1vZGVsbyIsImlzUGVybWFuZW50Ijp0cnVlLCJpYXQiOjE1Njc1NjI0MTksImV4cCI6MzMxMDM1NjI0MTl9.EbW_cSPca4kWLedgNtfrGguog_o-3CCM5WhM7fFi0GA" // A sample app token
var HiddenElements = [];

Modelo.init({ endpoint: "https://build-portal.modeloapp.com", appToken });

Expand Down Expand Up @@ -27,9 +28,9 @@ viewer.loadModel(modelId, updateProgress).then(() => {
let elementNames = [];
viewer.getEventEmitter().on("onElementSelected", elementNames1 => {
// Restore the element's colors.
if (elementNames.length !== 0) {
/*if (elementNames.length !== 0) {
viewer.getScene().setElementsColor(elementNames, null);
}
}*/

elementNames = elementNames1;
if (elementNames1.length === 0) {
Expand All @@ -42,6 +43,7 @@ viewer.loadModel(modelId, updateProgress).then(() => {
document.getElementById("default").onclick = function() {
viewer.getScene().setElementsColor(elementNames, null);
};

document.getElementById("red").onclick = function() {
viewer.getScene().setElementsColor(elementNames, [1, 0, 0]);
};
Expand All @@ -51,4 +53,13 @@ viewer.loadModel(modelId, updateProgress).then(() => {
document.getElementById("blue").onclick = function() {
viewer.getScene().setElementsColor(elementNames, [0, 0, 1]);
};
document.getElementById("hide").onclick = function() {
HiddenElements.push(elementNames);
viewer.getScene().setElementsVisibility(elementNames, false);
};
document.getElementById("show").onclick = function() {
HiddenElements.forEach(element => {
viewer.getScene().setElementsVisibility(element, true);
});
};
});
103 changes: 0 additions & 103 deletions samples/set-elements-visiblity/index.html

This file was deleted.

61 changes: 0 additions & 61 deletions samples/set-elements-visiblity/index.js

This file was deleted.