-
Descriptionchange model scale compare to Ground-projected Skybox/ i need to increase model scale but when i maximize model or use scale="2 2 2 " ground twists and turns how i can increase the model scale in skybox without deforme the skybox Version
Browser AffectedALL OSAll AR
Code<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script
type="module"
src="https://ajax.googleapis.com/ajax/libs/model-viewer/3.5.0/model-viewer.min.js"
></script>
<title>AKSTUDIO</title>
<link rel="shortcut icon" type="image/jpg" href="./logo.jpg" />
</head>
<body>
<model-viewer
id="viewer"
camera-controls
style="width: 800px; height: 600px;"
touch-action="pan-y"
disable-pan
skybox-image="https://cdn.polyhaven.com/asset_img/primary/autumn_hockey.png"
skybox-height="17.5m"
shadow-intensity="2"
scale="2 2 2"
camera-orbit="auto auto 80m"
min-camera-orbit="auto 0deg 40m"
max-camera-orbit="auto 90deg 80m"
alt="A 3D astronaut model depicted within a forest"
src="red-div-2--.glb"
field-of-view="90deg"
>
</model-viewer>
</body>
<script>
</script>
</html> |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
Did you try increasing the model scale in a 3D software (like Blender for example)? I changed model scale in some old code like this (probably not the best way but you can give it a try): const modelViewer = document.querySelector("model-viewer#mw"); Also, try playing arround with skybox-height, i tested with that hdr you are using and height seems to have a big effect on how skybox is rendered. |
Beta Was this translation helpful? Give feedback.
-
Did you try increasing the model scale in a 3D software (like Blender for example)?yes , test but same problem !! skybox-heightWhen I use it, the distortion problem is solved, but the scale effect is lost and the volume is seems reduced again Does anyone have a solution? |
Beta Was this translation helpful? Give feedback.
-
Hmm, that |
Beta Was this translation helpful? Give feedback.
-
skybox-height - as say it in previous comment !!!!When I use it, the distortion problem is solved, but the scale effect is lost and the volume is seems reduced again |
Beta Was this translation helpful? Give feedback.
-
i need increase scale of house compare to skybox(trees , ...) problem is when i increase the object scale , skyroom is grow too!!!! |
Beta Was this translation helpful? Give feedback.
-
I mean it - your skybox is itself small. You have to use a different image - taken for higher up for it to look believable; I can't fix that with geometry or rendering. |
Beta Was this translation helpful? Give feedback.
I mean it - your skybox is itself small. You have to use a different image - taken for higher up for it to look believable; I can't fix that with geometry or rendering.