Hmm… I set it up real quick, but I am only get a blank element.
npm, google modelviewer
public file: model-viewer.js
import ‘@google/model-viewer’;
set all the attributes
url’s correct, didn’t work
uploaded spaceman into media and copied local url
still didn’t display
source code shows element with all the right stuff, but also a lot of extra style written in?
<model-viewer src="https://modelviewer.dev/shared-assets/models/NeilArmstrong.glb" shadow-intensity="1" poster="https://modelviewer.dev/shared-assets/models/NeilArmstrong.webp" ar="true" environment-image="https://modelviewer.dev/shared-assets/environments/moon_1k.hdr" camera-controls="true" touch-action="pan-y" style="width: 100%; --wst-color-fill-background-primary: rgb(20, 17, 20); --wst-color-fill-background-secondary: rgb(32, 31, 35); --wst-color-text-primary: rgb(217, 216, 221); --wst-color-text-secondary: rgb(60, 60, 66); --wst-color-action: rgb(130, 130, 133); --wst-color-disabled: rgb(33, 32, 38); --wst-color-title: rgb(217, 216, 221); --wst-color-subtitle: rgb(60, 60, 66); --wst-color-line: rgb(217, 216, 221); --wst-button-color-fill-primary: rgb(130, 130, 133); --wst-button-color-border-primary: rgb(130, 130, 133); --wst-button-color-text-primary: rgb(20, 17, 20); --wst-button-color-fill-primary-hover: rgb(130, 130, 133); --wst-button-color-border-primary-hover: rgb(130, 130, 133); --wst-button-color-text-primary-hover: rgb(20, 17, 20); --wst-button-color-fill-primary-disabled: rgb(33, 32, 38); --wst-button-color-border-primary-disabled: rgb(33, 32, 38); --wst-button-color-text-primary-disabled: rgb(20, 17, 20); --wst-button-color-fill-secondary: rgb(20, 17, 20); --wst-button-color-border-secondary: rgb(130, 130, 133); --wst-button-color-text-secondary: rgb(130, 130, 133); --wst-button-color-fill-secondary-hover: rgb(20, 17, 20); --wst-button-color-border-secondary-hover: rgb(130, 130, 133); --wst-button-color-text-secondary-hover: rgb(130, 130, 133); --wst-button-color-fill-secondary-disabled: rgb(20, 17, 20); --wst-button-color-border-secondary-disabled: rgb(33, 32, 38); --wst-button-color-text-secondary-disabled: rgb(33, 32, 38); --wst-color-fill-base-1: rgb(20, 17, 20); --wst-color-fill-base-2: rgb(217, 216, 221); --wst-color-fill-base-shade-1: rgb(32, 31, 35); --wst-color-fill-base-shade-2: rgb(33, 32, 38); --wst-color-fill-base-shade-3: rgb(60, 60, 66); --wst-color-fill-accent-1: rgb(130, 130, 133); --wst-color-fill-accent-2: rgb(130, 130, 133); --wst-color-fill-accent-3: rgb(130, 130, 133); --wst-color-fill-accent-4: rgb(130, 130, 133); --wst-color-custom-1: rgb(33, 32, 38); --wst-color-custom-2: rgb(217, 216, 221); --wst-color-custom-3: rgb(174, 173, 177); --wst-color-custom-4: rgb(87, 86, 88); --wst-color-custom-5: rgb(43, 43, 44); --wst-color-custom-6: rgb(243, 248, 240); --wst-color-custom-7: rgb(210, 228, 199); --wst-color-custom-8: rgb(146, 176, 121); --wst-color-custom-9: rgb(97, 135, 65); --wst-color-custom-10: rgb(57, 100, 29); --wst-color-custom-11: rgb(242, 234, 231); --wst-color-custom-12: rgb(229, 206, 192); --wst-color-custom-13: rgb(169, 128, 111); --wst-color-custom-14: rgb(139, 97, 79); --wst-color-custom-15: rgb(99, 60, 43); --wst-color-custom-16: rgb(255, 233, 223); --wst-color-custom-17: rgb(255, 191, 161); --wst-color-custom-18: rgb(250, 133, 79); --wst-color-custom-19: rgb(234, 96, 32); --wst-color-custom-20: rgb(201, 64, 1); --wst-font-style-h2: normal normal normal calc(42 * var(--theme-spx-ratio))/1.3em madefor-display-bold,helveticaneuew01-65medi,helveticaneuew02-65medi,helveticaneuew10-65medi,sans-serif; --wst-font-style-h3: normal normal normal calc(38 * var(--theme-spx-ratio))/1.3em madefor-display-bold,helveticaneuew01-65medi,helveticaneuew02-65medi,helveticaneuew10-65medi,sans-serif; --wst-font-style-h4: normal normal normal calc(34 * var(--theme-spx-ratio))/1.3em madefor-display-bold,helveticaneuew01-65medi,helveticaneuew02-65medi,helveticaneuew10-65medi,sans-serif; --wst-font-style-h5: normal normal normal calc(28 * var(--theme-spx-ratio))/1.3em madefor-display-bold,helveticaneuew01-65medi,helveticaneuew02-65medi,helveticaneuew10-65medi,sans-serif; --wst-font-style-h6: normal normal normal calc(22 * var(--theme-spx-ratio))/1.4em madefor-display-bold,helveticaneuew01-65medi,helveticaneuew02-65medi,helveticaneuew10-65medi,sans-serif; --wst-font-style-body-large: normal normal normal calc(18 * var(--theme-spx-ratio))/1.6em madefor-text,helveticaneuew01-45ligh,helveticaneuew02-45ligh,helveticaneuew10-45ligh,sans-serif; --wst-font-style-body-medium: normal normal normal calc(16 * var(--theme-spx-ratio))/1.6em madefor-text,helveticaneuew01-45ligh,helveticaneuew02-45ligh,helveticaneuew10-45ligh,sans-serif; --wst-font-style-body-small: normal normal normal calc(14 * var(--theme-spx-ratio))/1.6em madefor-text,helveticaneuew01-45ligh,helveticaneuew02-45ligh,helveticaneuew10-45ligh,sans-serif; --wst-font-style-body-x-small: normal normal normal 12px/1.4em din-next-w01-light,sans-serif; --one-unit: 1vw; --theme-spx-ratio: 1px;"></model-viewer>