<div class="model">
<div id="container3d_replace"></div>
<div class="loadingContent" id="loadingContent">
<div class="loading">
<img src="https://codepencdn.unlimited3d.com/changeMaterials/assets/images/loader.gif" alt="loader" class="loading-img"><br>
</div>
</div>
</div>
<script src="https://cdn.threedium.co.uk/deviceCheck/v1.0/script.js"></script>
<script src="https://distcdn.unlimited3d.com/pres/v/2.6.0/unlimited3d.min.js"></script>
body,
html {
margin: 0;
overflow: hidden;
font-size: 16px;
}
img {
height: auto;
width: auto;
object-fit: contain;
object-position: top center;
}
#ar-button {
display: none;
visibility: hidden;
}
.ar_button {
cursor: pointer;
position: absolute;
top: 2rem;
left: 2rem;
width: 4.5rem;
}
.QRcode {
flex-direction: column;
align-items: center;
position: absolute;
left: 5vw;
top: 18vh;
display: none;
border: 2px solid #000;
background-color: #ffff;
padding: 0.5rem;
max-width: 11rem;
}
.QRcode h1 {
font-weight: bold;
color: #000;
text-align: center;
font-size: 1.2rem;
}
.QRcode p {
margin: 0.8rem 0;
color: #000;
font-size: 1rem;
text-align: center;
}
#qrCodeImg img {
max-width: 65%;
margin: 0 auto;
}
.closeQRcode {
display: flex;
justify-content: center;
background-color: rgba(202, 202, 202, 0.952);
text-decoration: none;
padding: .4rem 2rem;
z-index: 1;
width: 3rem;
border-radius: 7.7px;
color: #000;
margin: auto;
margin-top: 0.5rem;
}
.loadingContent {
position: fixed;
z-index: 100;
top: 0%;
left: 0%;
text-align: center;
font-size: 1.1rem;
font-weight: 400;
font-stretch: normal;
font-style: normal;
line-height: normal;
letter-spacing: normal;
color: #0C0C0B;
background-color: rgba(0, 0, 0, 0.3);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
cursor: wait;
}
.loadingContent img {
/* width: auto;*/
width: 140px;
height: 100%;
}
.model,
#container3d_replace {
width: 100vw;
height: 100vh;
}
@media (max-width: 1399px) {
html,
body {
font-size: 15px;
}
}
@media (max-width: 1199px) {
html,
body {
font-size: 14px;
}
}
@media (max-width: 991px) {
html,
body {
font-size: 13px;
}
}
@media (max-width: 767px) {
html,
body {
font-size: 12px;
}
}
@media (max-width: 575px) {
html,
body {
font-size: 10px;
}
.QRcode {
left: 11vw;
top: 21vh;
}
}
@media (max-width: 360px) {}
var options = {
distID: 'latest',
solution3DName: 'demo-ring-new-shader-configurator',
projectName: 'tests',
solution3DID: '47143',
containerID: 'container3d_replace',
onPointerClick: function (objectsClick) {
if (objectsClick.length > 0) {
if (objectsClick[0].type == "annotation") {
//
}
}
},
onCameraInteraction: function () {
//
},
};
var config = {
cameraControl: { autoRotate: true},
annotations: {
show: [
'Annotation',
'Annotation-1',
'Annotation-2',
],
},
parts: {
materials: {
'Diamond_green': [
'Diamond_Main_Cushion',
'uploads_files_105521_cushion_1_',
'uploads_files_105521_cushion_1__1'
],
},
},
materials: {
'Diamond_red': {
color: '#ffffff',
},
},
switchMaterials: {
'Silver_2': 'Silver',
},
}
Unlimited3D.init(options, config, function (error, status) {
if (error || !status) {
console.log(error);
return;
}
loadingContent.style.display = "none";
});
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.