Skip to content
Snippets Groups Projects
Commit d2a4723c authored by Jiyoung Moon's avatar Jiyoung Moon
Browse files

Update README.md

parent bf3d1173
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
2020-1, Computer Graphics (F030-1, Prof. Hwanyong Lee) \ 2020-1, Computer Graphics (F030-1, Prof. Hwanyong Lee) \
201721097 media Jiyoung Moon 201721097 media Jiyoung Moon
## this is the content that teaching how to transform camera using mouse dragging. ## 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.\ 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 example of the first code will be shown the first part.\
...@@ -15,6 +15,7 @@ There are 3 steps in this tutorial. ...@@ -15,6 +15,7 @@ There are 3 steps in this tutorial.
## Step 0. Before we start! You have to prepare... ## 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.\
[](https://git.ajou.ac.kr/Jiyoung_Moon/mouse-drag-for-transform-camera/-/blob/master/self-rotating-cube.gif)\
This code is used for the next steps. This code is used for the next steps.
## Step 1. Remove some codes. ## Step 1. Remove some codes.
...@@ -31,12 +32,14 @@ With some gif files and code, students can understand it easily. ...@@ -31,12 +32,14 @@ With some gif files and code, students can understand it easily.
In this part, we make the codes for the mouse dragging.\ In this part, we make the codes for the mouse dragging.\
This is related to the `addEventListener` of HTML DOM event and JS.\ This is related to the `addEventListener` of HTML DOM event and JS.\
We make 3 functions with describtion of them.\ 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. 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.\
[](https://git.ajou.ac.kr/Jiyoung_Moon/mouse-drag-for-transform-camera/-/blob/master/description.gif)
## Step 4. It's done!!! Try it!!! ## 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. Also, the students can try mouse dragging to transform camera.\
[](https://git.ajou.ac.kr/Jiyoung_Moon/mouse-drag-for-transform-camera/-/blob/master/final.gif)
## Result ## Result
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment