Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
b9a239f
First Try: Z-fighting which shouldn't appear...why....?
Oct 7, 2015
7059c4d
Merge remote-tracking branch 'upstream/master'
Oct 7, 2015
383ce88
left mouse rotation working
Oct 8, 2015
2a51ea7
mouse right to move sort of working, but 'unspecified launch failure'
Oct 8, 2015
2544383
fix right mouse memory prob
Oct 8, 2015
49d1ea4
projection: weird ear edge(cow.obj)
Oct 8, 2015
7e55e55
fix
Oct 8, 2015
8cb231c
middle mouse zoom
Oct 8, 2015
cab3b1b
diffuse : shadow?
Oct 8, 2015
a463a05
texture coordinates
Oct 9, 2015
04fc1fd
load images
Oct 9, 2015
d7f99e5
texture mapping. next, filttring
Oct 9, 2015
b5884de
tiny fix
Oct 9, 2015
8f53e7c
texture bilinear filtering
Oct 9, 2015
e10058f
temp: frame rendering, for later tessellation
Oct 10, 2015
4f0be08
tessellation first try
Oct 10, 2015
8857026
different tessellation levels
Oct 10, 2015
26dcd1b
key control tessellation level
Oct 10, 2015
6e0ce09
first-try displacement mapping from texture, extreamly slow...
Oct 10, 2015
7972592
displacement mapping optimize: take vertex shader and primitive assem…
Oct 11, 2015
33f0b80
key control shading mode
Oct 11, 2015
8eff2f5
get surface normal (for displacement mapping)
Oct 11, 2015
ba28935
Merge remote-tracking branch 'upstream/master'
Oct 11, 2015
af7b085
texture repeat
Oct 11, 2015
5085124
readme outline
Oct 11, 2015
e0f5702
readme outline
Oct 11, 2015
0d33962
readme outline
Oct 11, 2015
a7d7565
readme
Oct 11, 2015
5e8ab87
debug launch failure
Oct 11, 2015
86f8851
readme
Oct 11, 2015
3e08132
readme
Oct 11, 2015
10a0882
readme
Oct 11, 2015
d14e323
readme
Oct 11, 2015
59f2eff
readme
Oct 11, 2015
72473f3
readme
Oct 11, 2015
b12a316
readme
Oct 11, 2015
57af404
readme
Oct 11, 2015
08a55f2
readme
Oct 11, 2015
ba29387
readme
Oct 11, 2015
9f22641
readme
Oct 11, 2015
e0e432c
readme
Oct 11, 2015
6b51d41
readme
Oct 11, 2015
7a10adf
readme
Oct 11, 2015
95a4ae9
readme
Oct 12, 2015
2f53da3
readme
Oct 12, 2015
b267e9f
start try smooth tess
Oct 12, 2015
66a9d0e
first try smooth tess based on PN, sth wrong with normal interpolation
Oct 12, 2015
706fba5
normal interp fix
Oct 12, 2015
acfe313
smooth tessellation
Oct 12, 2015
8980741
readme
Oct 12, 2015
4a26b73
readme
Oct 12, 2015
932d326
readme
Oct 12, 2015
9f7a9dd
minor fix
Oct 12, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
526 changes: 151 additions & 375 deletions README.md

Large diffs are not rendered by default.

Binary file added img/00.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/01.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/02.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/03.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/04.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/05.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/06.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/07.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/08.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/08_.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/09.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/10.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/11.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/12.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/Cow_c_Inter.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/Cow_c_noInter.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/Cow_n_Inter.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/Cow_n_noInter.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/DispGif.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/DispGif_l.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/DisplamentFromFile_extreamly_slow.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/NormalTess_a.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/NormalTess_b.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/Objs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/Overview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/Pipeline.jpg
Binary file added img/Pipeline.png
Binary file added img/Plane_tess8.PNG
Binary file added img/Suzzane_tess2.PNG
Binary file added img/TessLevel3.PNG
Binary file added img/UV0.PNG
Binary file added img/UV1.PNG
Binary file added img/UV2.PNG
Binary file added img/YoutubeDemo.PNG
Binary file added img/bilinearFiltering.PNG
Binary file added img/bilinearFiltering_.PNG
Binary file added img/bilinear_wiki.PNG
Binary file added img/buddha.PNG
Binary file added img/disp_demo.PNG
Binary file added img/frame_rentering.PNG
Binary file added img/keyW.gif
Binary file added img/key_w_off.PNG
Binary file added img/key_w_on.PNG
Binary file added img/noFiltering.PNG
Binary file added img/suzzane_pn.PNG
Binary file added img/suzzane_pn_s.PNG
Binary file added img/tess_0.PNG
Binary file added img/tess_1.PNG
Binary file added img/tess_2.PNG
Binary file added img/tess_3.PNG
Binary file added img/tess_5.PNG
Binary file added img/tess_5_d.PNG
Binary file added img/tess_5_n.PNG
Binary file added img/tess_5_nw.PNG
Binary file added img/tess_5_w.PNG
Binary file added img/tess_6.PNG
Binary file added img/tess_8.PNG
Binary file added img/tess_8_.PNG
Binary file added img/tess_8n.PNG
Binary file added img/tess_MidP.PNG
Binary file added img/tess_MidP_w.png
Binary file added img/tess_PN.PNG
Binary file added img/tess_PN_.png
Binary file added img/tess_orig.PNG
Binary file added img/tess_plane.png
Binary file added img/tess_suzanne.png
Binary file added img/tessellation_fistTry.PNG
Binary file added img/tex_bi.PNG
Binary file added img/tex_nobi.PNG
167,547 changes: 167,547 additions & 0 deletions objs/Bunny_.obj

