From 510cc513b81ace2341d58cca226f622b12a499b9 Mon Sep 17 00:00:00 2001 From: Aditya Gupta Date: Wed, 12 Oct 2022 18:09:04 -0400 Subject: [PATCH 1/4] working on submission readme --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index c1cda32..0ae6d5f 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,23 @@ +# Submission + +![final](https://user-images.githubusercontent.com/3106877/195456895-03339934-6113-4e0b-b893-851ac36db4f7.png) + + +## Growth + +Starting from 1 generation and increasing 2 generations each step + +![image](https://user-images.githubusercontent.com/3106877/195456365-93b97097-3a3b-4551-b3ac-d620f9566edd.png) + +![image](https://user-images.githubusercontent.com/3106877/195456388-d9fafd3b-0031-4c6c-a4cd-3603b25dfac3.png) + +![image](https://user-images.githubusercontent.com/3106877/195456516-e6e0cd78-aa41-4711-bd68-af590e851f29.png) + +![image](https://user-images.githubusercontent.com/3106877/195456582-fd4fa85e-b359-4119-a186-37944e7d60b3.png) + +![image](https://user-images.githubusercontent.com/3106877/195456694-a800df5b-cc9e-4bf5-9348-ba78e88bccc1.png) + + # Homework 4: L-systems For this assignment, you will design a set of formal grammar rules to create From a4dcacab0ebcc41f6bacbd742630f360d4f3cb41 Mon Sep 17 00:00:00 2001 From: Aditya Gupta Date: Wed, 12 Oct 2022 20:17:54 -0400 Subject: [PATCH 2/4] Update README.md --- README.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/README.md b/README.md index 0ae6d5f..e5fef4a 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,41 @@ ![final](https://user-images.githubusercontent.com/3106877/195456895-03339934-6113-4e0b-b893-851ac36db4f7.png) +For this project, I wanted to incorporate some crystals into my L-system plant, so I made a strange tree with crystals growing off the branches. It has a main trunk with main branches coming off of it, but none of those have any crystals. The main branches split up into split branches, which have small purple "hex" crystals and large blue "cube" crystals. I then made some relatively simple procedural materials for the tree, crystals, and background, and I rendered them with Redshfit. I then applied the post-processing steps I usually take with daily renders and posted it [here](https://www.instagram.com/p/CjoSOcBpSYP/). + +Premise: `UUA` + +Rules: +``` +// bottom of main trunk +U = F(0.2)~(2) + +// main trunk segment with up to three branches +A = !~(20)T(-10)F(L*4.2*(0.5 + 0.5 * rand(i)))[\(-rand(i)*120)Z\(120)Z\(120)Z]"(0.95)A + +// 70% chance of main branch coming off of the trunk +Z = [&(70)!(0.6)BBBC] : 0.7 + +// main branch segment with no crystals +B = ~(15)F(L*2*(0.5 + rand(i)))&(4)T(-2)!"(0.9) + +// end of main branch, four possible split branches +C = YYYY + +// 80% of split branches continue while 20% terminate +Y = [VY] : 0.8 +Y = [VX] + +// split branch segment with chance of small purple crystals +V = !(0.6)~(50)WWWWW +W = F(L*1.2)"(0.88)~(4)DDDD + +// large blue crystal at end of split branch +X = J(0.05,0,rand(i)) + +// small purple crystal coming off of split branch +D = [!(0.2)~(90)F(L*(2.0+rand(i)))K] : 0.2 +``` ## Growth From 91b1e71bcae0e020e070335610399b8a42849704 Mon Sep 17 00:00:00 2001 From: Aditya Gupta Date: Wed, 12 Oct 2022 20:27:28 -0400 Subject: [PATCH 3/4] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e5fef4a..e812400 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,9 @@ ![final](https://user-images.githubusercontent.com/3106877/195456895-03339934-6113-4e0b-b893-851ac36db4f7.png) -For this project, I wanted to incorporate some crystals into my L-system plant, so I made a strange tree with crystals growing off the branches. It has a main trunk with main branches coming off of it, but none of those have any crystals. The main branches split up into split branches, which have small purple "hex" crystals and large blue "cube" crystals. I then made some relatively simple procedural materials for the tree, crystals, and background, and I rendered them with Redshfit. I then applied the post-processing steps I usually take with daily renders and posted it [here](https://www.instagram.com/p/CjoSOcBpSYP/). +For this project, I wanted to incorporate some crystals into my L-system plant, so I made a strange tree with crystals growing off the branches. The above image is the result of 10 generations. It has a main trunk with main branches coming off of it, but none of those have any crystals. The main branches split up into split branches, which have small purple "hex" crystals and large blue "cube" crystals. The purple crystals are all the same shape, while the blue ones are all individually different, made using some simple copy to points and VDB operations. + +After finishing the shape of the L-system, I made some relatively simple procedural materials for the tree, crystals, and background, and I rendered them with Redshfit. I relied heavily on transmission and subsurface scattering to get the transparent, almost glowing look. The lighting is a simple three-point system with a very strong rim light for nice highlights on the crystals. I then applied the post-processing steps I usually take with daily renders (dust effects in GIMP, color correction in darktable, and painting-ification in FotoSketcher) and posted it [here](https://www.instagram.com/p/CjoSOcBpSYP/). Premise: `UUA` From e367da13e81437f76d6d3be6ceced5462250e7a3 Mon Sep 17 00:00:00 2001 From: Aditya Gupta Date: Wed, 12 Oct 2022 20:28:31 -0400 Subject: [PATCH 4/4] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index e812400..541dba2 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,8 @@ Y = [VX] // split branch segment with chance of small purple crystals V = !(0.6)~(50)WWWWW + +// 4 chances of 20% each to generate a small terminal branch with a purple crystal W = F(L*1.2)"(0.88)~(4)DDDD // large blue crystal at end of split branch