Code:
https://github.com/pupu98/Portfolio/tree/main/3D_Fox
2D Fox function:
- Change scale, position of fox
- Hierarch structure
- Change draw mode (faces, lines, points)
- Redraw
3D Fox function:
- Apply phong shader (ambient+diffuse+specular/only ambient/only diffuse)
- Apply toon shader
- Have functions in 2D
- Light can move
- Camera can move/ up/ tilt
Added function:
- Apply cubemapping for every shape
- Apply texture for every shape
- Add obj with mtl to have a given object with texture
By draft of fox head design in procreate, I draw fox head in 3D.
Following is the original idea of head:
* Draft has some little changes with real 3D Fox design in webGL.
Then I design indices for front and back of head by three-view drawing.