-
Notifications
You must be signed in to change notification settings - Fork 3
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
@V
state element (aka $
in ABOP) isn't rendering out correctly
#27
Labels
bug
Something isn't working
Comments
Merged
Initial value:
After transforms applied:
|
fully resolved by #32 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fundamentally, the example trees rendered with the L-systems taken directly from The Algorithmic Beauty of Plants aren't resulting the same visualizations as described in the book. They're close, but there's complication - I think - around a specific symbol and what it's doing:
@V
in the implementation research paper, and$
in the book itself.As an example, compare the results for the following sympodial and monopodial trees:
I suspect part of the core of this issue is that what I'm doing to create the rotations for the
$
symbol is resulting in a rotation that is far too vertically oriented.I thought perhaps I had confused basic transforms and headings, but in reviewing the relevant code (https://github.com/heckj/Lindenmayer/blob/main/Sources/Lindenmayer/SceneKitRenderer.swift#L181-L214), I seem to have accounted for the corrected heading.
Since I've been mentally confusing directions, I suspect that I need to add a debugging view (#26), as well as potentially tests, to generate the relevant objects and then interrogate them to verify rotations, translations, etc.
The text was updated successfully, but these errors were encountered: