Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yuqi's HW3 #7

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
Binary file added .DS_Store
Binary file not shown.
Binary file added 1.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 2.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 Houdini/backup/untitled_bak1.hipnc
Binary file not shown.
Binary file added Houdini/backup/untitled_bak10.hipnc
Binary file not shown.
Binary file added Houdini/backup/untitled_bak11.hipnc
Binary file not shown.
Binary file added Houdini/backup/untitled_bak2.hipnc
Binary file not shown.
Binary file added Houdini/backup/untitled_bak3.hipnc
Binary file not shown.
Binary file added Houdini/backup/untitled_bak4.hipnc
Binary file not shown.
Binary file added Houdini/backup/untitled_bak5.hipnc
Binary file not shown.
Binary file added Houdini/backup/untitled_bak6.hipnc
Binary file not shown.
Binary file added Houdini/backup/untitled_bak7.hipnc
Binary file not shown.
Binary file added Houdini/backup/untitled_bak8.hipnc
Binary file not shown.
Binary file added Houdini/backup/untitled_bak9.hipnc
Binary file not shown.
Binary file added Houdini/untitled.hipnc
Binary file not shown.
Binary file added Houdini/untitled1.picnc
Binary file not shown.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,32 @@ drawing. You will rasterize your L-system using faceted geometry. Feel free
to use ray marching to generate an interesting background, but trying to
raymarch an entire L-system will take too long to render!

## Name
Yuqi Zhang yuqiko

![](1.png)
![](2.png)

## Design Process

The "tree" is made of one main branch with some small sub-branches. I designed the branch become thiner and thiner as it far from the main branch. I also assigned some random bending degree to make the branch becomes more natural. Then in some ends, the branch becomes the spiral shape. There are three input models to the l-system, flower, leaf and the spiral branch. I modeled the flowers from the lab leaf model, then adjusted the color of the flowers. The spiral branch only appears when the branch is very far away from the main branch.

## L-system Code
```
Premise : F[^D]/(120)[^GG[N][^N]/(120)B[^N]/(120)B[^H]/(120)^H]/(120)A[^E]/(120)[^O]/(120)GGGG[^L]/(120)H/(120)
Rule 1: A = !FF
Rule 2: B = ~(10)!F(0.04)
Rule 3: C = ~(10)!^(10)F(0.02)
Rule 4: D = !B[^E]/(120)E[^C]/(120)B[^H]/(120)[^H]/(120)B[^HL]/(117)B
Rule 5: E = !&(10)GG
Rule 6: G = !&(10)F(0.03)
Rule 7: H = CCCJ
Rule 9: L = CCCK
Rule 8: N = CCCM
Rule 10: O = CCC[^H]/(120)CC

```

## Base Code
The provided code is very similar to that of homework 1, with the same camera and GUI layout. Additionally, we have provided you with a `Mesh` class that, given a filepath, will construct VBOs describing the vertex positions, normals, colors, uvs, and indices for any `.obj` file. The provided code also uses instanced rendering to draw a single square 10,000 times at different locations and with different colors; refer to the Assignment Requirements section for more details on instanced rendering. Farther down this README, we have also provided some example code snippets for setting up hash map structures in TypeScript.

Expand Down