Screenshots of final results
- Image mapping:
- Sun response:
Model Approach:
The surface of lotus petals and sepals are created in the same as discussed in :
Steps for Image Mapping:
- Implementation of above steps in dynamo:
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fa318edc0-040f-4360-b5cf-7a71f3d54bff%2FUntitled.png?id=11b630c5-6e24-4160-a81b-3de94fd2aaec&table=block)
- Later Surface.PointAtParameter is used to panelize the surface
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F2531a498-0680-44a0-a4b9-87ce74474879%2FUntitled.png?id=74fa64ec-a208-42a9-bf4d-8d8c65d34c0f&table=block)
- Adaptive components of rectangular seamless panels are created using the Quad from Rectangular Grid function
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F94b51c41-7ac3-4b25-8e0c-9a94720e8207%2FUntitled.png?id=1b853760-fc1d-4ba6-8dfb-f7b6c444b707&table=block)
- This image is used to map on the surface of the lotus:
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F5fe83fe4-2352-4ff1-b02b-ce4fe0ff73dc%2FUntitled.png?id=a5d32639-17ad-4ade-b944-4e471bed05ef&table=block)
- As discussed in the module videos, the above image is first split in to pixels using Image.AtPixels with number of pixels equal to total number of panels and the color of each pixel is projected onto each panel.
- There are two flexible options in the dynamo: one we can transpose the image data and two we can flip the image data as desired
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F9035c141-ba13-40e6-bbda-a14778f88b87%2FUntitled.png?id=6998645a-a613-4ce8-baad-ebf7a9267b5e&table=block)
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fc1ec81a7-1d0c-43b6-b30d-f895247d2266%2FUntitled.png?id=62eed59f-3ab3-4edc-a5ed-32edd8db25b4&table=block)
- To get different color on each petal and sepal we need to first transpose the image data (1) and then flip vertically (1)
- The element parameters (Height in this example) can be manipulated to create a embossed or debossed effect a base height is set to which a color_factor*scaling_factor (value that changes according to the color of the panel) is added or subtracted based on user’s choice
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F461d675d-8072-4fe1-a80b-c71ff418b083%2FUntitled.png?id=a791b3b0-770e-4c8c-9662-d46aa6b03570&table=block)
- The element parameters (Height in this example) can also be changed based on hue value or brightness value and to create a embossed or debossed effect user has the flexibility to choose whether to flip or not
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F63ff936f-4d22-4fc4-8b88-463852c4228f%2FUntitled.png?id=90b3eaf1-3f1f-48e8-99ab-c0488321b729&table=block)
- When the above procedure is follow, the image mapping on the lotus surface looks like as shown here.
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F496f205d-f695-4f8e-94c6-d3d377556f7a%2FUntitled.png?id=0cb9df2b-0761-4d77-9997-bab5ead3604b&table=block)
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F84c39985-6989-40b4-ba4d-5449a3301788%2FUntitled.png?id=179c5678-8869-4cdb-972f-4e3600ea0dd1&table=block)
- This mismatch of colors is because the petal and sepal surfaces are drawn by making half of their surfaces and then mirroring them along XZ plane, the two half halves need to be grouped so that a single petal and sepal can display a part of the image consistently
- The numbering of the actual and mirroring surfaces are as shown in the below figure. Now our goal is to combine the two halves (region between two consecutive orange boundaries).
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fe029ec16-1178-4eaa-88e3-1429b1a6e38c%2FUntitled.png?id=d740664e-009f-43e0-8b8d-dd44bd7603b9&table=block)
- So we rearrange the list of mirrored surfaces with every item in a reverse order except for the first one. This way both halves have the same color
- Dynamo implementation of above steps
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Ff24c8961-0c9a-4144-87d9-5c49b036c95c%2FUntitled.png?id=9eff6a67-a5bd-432f-83ac-1bc95e30a15d&table=block)
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fe25a77f3-b8da-4597-bc66-8ca02c66d261%2FUntitled.png?id=76aff554-a9d9-4917-b3ec-5fb940bfa2a7&table=block)
- Correct image mapping:
- As you can see half of sepal surfaces grow in one direction and other half in opposite direction. And heights of panels in different sepals are different. This way user has control over whether to the heights and direction of growth of panels
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F5f854579-e992-44a1-bac1-eb8e800258c5%2FUntitled.png?id=1749dad5-b8e4-4af8-9d38-770290ea7a93&table=block)
Steps for finding the response of panels to sun
- As discussed in the module videos, sun directness value on panels is first calculated by finding the normal vectors then performing dot products with the vector that points towards the sun from the panel (the dot product values are then scaled)
- Custom node is used for computing sun directness:
- Custom node is used for changing appearances based on sun directness value:
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F0a271ef1-939c-4f74-81a2-6c82e2654186%2FUntitled.png?id=ddfc0927-cc44-4d31-a2de-1abb61307345&table=block)
- Custom node is used for setting parameters based on sun directness value:
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Ff1b88648-e875-4171-9f98-34d469caf5f6%2FUntitled.png?id=8a0ffe97-66d3-4a61-be05-931f68b3d636&table=block)
- Using the scaled sun directness values, the appearances and parameters of the panels can be changed
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fc8dce8f4-fc80-4de1-820d-94983fa7b081%2FUntitled.png?id=299f73b1-6acc-4a72-8859-4250e2a3071e&table=block)
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F9a266819-c597-4bcf-8c63-95f006368158%2FUntitled.png?id=791ca3d7-d090-4d62-a481-ef2a39c11759&table=block)
The following parameters can be easily controlled:
All the parameters discussed in Module 3
Number of panels on surface (u-v)
Image flipping condition for mapping on panel surface
Embossed and debossed effect
Appearance (Color level) of panels based on sun directness value
Parameters of panels based on sun directness value