Large diffs are not rendered by default.

146 changes: 146 additions & 0 deletions objs/Cube_Smooth.obj
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
# This file uses centimeters as units for non-parametric coordinates.

mtllib Cube_Smooth.mtl
g default
v -0.277778 -0.277778 0.277778
v 0.277778 -0.277778 0.277778
v -0.277778 0.277778 0.277778
v 0.277778 0.277778 0.277778
v -0.277778 0.277778 -0.277778
v 0.277778 0.277778 -0.277778
v -0.277778 -0.277778 -0.277778
v 0.277778 -0.277778 -0.277778
v 0.000000 -0.375000 0.375000
v 0.000000 0.375000 0.375000
v 0.000000 0.375000 -0.375000
v 0.000000 -0.375000 -0.375000
v -0.375000 0.000000 0.375000
v 0.375000 0.000000 0.375000
v -0.375000 0.375000 0.000000
v 0.375000 0.375000 0.000000
v -0.375000 0.000000 -0.375000
v 0.375000 0.000000 -0.375000
v -0.375000 -0.375000 0.000000
v 0.375000 -0.375000 0.000000
v 0.000000 0.000000 0.500000
v 0.000000 0.500000 0.000000
v 0.000000 0.000000 -0.500000
v 0.000000 -0.500000 0.000000
v 0.500000 0.000000 0.000000
v -0.500000 0.000000 0.000000
vt 0.375000 0.000000
vt 0.625000 0.000000
vt 0.375000 0.250000
vt 0.625000 0.250000
vt 0.375000 0.500000
vt 0.625000 0.500000
vt 0.375000 0.750000
vt 0.625000 0.750000
vt 0.375000 1.000000
vt 0.625000 1.000000
vt 0.875000 0.000000
vt 0.875000 0.250000
vt 0.125000 0.000000
vt 0.125000 0.250000
vt 0.500000 0.125000
vt 0.500000 0.375000
vt 0.500000 0.625000
vt 0.500000 0.875000
vt 0.750000 0.125000
vt 0.250000 0.125000
vt 0.500000 0.000000
vt 0.625000 0.125000
vt 0.500000 0.250000
vt 0.375000 0.125000
vt 0.625000 0.375000
vt 0.500000 0.500000
vt 0.375000 0.375000
vt 0.625000 0.625000
vt 0.500000 0.750000
vt 0.375000 0.625000
vt 0.625000 0.875000
vt 0.500000 1.000000
vt 0.375000 0.875000
vt 0.750000 0.000000
vt 0.875000 0.125000
vt 0.750000 0.250000
vt 0.250000 0.000000
vt 0.250000 0.250000
vt 0.125000 0.125000
vn 0.000000 -0.707107 0.707107
vn 0.577350 -0.577350 0.577350
vn 0.000000 0.000000 1.000000
vn 0.707107 0.000000 0.707107
vn 0.577350 0.577350 0.577350
vn 0.000000 0.707107 0.707107
vn -0.577350 0.577350 0.577350
vn -0.707107 0.000000 0.707107
vn -0.577350 -0.577350 0.577350
vn 0.000000 1.000000 0.000000
vn 0.707107 0.707107 0.000000
vn 0.577350 0.577350 -0.577350
vn 0.000000 0.707107 -0.707107
vn -0.577350 0.577350 -0.577350
vn -0.707107 0.707107 0.000000
vn 0.000000 -0.000000 -1.000000
vn 0.707107 0.000000 -0.707107
vn 0.577350 -0.577350 -0.577350
vn 0.000000 -0.707107 -0.707107
vn -0.577350 -0.577350 -0.577350
vn -0.707107 0.000000 -0.707107
vn 0.000000 -1.000000 0.000000
vn 0.707107 -0.707107 0.000000
vn -0.707107 -0.707107 0.000000
vn 1.000000 0.000000 0.000000
vn -1.000000 0.000000 0.000000
s 1
g pCube1
usemtl initialShadingGroup
f 9/21/1 2/2/2 21/15/3
f 21/15/3 2/2/2 14/22/4
f 14/22/4 4/4/5 21/15/3
f 21/15/3 4/4/5 10/23/6
f 10/23/6 3/3/7 21/15/3
f 21/15/3 3/3/7 13/24/8
f 13/24/8 1/1/9 21/15/3
f 21/15/3 1/1/9 9/21/1
f 10/23/6 4/4/5 22/16/10
f 22/16/10 4/4/5 16/25/11
f 16/25/11 6/6/12 22/16/10
f 22/16/10 6/6/12 11/26/13
f 11/26/13 5/5/14 22/16/10
f 22/16/10 5/5/14 15/27/15
f 15/27/15 3/3/7 22/16/10
f 22/16/10 3/3/7 10/23/6
f 11/26/13 6/6/12 23/17/16
f 23/17/16 6/6/12 18/28/17
f 18/28/17 8/8/18 23/17/16
f 23/17/16 8/8/18 12/29/19
f 12/29/19 7/7/20 23/17/16
f 23/17/16 7/7/20 17/30/21
f 17/30/21 5/5/14 23/17/16
f 23/17/16 5/5/14 11/26/13
f 12/29/19 8/8/18 24/18/22
f 24/18/22 8/8/18 20/31/23
f 20/31/23 2/10/2 24/18/22
f 24/18/22 2/10/2 9/32/1
f 9/32/1 1/9/9 24/18/22
f 24/18/22 1/9/9 19/33/24
f 19/33/24 7/7/20 24/18/22
f 24/18/22 7/7/20 12/29/19
f 20/34/23 8/11/18 25/19/25
f 25/19/25 8/11/18 18/35/17
f 18/35/17 6/12/12 25/19/25
f 25/19/25 6/12/12 16/36/11
f 16/36/11 4/4/5 25/19/25
f 25/19/25 4/4/5 14/22/4
f 14/22/4 2/2/2 25/19/25
f 25/19/25 2/2/2 20/34/23
f 19/37/24 1/1/9 26/20/26
f 26/20/26 1/1/9 13/24/8
f 13/24/8 3/3/7 26/20/26
f 26/20/26 3/3/7 15/38/15
f 15/38/15 5/14/14 26/20/26
f 26/20/26 5/14/14 17/39/21
f 17/39/21 7/13/20 26/20/26
f 26/20/26 7/13/20 19/37/24
7 changes: 7 additions & 0 deletions objs/Cube_tex.mtl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
newmtl initialShadingGroup
illum 4
Kd 0.00 0.00 0.00
Ka 0.00 0.00 0.00
Tf 1.00 1.00 1.00
map_Kd IMG_1355_1024.jpg
Ni 1.00
115 changes: 115 additions & 0 deletions objs/Cube_tex.obj
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
# This file uses centimeters as units for non-parametric coordinates.

