Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GeoVistoogsi
AR
Commits
16c716de
Commit
16c716de
authored
4 months ago
by
Percen
Browse files
Options
Download
Email Patches
Plain Diff
Update public/index.html
parent
66a47dcb
master
21caog1bif-master-patch-76399
21caog1bif-master-patch-83779
21caog1bif-master-patch-96693
1 merge request
!59
Update public/index.html
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/index.html
+18
-21
public/index.html
with
18 additions
and
21 deletions
+18
-21
public/index.html
+
18
-
21
View file @
16c716de
...
@@ -59,7 +59,25 @@
...
@@ -59,7 +59,25 @@
background-color
:
#387a39
;
background-color
:
#387a39
;
}
}
.menu-bar
{
position
:
fixed
;
top
:
0
;
left
:
0
;
right
:
0
;
display
:
flex
;
justify-content
:
center
;
background-color
:
rgba
(
0
,
0
,
0
,
0.7
);
padding
:
10px
;
z-index
:
10
;
}
.menu-bar
button
{
background-color
:
#2196F3
;
}
.menu-bar
button
:hover
{
background-color
:
#1E88E5
;
}
</style>
</style>
<script
src=
"https://unpkg.com/three@0.126.0/build/three.js"
></script>
<script
src=
"https://unpkg.com/three@0.126.0/build/three.js"
></script>
<script
src=
"https://unpkg.com/three@0.126.0/examples/js/loaders/GLTFLoader.js"
></script>
<script
src=
"https://unpkg.com/three@0.126.0/examples/js/loaders/GLTFLoader.js"
></script>
...
@@ -95,27 +113,6 @@
...
@@ -95,27 +113,6 @@
scene
.
add
(
reticle
);
scene
.
add
(
reticle
);
});
});
const
container
=
new
ThreeMeshUI
.
Block
({
width
:
1.2
,
height
:
0.7
,
padding
:
0.2
,
fontFamily
:
'
./assets/Roboto-msdf.json
'
,
fontTexture
:
'
./assets/Roboto-msdf.png
'
,
});
//
const
text
=
new
ThreeMeshUI
.
Text
({
content
:
"
Some text to be displayed
"
});
container
.
add
(
text
);
// scene is a THREE.Scene (see three.js)
scene
.
add
(
container
);
// This is typically done in the render loop :
ThreeMeshUI
.
update
();
// Modelle laden
// Modelle laden
loader
.
load
(
"
https://threejs.org/examples/models/gltf/RobotExpressive/RobotExpressive.glb
"
,
(
gltf
)
=>
{
loader
.
load
(
"
https://threejs.org/examples/models/gltf/RobotExpressive/RobotExpressive.glb
"
,
(
gltf
)
=>
{
models
.
car
=
gltf
.
scene
;
models
.
car
=
gltf
.
scene
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets