Some checks are pending
Build / build (18.x, macos-latest) (push) Waiting to run
Build / build (18.x, ubuntu-latest) (push) Waiting to run
Build / build (18.x, windows-latest) (push) Waiting to run
Build / build (20.x, macos-latest) (push) Waiting to run
Build / build (20.x, ubuntu-latest) (push) Waiting to run
Build / build (20.x, windows-latest) (push) Waiting to run
65 lines
2.2 KiB
HTML
65 lines
2.2 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html;charset=utf-8">
|
|
<meta name="viewport" content="width=device-width, user-scalable=no">
|
|
|
|
<title>tellme模型处理平台</title>
|
|
|
|
<script type="text/javascript" src="../build/engine_dev/o3dv.min.js"></script>
|
|
|
|
<style>
|
|
div.online_3d_viewer
|
|
{
|
|
float: left;
|
|
border: 1px solid #eeeeee;
|
|
width: 640px;
|
|
height: 480px;
|
|
}
|
|
</style>
|
|
|
|
<script type='text/javascript'>
|
|
window.addEventListener ('load', () => {
|
|
// get the parent element of the viewer
|
|
let parentDiv = document.getElementById ('viewer');
|
|
|
|
// initialize the viewer with the parent element and some parameters
|
|
let viewer = new OV.EmbeddedViewer (parentDiv, {
|
|
camera : new OV.Camera (
|
|
new OV.Coord3D (-1.5, 2.0, 3.0),
|
|
new OV.Coord3D (0.0, 0.0, 0.0),
|
|
new OV.Coord3D (0.0, 1.0, 0.0),
|
|
45.0
|
|
),
|
|
backgroundColor : new OV.RGBAColor (255, 255, 255, 255),
|
|
defaultColor : new OV.RGBColor (200, 200, 200),
|
|
edgeSettings : new OV.EdgeSettings (false, new OV.RGBColor (0, 0, 0), 1),
|
|
environmentSettings : new OV.EnvironmentSettings (
|
|
[
|
|
'../website/assets/envmaps/fishermans_bastion/posx.jpg',
|
|
'../website/assets/envmaps/fishermans_bastion/negx.jpg',
|
|
'../website/assets/envmaps/fishermans_bastion/posy.jpg',
|
|
'../website/assets/envmaps/fishermans_bastion/negy.jpg',
|
|
'../website/assets/envmaps/fishermans_bastion/posz.jpg',
|
|
'../website/assets/envmaps/fishermans_bastion/negz.jpg'
|
|
],
|
|
false
|
|
)
|
|
});
|
|
|
|
// load a model providing model urls
|
|
viewer.LoadModelFromUrlList ([
|
|
'../../test/testfiles/gltf/DamagedHelmet/glTF-Binary/DamagedHelmet.glb'
|
|
]);
|
|
});
|
|
</script>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="online_3d_viewer" id="viewer">
|
|
</div>
|
|
</body>
|
|
|
|
</html>
|