Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
UFrameIT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FrameIT
UFrameIT
Commits
601f4fd5
Commit
601f4fd5
authored
3 months ago
by
baletiballo
Browse files
Options
Downloads
Patches
Plain Diff
Initially hide the WebGL Canvas, to prevent empty space if rendering breaks
parent
74ac9733
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Assets/StreamingAssets/ScrollView_Server/scrollView.html
+3
-1
3 additions, 1 deletion
Assets/StreamingAssets/ScrollView_Server/scrollView.html
Assets/StreamingAssets/ScrollView_Server/scroll_interaction/Math_Mind.js
+3
-2
3 additions, 2 deletions
...gAssets/ScrollView_Server/scroll_interaction/Math_Mind.js
with
6 additions
and
3 deletions
Assets/StreamingAssets/ScrollView_Server/scrollView.html
+
3
−
1
View file @
601f4fd5
...
...
@@ -45,7 +45,9 @@
</head>
<body>
<canvas
id=
"math-mind-canvas"
width=
"400"
height=
"300"
></canvas>
<!-- The canvas is initially hidden, it will be unhidden once the renderer is set up.
So, if that setup fails there is no empty space -->
<canvas
id=
"math-mind-canvas"
width=
"400"
height=
"300"
hidden
></canvas>
<div
id=
"scrollContainer"
>
<scroll-description
title=
'DefaultScroll'
alt=
'No scroll loaded yet'
>
<div>
No scroll selected yet.
</div>
...
...
This diff is collapsed.
Click to expand it.
Assets/StreamingAssets/ScrollView_Server/scroll_interaction/Math_Mind.js
+
3
−
2
View file @
601f4fd5
...
...
@@ -7,8 +7,9 @@ const camera = new THREE.PerspectiveCamera(75, 4/3, 0.1, 1000);
const
renderer
=
new
THREE
.
WebGLRenderer
({
canvas
:
document
.
querySelector
(
'
#math-mind-canvas
'
)
});
// renderer.setSize( window.innerWidth, window.innerHeight );
// document.body.appendChild( renderer.domElement );
// The canvas is initially hidden, in case the three.js import fails
// If we reach this code, it obviously didn't
renderer
.
domElement
.
removeAttribute
(
"
hidden
"
);
const
controls
=
new
OrbitControls
(
camera
,
renderer
.
domElement
);
const
pointGeo
=
new
THREE
.
SphereGeometry
(
0.1
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment