-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added annotations using MODEL-VIEWER (#244)
* feat: added annotations using MODEL-VIEWER * added requested changes
- Loading branch information
1 parent
3f23a3f
commit c028b1c
Showing
5 changed files
with
256 additions
and
75 deletions.
There are no files selected for viewing
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
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,32 @@ | ||
<model-viewer src="sheenchair.glb" ar ar-modes="webxr scene-viewer quick-look" camera-controls tone-mapping="commerce" | ||
poster="poster.webp" shadow-intensity="1"> | ||
<button class="Hotspot" slot="hotspot-1" | ||
data-position="0.048018196251228926m 0.6036223600661794m -0.14826366163244487m" | ||
data-normal="0.04351052601136635m 0.3415809677343345m 0.9388446498797817m" data-visibility-attribute="visible"> | ||
<div class="HotspotAnnotation">comfortable-cushion</div> | ||
</button><button class="Hotspot" slot="hotspot-2" | ||
data-position="-0.0033771761976861894m 0.3551300235435977m 0.13407209767324835m" | ||
data-normal="-0.05104891412409527m 0.9951060545055077m 0.08460466094271978m" data-visibility-attribute="visible"> | ||
<div class="HotspotAnnotation">cushion-seat</div> | ||
</button><button class="Hotspot" slot="hotspot-3" | ||
data-position="0.22748574046349934m 0.2459646721794866m -0.007121040934450207m" | ||
data-normal="0.12488193738441994m -0.9890914935776142m 0.07811862164374446m" data-visibility-attribute="visible"> | ||
<div class="HotspotAnnotation">wooden-finish</div> | ||
</button> | ||
<div class="progress-bar hide" slot="progress-bar"> | ||
<div class="update-bar"></div> | ||
</div> | ||
<button slot="ar-button" id="ar-button"> | ||
View in your space | ||
</button> | ||
<div id="ar-prompt"> | ||
<img src="https://modelviewer.dev/shared-assets/icons/hand.png"> | ||
</div> | ||
</model-viewer> | ||
|
||
|
||
<button class="Hotspot" slot="hotspot-1" data-position="0.021652429656029135m 1.4643635734200455m 0.4614263460778892m" | ||
data-normal="0.9995959491122697m -0.020561903162868395m 0.019625153672313916m" | ||
data-orbit="-50.94862deg 84.56856deg 0.06545582m" | ||
data-target="0.021652429656029135m 1.4643635734200455m 0.4614263460778892m" data-fov="12.91deg" | ||
data-visibility-attribute="visible" data-visible=""> |
Oops, something went wrong.