Skip to content

Licheng Cao, Mengxuan Huang lab3 #14

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
34 changes: 17 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
# lab03-grammars
Let's practice using grammars! For this lab, please pull up the L-system node in Houdini.
* group members: Licheng Cao, Mengxuan Huang
## 1. Wheat
|Result | Rule|
|:-----:|:----:|
<img src="https://github.com/LichengCAO/lab03-grammars/assets/81556019/5ca30f7e-6b3a-484d-a789-bd454205f47b" width="200"/>|![wheat_rule](https://github.com/LichengCAO/lab03-grammars/assets/81556019/2adb0569-6a1a-4fc9-b2be-49f8027bb8ea)

## 1. Wheat grammar puzzle
Look at these iterations (n = 1, 2, 3) of a one-rule grammar. Using the built in symbols in Houdini, design a grammar that produces this output. Take a screenshot of your rules.\
<img width="200" alt="square1" src="https://user-images.githubusercontent.com/1758825/193949661-a3a0e1f7-7d68-4b9e-8384-d9991e1e9fd2.png">
<img width="200" alt="square2" src="https://user-images.githubusercontent.com/1758825/193949853-cf2306b3-3537-4c24-91b5-0a3083bc87c0.png">
<img width="200" alt="square3" src="https://user-images.githubusercontent.com/1758825/193949859-5e432b4b-f18d-48b5-a9e9-8d7dba255955.png">

## 2. Square grammar puzzle
How about this one? Take a screenshot of your rules.\
<img width="200" alt="square1" src="https://user-images.githubusercontent.com/1758825/193949895-87cdfb43-da7c-4867-ab1b-107e1ba9d2a7.png">
<img width="200" alt="square2" src="https://user-images.githubusercontent.com/1758825/193949904-a9cdfe0f-319e-4ca8-9935-dd338217a7cf.png">
<img width="200" alt="square3" src="https://user-images.githubusercontent.com/1758825/193949910-928e5993-ce26-4681-80f8-ffeb54be4dcf.png">
## 2. Square
|Result | Rule|
|:-----:|:----:|
<img src="https://github.com/LichengCAO/lab03-grammars/assets/81556019/9b8de838-8bbc-4994-941e-f68af4afa757" width="200"/>|![square_rule](https://github.com/LichengCAO/lab03-grammars/assets/81556019/820af1bb-945b-4a81-b79c-6d63de746147)

## 3. Custom plant
Choose a plant in the world. Working off a reference, design a grammar that mimics the structure of that plant. Unlike our simple puzzles, please use multiple rules for greater complexity. Think carefully about the structure of your grammar! EXPLAIN the structure of your plant in the README. What are the components? What do each of the rules do? Be sure to also include images of a few iterations of your output plant.
|Result | Rule|
|:-----:|:----:|
<img src="https://github.com/LichengCAO/lab03-grammars/assets/81556019/ce7bda5b-1fb0-4363-8209-b54b4144bc8f" height="150"/><img src="https://github.com/LichengCAO/lab03-grammars/assets/81556019/87a8a609-70d7-4efc-8b29-f2c222a31450" height="150"/><img src="https://github.com/LichengCAO/lab03-grammars/assets/81556019/ed4192bc-9e95-4f37-9d02-11f775aa9edf" height="150"/>|![custom_rule](https://github.com/LichengCAO/lab03-grammars/assets/81556019/5cf36484-8c1c-4d51-96ac-82e872e2a5ac)
* We mainly use the first rule to build the trunck of our custom tree, and use the second rule to build the branches.
* In rules, we use '!" to make the upper branches become thinner, use multiple "\"s to rotate branches and add "&" in rules to pitch up/down branches.
* We initially planned to create a Christmas tree, as depicted in the second picture in the results section. However, we discovered that employing a smaller angle also yields a captivating outcome, as seen in the third picture.



## Submission
- Create a pull request against this repository
- In your readme, list your solutions and format your README nicely
- Profit