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

enable tropism - vector effects for turns, bends, and rolls #12

Open
heckj opened this issue Dec 23, 2021 · 1 comment
Open

enable tropism - vector effects for turns, bends, and rolls #12

heckj opened this issue Dec 23, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@heckj
Copy link
Owner

heckj commented Dec 23, 2021

It would be nice to add the ability to easily compute adjustments to final vectors resulting from the 3D modeling commands of yaw, pitch, and roll so that effects such as Tropism (either from wind or sun) could be included in calculating the resulting growth direction of L-systems.

I'm not sure how easily that could be accommodated, and where would be most appropriate - but I'm guessing as an additional component to the production results when there's an explicit growth or bend.

@heckj heckj added the enhancement New feature or request label Dec 23, 2021
@heckj heckj self-assigned this Dec 23, 2021
@heckj
Copy link
Owner Author

heckj commented Jan 24, 2022

I stashed two RenderCommands specifically to support Tropism:

  • TurtleCodes.spinVerticalTropism
  • TurtleCodes.spinGravityTropism

The idea being that the RenderCommand includes a parameter that indicates how much (% maybe?) Tropism should take effect at this bend. It basically bends the directional heading even further upward (to the 'sun') or downward (representing 'gravity').

The ABOP book (pg 58) has some references to experiments supporting arbitrary directional tropism to represent wind as well, which appear to be a common parameter to the system, so that one L-system only supports tropism in a single direction.

It should be quite possible to provide an arbitrary tropism unit vector as a parameter to one of these codes for the renderer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant