Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
webgl25
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
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RIFI Zaynab
webgl25
Commits
d3a113f9
Commit
d3a113f9
authored
2 months ago
by
HERRY Matteo
Browse files
Options
Downloads
Patches
Plain Diff
Ajout fichier .JS
parent
37957a6f
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
HERRY-M--HERRY-E/TABLO.js
+44
-0
44 additions, 0 deletions
HERRY-M--HERRY-E/TABLO.js
HERRY-M--HERRY-E/index.html
+2
-2
2 additions, 2 deletions
HERRY-M--HERRY-E/index.html
with
46 additions
and
2 deletions
HERRY-M--HERRY-E/TABLO.js
0 → 100644
+
44
−
0
View file @
d3a113f9
"
use strict
"
;
// IMPORTS
import
*
as
THREE
from
'
three
'
;
import
{
TWEEN
}
from
'
https://unpkg.com/three@0.139.0/examples/jsm/libs/tween.module.min.js
'
;
import
{
OBJLoader
}
from
'
three/addons/loaders/OBJLoader.js
'
;
import
{
OrbitControls
}
from
'
three/addons/controls/OrbitControls.js
'
;
import
{
dat
}
from
'
../lib/dat.gui.min.js
'
;
import
{
Coordinates
}
from
'
../lib/Coordinates.js
'
;
// DECLARATIONS
var
camera
,
scene
,
renderer
;
var
windowScale
;
var
cameraControls
,
effectController
;
var
clock
=
new
THREE
.
Clock
();
var
gridX
=
true
;
var
gridY
=
false
;
var
gridZ
=
false
;
var
axes
=
true
;
var
ground
=
true
;
function
init
(){
}
function
fillscene
(){
}
function
animate
(){
}
function
render
(){
}
try
{
init
();
animate
();
}
catch
(
e
)
{
var
errorReport
=
"
Your program encountered an unrecoverable error, can not draw on canvas. Error was:<br/><br/>
"
;
$
(
'
#webGL
'
).
append
(
errorReport
+
e
);
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
HERRY-M--HERRY-E/index.html
+
2
−
2
View file @
d3a113f9
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
<h1
class=
"centre"
>
HERRY Mattéo - HERRY Elwyn
</h1>
<h1
class=
"centre"
>
HERRY Mattéo - HERRY Elwyn
</h1>
<div
id=
"webGL"
class=
"centre"
></div>
<div
id=
"webGL"
class=
"centre"
></div>
<!-- Mon script avec un chemin relatif -->
<!-- Mon script avec un chemin relatif -->
<script
type=
"module"
src=
"
exo2
.js"
></script>
<script
type=
"module"
src=
"
TABLO
.js"
></script>
<p
class=
"centre"
>
Exercice 1
</p>
<p
class=
"centre"
>
LE TABLO
</p>
</body>
</body>
</html>
</html>
\ No newline at end of file
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