Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
WebGL Tutorial
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
Container registry
Model registry
Operate
Environments
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
Jiyoung Moon
WebGL Tutorial
Commits
22caaf72
Commit
22caaf72
authored
4 years ago
by
Jiyoung Moon
Browse files
Options
Downloads
Patches
Plain Diff
Update README.md
parent
3a676060
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+11
-11
11 additions, 11 deletions
README.md
with
11 additions
and
11 deletions
README.md
+
11
−
11
View file @
22caaf72
...
...
@@ -5,16 +5,16 @@
## this is the content that teaching how to transform camera using mouse dragging.
Before we start this tutorial, students should prepare the basic code of self rotating 3d cube.
The example of the first code will be shown the first part.
The whole tutorial will be followed by some codes that changed by each steps.
**Every steps has the codes of it, output result, and some gif files that help students to understand it well.**
Before we start this tutorial, students should prepare the basic code of self rotating 3d cube.
\
The example of the first code will be shown the first part.
\
\
The whole tutorial will be followed by some codes that changed by each steps.
\
**Every steps has the codes of it, output result, and some gif files that help students to understand it well.**
\
There are 3 steps in this tutorial.
## Step 0. Before we start! You have to prepare...
In this part, I'll show a example code of self-rotating 3d cube and a example output of it.
In this part, I'll show a example code of self-rotating 3d cube and a example output of it.
\
This code is used for the next steps.
## Step 1. Remove some codes.
...
...
@@ -23,19 +23,19 @@ In this part, we remove some codes related to self rotation.
## Step 2. Use new variable.
In this part, we make new variables so that we can prepare for mouse dragging.
In this part, we make new variables so that we can prepare for mouse dragging.
\
With some gif files and code, students can understand it easily.
## Step 3. Add some codes so that the mouse can drag the cube!
In this part, we make the codes for the mouse dragging.
This is related to the
`addEventListener`
of HTML DOM event and JS.
We make 3 functions with describtion of them.
In this part, we make the codes for the mouse dragging.
\
This is related to the
`addEventListener`
of HTML DOM event and JS.
\
We make 3 functions with describtion of them.
\
Also, in this part, there are some parts that could be hard to understand, so I add a gif so that the students can understand it well.
## Step 4. It's done!!! Try it!!!
At the end, the students can make his/her own mouse dragging tranformation of camera.
At the end, the students can make his/her own mouse dragging tranformation of camera.
\
Also, the students can try mouse dragging to transform camera.
# References
...
...
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