mtllib Cube.mtl
g default

v -0.243786 -0.500000 0.456804

v 0.756214 -0.500000 0.456804

v -0.243786 0.500000 0.456804

v 0.756214 0.500000 0.456804

v -0.243786 0.500000 -0.543196

v 0.756214 0.500000 -0.543196

v -0.243786 -0.500000 -0.543196

v 0.756214 -0.500000 -0.543196


vt 0.375000 0.000000

vt 0.625000 0.000000

vt 0.375000 0.250000

vt 0.625000 0.250000

vt 0.375000 0.500000

vt 0.625000 0.500000

vt 0.375000 0.750000

vt 0.625000 0.750000
vt 0.375000 1.000000

vt 0.625000 1.000000

vt 0.875000 0.000000

vt 0.875000 0.250000

vt 0.125000 0.000000

vt 0.125000 0.250000


vn 0.000000 0.000000 1.000000

vn 0.000000 0.000000 1.000000

vn 0.000000 0.000000 1.000000

vn 0.000000 0.000000 1.000000

vn 0.000000 1.000000 0.000000

vn 0.000000 1.000000 0.000000

vn 0.000000 1.000000 0.000000

vn 0.000000 1.000000 0.000000

vn 0.000000 0.000000 -1.000000

vn 0.000000 0.000000 -1.000000

vn 0.000000 0.000000 -1.000000

vn 0.000000 0.000000 -1.000000

vn 0.000000 -1.000000 0.000000

vn 0.000000 -1.000000 0.000000

vn 0.000000 -1.000000 0.000000

vn 0.000000 -1.000000 0.000000

vn 1.000000 0.000000 0.000000

vn 1.000000 0.000000 0.000000

vn 1.000000 0.000000 0.000000

vn 1.000000 0.000000 0.000000

vn -1.000000 0.000000 0.000000

vn -1.000000 0.000000 0.000000

vn -1.000000 0.000000 0.000000

vn -1.000000 0.000000 0.000000



f 1/1/1 2/2/2 4/4/3 3/3/4

f 3/3/5 4/4/6 6/6/7 5/5/8

f 5/5/9 6/6/10 8/8/11 7/7/12

f 7/7/13 8/8/14 2/10/15 1/9/16

f 2/2/17 8/11/18 6/12/19 4/4/20

f 7/13/21 1/1/22 3/3/23 5/14/24



map_Kd ../textures/smily.jpg
Loading